Hello everyone,
Have a problem with an automation;
Why doesn’t the following automation trigger?
Can’t really find what’s wrong!
´´´´
alias: aaaaaaatest
description: “”
trigger:
- platform: template
value_template: |
{{state_attr(‘device_tracker.iphone_bart_deco’ ,
‘deco_device’)}} - platform: template
value_template: |
{{state_attr(‘device_tracker.iphone_bart_deco’ ,
‘icon’)}}
condition: []
action: - condition: template
value_template: >-
{{not is_state_attr(‘device_tracker.iphone_bart_deco’ ,
‘deco_device’,‘Keuken’) or
is_state_attr(‘device_tracker.iphone_bart_deco’ , ‘icon’, ‘mdi:lan-disconnect’) }} - service: light.turn_off
data: {}
target:
entity_id: light.groep_alle_lichten_keuken_zks
mode: single
´´´´