Man sollte auf auch das Topic write topic schreiben ;)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
SERVICE_NAME = "Weihnachtsbeleuchtung"
|
SERVICE_NAME = "Weihnachtsbeleuchtung"
|
||||||
SERVICE_VERSION = "1.0.0"
|
SERVICE_VERSION = "1.0.1"
|
||||||
|
|
||||||
function thrawn_on_start()
|
function thrawn_on_start()
|
||||||
thrawn_register_service(SERVICE_NAME)
|
thrawn_register_service(SERVICE_NAME)
|
||||||
@@ -15,9 +15,9 @@ function thrawn_on_update(state)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function on_activtate(time)
|
function on_activtate(time)
|
||||||
thrawn_publish("kueche/lights/girlande/on", "1")
|
thrawn_publish("kueche/lights/girlande/on/set", "1")
|
||||||
end
|
end
|
||||||
|
|
||||||
function on_deactivate(time)
|
function on_deactivate(time)
|
||||||
thrawn_publish("kueche/lights/girlande/on", "0")
|
thrawn_publish("kueche/lights/girlande/on/set", "0")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user