Daniel motionlys toggle: ret til korrekt automation ID (daniel_lys_via_bevaegelse)

This commit is contained in:
2026-05-01 07:13:33 +02:00
parent da78422f5e
commit 7b3bf5b375
+3 -12
View File
@@ -41,21 +41,12 @@
- default_entity_id: switch.daniel_motionlys_toggle - default_entity_id: switch.daniel_motionlys_toggle
name: "Daniel motionlys" name: "Daniel motionlys"
unique_id: daniel_motionlys_toggle unique_id: daniel_motionlys_toggle
state: >- state: "{{ is_state('automation.daniel_lys_via_bevaegelse', 'on') }}"
{{ is_state('automation.lys_daniel_dag_arbejdsdag', 'on')
and is_state('automation.lys_daniel_dag_ikke_arbejdsdag', 'on')
and is_state('automation.sluk_lys_i_daniel', 'on') }}
turn_on: turn_on:
action: automation.turn_on action: automation.turn_on
target: target:
entity_id: entity_id: automation.daniel_lys_via_bevaegelse
- automation.lys_daniel_dag_arbejdsdag
- automation.lys_daniel_dag_ikke_arbejdsdag
- automation.sluk_lys_i_daniel
turn_off: turn_off:
action: automation.turn_off action: automation.turn_off
target: target:
entity_id: entity_id: automation.daniel_lys_via_bevaegelse
- automation.lys_daniel_dag_arbejdsdag
- automation.lys_daniel_dag_ikke_arbejdsdag
- automation.sluk_lys_i_daniel