Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################
- ## Hue Color Selector
- ##
- ## For a list of supported colors see:
- ## https://github.com/home-assistant/home-assistant/blob/master/homeassistant/util/color.py
- ################################################################
- input_select:
- hue_color:
- name: Hue Color
- initial: White
- icon: mdi:lightbulb
- options:
- - White
- - Red
- - Orange
- - Yellow
- - Green
- - Blue
- - Indigo
- - Violet
- automation:
- - alias: hue_color_selector
- trigger:
- - platform: state
- entity_id: input_select.hue_color
- action:
- - service: light.turn_on
- data_template:
- entity_id: light.your_light_here
- brightness: 255
- color_name: "{{ trigger.to_state.state }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement