initial commit
This commit is contained in:
24
configuration/automation/scene_rotation_kitchen.yaml
Normal file
24
configuration/automation/scene_rotation_kitchen.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- alias: "[Scene] Kitchen Scene Rotation"
|
||||
initial_state: 'true'
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_select.kitchen_scenes
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
data_template:
|
||||
entity_id: scene.kitchen_{{ states.input_select.kitchen_scenes.state | replace(' ', '_') | lower | string }}
|
||||
transition: 2.5
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.kitchen_last_scene
|
||||
data:
|
||||
value: "{{ states.input_select.kitchen_scenes.state | replace(' ', '_') | lower | string }}"
|
||||
- service_template: >
|
||||
{% if states.input_select.kitchen_scenes.state | lower | string == 'off' %}
|
||||
input_boolean.turn_off
|
||||
{% else %}
|
||||
input_boolean.turn_on
|
||||
{% endif %}
|
||||
entity_id:
|
||||
- input_boolean.kitchen_light_state
|
Reference in New Issue
Block a user