I present a new integration for Gladys: Twinkly, to control Twinkly garlands, curtains, Christmas trees, and other LED lights.
In brief
100 % local: Gladys talks directly to Twinkly on your network. No account, no cloud.
Automatic discovery: Gladys finds Twinkly devices on the network, or you can enter their IP addresses.
No duplicates: each Twinkly is recognized by its MAC address, even if it changes name or IP.
Each Twinkly becomes a light
Turn on / off
Brightness from 0 to 100 %
Fixed color (firmware 2.7.1 or newer)
Scene selection: your animations, playlist, and built-in effects
Scenes (Gladys 5.1+)
Triggers:
A Twinkly has changed mode (from the app, its button, or its timer)
A Twinkly is unreachable
A Twinkly responds again
Actions:
Play an animation (by name or number)
Play an effect (by number)
Change mode: on, off, animation, effect, playlist, fixed color, demo
A change requested by Gladys never triggers the trigger again: no scene that loops.
Dashboard widget (Gladys 5.1+)
Overview: the status of all your Twinkly devices, with « Turn all on » and « Turn all off ».
View of a Twinkly: its live brightness, current scene, and a set of buttons to choose from: scenes (previous / next, identify), brightness (â10 %, +10 %, max), modes, or colors (white, red, green, blue).
In the configuration
Test the connection: lists the responding Twinkly devices (name, IP, number of LEDs, firmware, mode).
Identify a Twinkly: starts its demo for 5 seconds then puts it back as before. Useful to know who is who.
Prerequisites
Gladys 5.1 or newer
Each Twinkly first installed with the Twinkly app, on the same network as Gladys
Recommended: a fixed IP per Twinkly (DHCP reservation in the box)
Installation
Good to know
Network search finds nothing (separate VLANs, Wi-Fi isolation)? Enter the IP addresses in the configuration.
The Twinkly app and Gladys can run at the same time: Gladys reconnects automatically.
New animation loaded from the app? Restart a search to see it in the scenes.
Iâm looking for feedback on other models (Strings, Curtain, Squares, Flex, Dots, FestoonâŠ) and other firmwares. Tell me what works, what doesnât work, and what youâre missing!
Thanks @Flo30 for the feedback and the logs, it helped me find the issue right away
The cause: one of your animations has a name that starts or ends with a space (for example "Neige "). Gladys then refuses the entire list of devices, not just that one. Thatâs why none of your 4 garlands appeared, even though they were correctly found on the network.
The fix is in version 1.3.4, published tonight: extra spaces at the beginning and end of names are automatically removed.
What you need to do:
Update the Twinkly integration to 1.3.4 in Gladys.
Restart a scan if the garlands do not appear immediately.
Nothing to rename in the Twinkly app, your animations will keep their names.
For info, the Too Many Requests messages in your logs are not a problem: Gladys just limits network scans that are too close together.
Let me know if it works for you, and which Twinkly models you have: it helps me know what has been tested