Advertisement
dale3h

[Home Assistant] Hue Color Selector

May 5th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ################################################################
  2. ## Hue Color Selector
  3. ##
  4. ## For a list of supported colors see:
  5. ##   https://github.com/home-assistant/home-assistant/blob/master/homeassistant/util/color.py
  6. ################################################################
  7.  
  8. input_select:
  9.   hue_color:
  10.     name: Hue Color
  11.     initial: White
  12.     icon: mdi:lightbulb
  13.     options:
  14.      - White
  15.       - Red
  16.       - Orange
  17.       - Yellow
  18.       - Green
  19.       - Blue
  20.       - Indigo
  21.       - Violet
  22.  
  23. automation:
  24.   - alias: hue_color_selector
  25.     trigger:
  26.       - platform: state
  27.         entity_id: input_select.hue_color
  28.     action:
  29.       - service: light.turn_on
  30.         data_template:
  31.           entity_id: light.your_light_here
  32.           brightness: 255
  33.           color_name: "{{ trigger.to_state.state }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement