Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################
- ## MiLight Color Selector (Long Work-around)
- ## See http://www.tayloredmktg.com/rgb/ for more RGB values
- ################################################################
- input_select:
- milight_color:
- name: MiLight Color
- initial: White
- icon: mdi:lightbulb
- options:
- - White
- - Red
- - Orange
- - Yellow
- - Green
- - Blue
- - Indigo
- - Violet
- automation:
- - trigger:
- platform: state
- entity_id: input_select.milight_color
- to: 'White'
- action:
- service: light.turn_on
- data:
- entity_id: light.your_light_here
- brightness: 255
- rgb_color: [255, 255, 255]
- - trigger:
- platform: state
- entity_id: input_select.milight_color
- to: 'Red'
- action:
- service: light.turn_on
- data:
- entity_id: light.your_light_here
- brightness: 255
- rgb_color: [255, 0, 0]
- - trigger:
- platform: state
- entity_id: input_select.milight_color
- to: 'Orange'
- action:
- service: light.turn_on
- data:
- entity_id: light.your_light_here
- brightness: 255
- rgb_color: [255, 165, 0]
- - trigger:
- platform: state
- entity_id: input_select.milight_color
- to: 'Yellow'
- action:
- service: light.turn_on
- data:
- entity_id: light.your_light_here
- brightness: 255
- rgb_color: [255, 255, 0]
- - trigger:
- platform: state
- entity_id: input_select.milight_color
- to: 'Green'
- action:
- service: light.turn_on
- data:
- entity_id: light.your_light_here
- brightness: 255
- rgb_color: [0, 255, 0]
- - trigger:
- platform: state
- entity_id: input_select.milight_color
- to: 'Blue'
- action:
- service: light.turn_on
- data:
- entity_id: light.your_light_here
- brightness: 255
- rgb_color: [0, 0, 255]
- - trigger:
- platform: state
- entity_id: input_select.milight_color
- to: 'Indigo'
- action:
- service: light.turn_on
- data:
- entity_id: light.your_light_here
- brightness: 255
- rgb_color: [75, 0, 130]
- - trigger:
- platform: state
- entity_id: input_select.milight_color
- to: 'Violet'
- action:
- service: light.turn_on
- data:
- entity_id: light.your_light_here
- brightness: 255
- rgb_color: [238, 130, 238]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement