Hey, 1st time post so please go gentle....
I have an automation which checks to make sure an associated automation is not running. This was working but has recently stopped.
The image below shows a result of false, but I believe it should be true as 0 is the correct state of an automation that's not running.
Updated:
alias: "LivingRoom 3: Button Sync"
description: Sync wall switch 3 button state to lamps if turned on/off by another means
triggers:
- trigger: state
entity_id:
- light.grp_living_room_lamps
to: "on"
from: "off"
- trigger: state
entity_id:
- light.grp_living_room_lamps
to: "off"
from: "on"
conditions:
- condition: state
entity_id: automation.livingroom_3_accent_lamps
attribute: current
enabled: true
state: "0"
actions:
- if:
- condition: device
type: is_on
device_id: 93c5f30c14ad0ceb7d3104fdb25e722c
entity_id: 2859e97a7d0d08408832333c8158e49b
domain: light
- condition: state
entity_id: light.grp_living_room_lamps
state: "off"
then:
- action: light.turn_off
target:
entity_id: light.livingroom_3way_lumi_switch_l3acn3_light_3
data: {}
else:
- action: light.turn_on
target:
entity_id: light.livingroom_3way_lumi_switch_l3acn3_light_3
data: {}
mode: single