Migrate room dashboard toggles to template

This commit is contained in:
2026-04-08 17:00:03 +02:00
parent 01872f4cb5
commit ea7e9277a6
3 changed files with 63 additions and 63 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
title: Andreas title: Andreas
path: andreas path: andreas
icon: mdi:face-man-glasses icon: mdi:face-man
type: sections type: sections
sections: sections:
+1 -62
View File
@@ -1,62 +1 @@
- platform: template []
switches:
andreas_colorloop_toggle:
friendly_name: Andreas colorloop
unique_id: andreas_colorloop_toggle
value_template: "{{ is_state('script.colorloopandreas', 'on') }}"
turn_on:
service: script.turn_on
target:
entity_id: script.colorloopandreas
turn_off:
service: script.turn_off
target:
entity_id: script.colorloopandreas
daniel_colorloop_toggle:
friendly_name: Daniel colorloop
unique_id: daniel_colorloop_toggle
value_template: "{{ is_state('script.colorloopdaniel', 'on') }}"
turn_on:
service: script.turn_on
target:
entity_id: script.colorloopdaniel
turn_off:
service: script.turn_off
target:
entity_id: script.colorloopdaniel
andreas_motionlys_toggle:
friendly_name: Andreas motionlys
unique_id: andreas_motionlys_toggle
value_template: "{{ is_state('automation.andreas_lys_motion', 'on') }}"
turn_on:
service: automation.turn_on
target:
entity_id: automation.andreas_lys_motion
turn_off:
service: automation.turn_off
target:
entity_id: automation.andreas_lys_motion
daniel_motionlys_toggle:
friendly_name: Daniel motionlys
unique_id: daniel_motionlys_toggle
value_template: >-
{{ 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:
service: automation.turn_on
target:
entity_id:
- automation.lys_daniel_dag_arbejdsdag
- automation.lys_daniel_dag_ikke_arbejdsdag
- automation.sluk_lys_i_daniel
turn_off:
service: automation.turn_off
target:
entity_id:
- automation.lys_daniel_dag_arbejdsdag
- automation.lys_daniel_dag_ikke_arbejdsdag
- automation.sluk_lys_i_daniel
@@ -0,0 +1,61 @@
- switch:
- default_entity_id: switch.andreas_colorloop_toggle
name: "Andreas colorloop"
unique_id: andreas_colorloop_toggle
state: "{{ is_state('script.colorloopandreas', 'on') }}"
turn_on:
action: script.turn_on
target:
entity_id: script.colorloopandreas
turn_off:
action: script.turn_off
target:
entity_id: script.colorloopandreas
- default_entity_id: switch.daniel_colorloop_toggle
name: "Daniel colorloop"
unique_id: daniel_colorloop_toggle
state: "{{ is_state('script.colorloopdaniel', 'on') }}"
turn_on:
action: script.turn_on
target:
entity_id: script.colorloopdaniel
turn_off:
action: script.turn_off
target:
entity_id: script.colorloopdaniel
- default_entity_id: switch.andreas_motionlys_toggle
name: "Andreas motionlys"
unique_id: andreas_motionlys_toggle
state: "{{ is_state('automation.andreas_lys_motion', 'on') }}"
turn_on:
action: automation.turn_on
target:
entity_id: automation.andreas_lys_motion
turn_off:
action: automation.turn_off
target:
entity_id: automation.andreas_lys_motion
- 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') }}
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
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