Compare commits

..

8 Commits

Author SHA1 Message Date
23b0b19693 Small cleanup
Some checks are pending
Build and deploy / build (push) Waiting to run
Build and deploy / Deploy container (push) Blocked by required conditions
2025-08-31 23:56:59 +02:00
3bbc5d075f Removed old presence system 2025-08-31 23:56:57 +02:00
4d63589e0d Move front door presence logic to lua 2025-08-31 23:56:49 +02:00
ee6b74a91c Handle turning off devices when away through lua 2025-08-31 23:56:49 +02:00
c6353663df Removed DebugBridge as it no longer served a purpose 2025-08-31 23:56:49 +02:00
d8b2ff8098 Moved presence debug mqtt message to lua 2025-08-31 23:56:49 +02:00
1233fd6105 Presence and light sensor call all function in array 2025-08-31 23:56:48 +02:00
6db5831571 Removed old darkness system 2025-08-31 23:56:28 +02:00
2 changed files with 1 additions and 4 deletions

View File

@@ -2,7 +2,6 @@ use std::fmt::Debug;
use automation_cast::Cast;
use dyn_clone::DynClone;
use google_home::traits::OnOff;
use mlua::ObjectLike;
use crate::event::OnMqtt;
@@ -18,7 +17,7 @@ pub trait LuaDeviceCreate {
}
pub trait Device:
Debug + DynClone + Sync + Send + Cast<dyn google_home::Device> + Cast<dyn OnMqtt> + Cast<dyn OnOff>
Debug + DynClone + Sync + Send + Cast<dyn google_home::Device> + Cast<dyn OnMqtt>
{
fn get_id(&self) -> String;
}

View File

@@ -43,7 +43,6 @@ local on_presence = {
local presence_system = Presence.new({
topic = mqtt_automation("presence/+/#"),
client = mqtt_client,
event_channel = automation.device_manager:event_channel(),
callback = function(_, presence)
for _, f in ipairs(on_presence) do
if type(f) == "function" then
@@ -98,7 +97,6 @@ automation.device_manager:add(LightSensor.new({
client = mqtt_client,
min = 22000,
max = 23500,
event_channel = automation.device_manager:event_channel(),
callback = function(_, light)
for _, f in ipairs(on_light) do
if type(f) == "function" then