SHOW:
|
|
- or go back to the newest paste.
| 1 | ################################################################ | |
| 2 | - | ## MiLight Color Selector (Long Work-around) |
| 2 | + | ## Hue Color Selector |
| 3 | - | ## See http://www.tayloredmktg.com/rgb/ for more RGB values |
| 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 | - | milight_color: |
| 7 | + | |
| 8 | - | name: MiLight Color |
| 8 | + | |
| 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 | - | - trigger: |
| 22 | + | |
| 23 | - | platform: state |
| 23 | + | |
| 24 | - | entity_id: input_select.milight_color |
| 24 | + | - alias: hue_color_selector |
| 25 | - | to: 'White' |
| 25 | + | trigger: |
| 26 | - platform: state | |
| 27 | - | service: light.turn_on |
| 27 | + | entity_id: input_select.hue_color |
| 28 | - | data: |
| 28 | + | |
| 29 | - | entity_id: light.your_light_here |
| 29 | + | - service: light.turn_on |
| 30 | - | brightness: 255 |
| 30 | + | data_template: |
| 31 | - | rgb_color: [255, 255, 255] |
| 31 | + | entity_id: light.your_light_here |
| 32 | brightness: 255 | |
| 33 | - | - trigger: |
| 33 | + | color_name: "{{ trigger.to_state.state }}" |