update with set-state topic
parent
43766d754a
commit
b0ced1c4a7
|
@ -48,7 +48,7 @@ async def apply_rule(rule, client):
|
|||
continue
|
||||
|
||||
logging.debug(f'Setting state for light {light}: {payload}')
|
||||
await client.publish(f'light/{light}/set', umsgpack.packb(payload))
|
||||
await client.publish(f'light/{light}/state/set', umsgpack.packb(payload))
|
||||
|
||||
logging.debug(f'End applying rule: {name}')
|
||||
|
||||
|
|
Loading…
Reference in New Issue