Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.46 KB | None | 0 0
  1. #automation
  2. - alias: Scene Livingroom
  3.   trigger:
  4.     platform: state
  5.     entity_id: input_select.scene_livingroom
  6.   action:
  7.     - service: scene.turn_on
  8.       data_template:
  9.         entity_id: >
  10.          {% if is_state( "input_select.scene_livingroom", "Dimmad" ) %}
  11.             scene.livingroom_low
  12.           {%-elif is_state( "input_select.scene_livingroom", "Film" ) %}
  13.             scene.livingroom_movie
  14.           {%-elif is_state( "input_select.scene_livingroom", "Normal" ) %}
  15.             scene.livingroom_normal
  16.           {%-elif is_state( "input_select.scene_livingroom", "Av" ) %}
  17.             scene.livingroom_off
  18.           {% endif %}
  19.     - service: input_select.select_option
  20.       data:
  21.         entity_id: input_select.scene_livingroom
  22.         option: Välj
  23.  
  24.  
  25. #input_select
  26. scene_livingroom:
  27.   name: 'Belysning Vardagsrum:'
  28.   icon: mdi:brightness-auto
  29.   initial: Välj
  30.   options:
  31.    - Välj
  32.     - Normal
  33.     - Dimmad
  34.     - Film
  35.     - Av
  36.  
  37.  
  38. #scene
  39. name: livingroom_normal
  40. entities:
  41.  #Fönsterlampa
  42.   light.hue_color_lamp_1:
  43.     state: on
  44.     transition: 2
  45.     brightness: 70
  46.     rgb_color: [255, 214, 170]
  47.   #Golvlampa
  48.   light.hue_color_lamp_2:
  49.     state: on
  50.     transition: 2
  51.     brightness: 130
  52.     rgb_color: [255, 214, 170]
  53.   #Taklampa
  54.   light.hue_color_lamp_3:
  55.     state: on
  56.     transition: 2
  57.     brightness: 100
  58.     rgb_color: [255, 214, 170]
  59.  
  60.  
  61. #mixtra sedan med brightness på de andra scener som du önskar :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement