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
name: "Daniel motionlys"
unique_id: daniel_motionlys_toggle
state: >-
{{ 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') }}
state: "{{ is_state('automation.daniel_lys_via_bevaegelse', 'on') }}"
turn_on:
action: automation.turn_on
target:
entity_id:
- automation.lys_daniel_dag_arbejdsdag
- automation.lys_daniel_dag_ikke_arbejdsdag
- automation.sluk_lys_i_daniel
entity_id: automation.daniel_lys_via_bevaegelse
turn_off:
action: automation.turn_off
target:
entity_id:
- automation.lys_daniel_dag_arbejdsdag
- automation.lys_daniel_dag_ikke_arbejdsdag
- automation.sluk_lys_i_daniel
entity_id: automation.daniel_lys_via_bevaegelse