Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #automation
- - alias: Scene Livingroom
- trigger:
- platform: state
- entity_id: input_select.scene_livingroom
- action:
- - service: scene.turn_on
- data_template:
- entity_id: >
- {% if is_state( "input_select.scene_livingroom", "Dimmad" ) %}
- scene.livingroom_low
- {%-elif is_state( "input_select.scene_livingroom", "Film" ) %}
- scene.livingroom_movie
- {%-elif is_state( "input_select.scene_livingroom", "Normal" ) %}
- scene.livingroom_normal
- {%-elif is_state( "input_select.scene_livingroom", "Av" ) %}
- scene.livingroom_off
- {% endif %}
- - service: input_select.select_option
- data:
- entity_id: input_select.scene_livingroom
- option: Välj
- #input_select
- scene_livingroom:
- name: 'Belysning Vardagsrum:'
- icon: mdi:brightness-auto
- initial: Välj
- options:
- - Välj
- - Normal
- - Dimmad
- - Film
- - Av
- #scene
- name: livingroom_normal
- entities:
- #Fönsterlampa
- light.hue_color_lamp_1:
- state: on
- transition: 2
- brightness: 70
- rgb_color: [255, 214, 170]
- #Golvlampa
- light.hue_color_lamp_2:
- state: on
- transition: 2
- brightness: 130
- rgb_color: [255, 214, 170]
- #Taklampa
- light.hue_color_lamp_3:
- state: on
- transition: 2
- brightness: 100
- rgb_color: [255, 214, 170]
- #mixtra sedan med brightness på de andra scener som du önskar :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement