Hi, brought some Lepro XB1 string lights from Amazon while on offer, didn’t really expect many integration options and wasn’t surprised.
So, another connected device, yet another app wanting your email & location. Kinda thought I’d somehow get them working with Tuya or maybe SmartThings, but nope - these lights are not compatible with either. In the total absence of any HA integration, only option was to use Alexa…
- Register Lepro App
- Add lights through Lepro App
- Link Lepro App to Alexa using in app button
- Confirm Alexa can control lepro lights
- Use Alexa Media Player HACS integration and media player Action to send commands to Alexa to control the lights;
string_lights_on:
sequence:
- service: media_player.play_media
target:
entity_id: media_player.kitchen_echo
data:
media_content_type: custom
media_content_id: "turn on string lights"
Then create template switch entity
- platform: template
switches:
patio_rgb_string_lights:
friendly_name: Patio RGB String Lights
unique_id: patio_rgb_string_lights
turn_on:
service: script.string_lights_on
turn_off:
service: script.string_lights_off
Horrible and hacky, but I can’t see any other way of doing this.