Skip to content

Instantly share code, notes, and snippets.

@Elwell
Created April 28, 2020 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elwell/454bc63776301679fe130e0dfe48540e to your computer and use it in GitHub Desktop.
Save Elwell/454bc63776301679fe130e0dfe48540e to your computer and use it in GitHub Desktop.
Cheerlights in home assistant
- 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