change activation topic name and don't retain it
parent
b26094ed35
commit
fbb896b4f5
|
@ -74,7 +74,7 @@ async def on_set_scene(client, state, mutex, messages):
|
|||
|
||||
if value:
|
||||
await activate_scene(switch, scenes[switch], client)
|
||||
await client.publish('scene/active', switch, retain=True)
|
||||
await client.publish('scene/activate', switch)
|
||||
await client.publish(f'scene/switch/{switch}/state', 0, retain=True)
|
||||
logging.info(f'Scene {switch} activated')
|
||||
except Exception as ex:
|
||||
|
|
Loading…
Reference in New Issue