Moved darkness debug mqtt message to lua

This commit is contained in:
2025-08-31 05:38:31 +02:00
parent c362952f7c
commit aa730c9738
2 changed files with 6 additions and 26 deletions

View File

@@ -129,6 +129,10 @@ automation.device_manager:add(LightSensor.new({
event_channel = automation.device_manager:event_channel(),
callback = function(_, light)
hue_bridge:set_flag("darkness", not light)
mqtt_client:send_message(mqtt_automation("debug") .. "/darkness", {
state = not light,
updated = automation.util.get_epoch(),
})
end,
}))