I’ve got a run of inexpensive (<$30) LED strip lights around my TV. I chose the no-name Chinese brand I did based on some quick research on these forums. The consensus seemed to be that if it was controlled by the Magic Home phone app, I’d have good luck.
Well, I have partial luck.
I can put the strip in as a toggle switch, click the name, and get the color & brightness wheel. But I can’t figure out how to send settings from my own code.
In configuration.yaml
, I’ve got:
light:
- platform: flux_led
devices:
192.168.1.6:
name: tv_lights
mode: "rgbw"
In my entities card where I’ve got a bunch of other lights, it’s listed as
- entity: light.tv_lights
name: TV Lights
icon: mdi:television-classic
Operating it from here works perfectly.
But I want to set up some scenes/scenarios, so I tried an entity-button
.
- type: entity-button
icon: mdi:television-classic
tap_action: call-service
entity: script.led_lightblue
It’s in a script because I eventually planned to call a bunch of other things in sequence.
The script is:
led_lightblue:
sequence:
- service: light.turn_on
data:
entity: light.tv_lights
rgb_color: 49,98,176
brightness: 200
This seemed to be the best combination of commands I could cobble together from a bunch of sparse documentation and forum posts. When I press the entity button, I get nothing - not even an error.
Can anyone help me debug this setup?