Created
April 28, 2020 21:53
-
-
Save Elwell/454bc63776301679fe130e0dfe48540e to your computer and use it in GitHub Desktop.
Cheerlights in home assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- alias: 'Cheerlights to GlowOrb' | |
trigger: | |
platform: mqtt | |
topic: cheerlightsRGB | |
action: | |
service_template: light.turn_on | |
data_template: | |
brightness_pct: 50 | |
rgb_color: | |
- "{{ trigger.payload[1:3] | int(0,16) }}" | |
- "{{ trigger.payload[3:5] | int(0,16) }}" | |
- "{{ trigger.payload[-2:] | int(0,16) }}" | |
entity_id: | |
- light.gloworb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment