Integration - Twinkly

Hello everyone,

I present a new integration for Gladys: Twinkly, to control Twinkly garlands, curtains, Christmas trees, and other LED lights.

Twinkly for Gladys Assistant

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.

Links

Your feedback

Twinkly Strings tested and ok :wink:

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 and happy lighting :sparkles:

Hello and thanks for this integration!

Unfortunately, I can’t connect my garlands :disappointed_face:

Here are my logs :slight_smile:

[2026-11-23T18:54:15.037Z] [INFO] Starting the Twinkly integration...
[2026-11-23T18:54:15.177Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)
[2026-11-23T18:54:15.330Z] [INFO] [registry] Found Tycl 2 on 192.168.1.82
[2026-11-23T18:54:15.335Z] [INFO] [registry] Found Twinkly 2 on 192.168.1.51
[2026-11-23T18:54:15.338Z] [INFO] [registry] Found Twinkly 1 on 192.168.1.52
[2026-11-23T18:54:15.340Z] [INFO] [registry] Found Tyhc 4 on 192.168.1.53
[2026-11-23T18:54:15.690Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent
[2026-11-23T18:54:15.745Z] [ERROR] Post-connection initialization failed GladysApiError: devices[0].features[3].supported_options: "[1].label" must not have leading or trailing whitespace
    at HttpClient.request (/app/node_modules/@gladysassistant/integration-sdk/lib/http-client.js:49:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async TwinklyService.publishDevices (file:///app/src/twinkly/service.js:127:5)
    at async GladysIntegration.<anonymous> (file:///app/index.js:83:5) {
  status: 400,
  code: 'BAD_REQUEST'
}
[2026-11-23T18:54:31.096Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent
[2026-11-23T18:57:39.887Z] [INFO] onConfigUpdated -> new configuration received
[2026-11-23T18:57:42.919Z] [INFO] [discovery] Network discovery: 4 Twinkly device(s) answered
[2026-11-23T18:57:43.512Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent
[2026-11-23T18:57:44.114Z] [WARN] [discovery] Network discovery unavailable: Too Many Requests
[2026-11-23T18:57:44.431Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent
[2026-11-23T18:58:31.962Z] [INFO] onScanRequest -> looking for Twinkly devices
[2026-11-23T18:58:34.982Z] [INFO] [discovery] Network discovery: 4 Twinkly device(s) answered
[2026-11-23T18:58:35.309Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent
[2026-11-23T18:59:12.636Z] [WARN] [gladys-sdk] connection to Gladys lost (close code 1006)
[2026-11-23T18:59:12.637Z] [WARN] [gladys``````
[2026-11-23T18:59:12.654Z] [INFO] Received SIGTERM -> graceful shutdown
[2026-11-23T18:59:13.228Z] [INFO] Starting the Twinkly integration...
[2026-11-23T18:59:13.371Z] [INFO] [gladys-sdk] connected to Gladys (http://172.30.0.1:80)
[2026-11-23T18:59:16.456Z] [INFO] [discovery] Network discovery: 4 Twinkly device(s) answered
[2026-11-23T18:59:16.487Z] [INFO] [registry] Found twinkly 4 on 192.168.1.53
[2026-11-23T18:59:16.490Z] [INFO] [registry] Found Twinkly 1 on 192.168.1.52
[2026-11-23T18:59:16.493Z] [INFO] [registry] Found Twinkly 2 on 192.168.1.51
[2026-11-23T18:59:16.495Z] [INFO] [registry] Found Twinkly 3 on 192.168.1.82
[2026-11-23T18:59:16.865Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent
[2026-11-23T18:59:16.884Z] [ERROR] Post-connection initialization failed GladysApiError: devices[0].features[3].supported_options: "[1].label" must not have leading or trailing whitespace
    at HttpClient.request (/app/node_modules/@gladysassistant/integration-sdk/lib/http-client.js:49:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async TwinklyService.publishDevices (file:///app/src/twinkly/service.js:127:5)
    at async GladysIntegration.<anonymous> (file:///app/index.js:83:5) {
  status: 400,
  code: 'BAD_REQUEST'
}
[2026-11-23T19:42:50.627Z] [INFO] onConfigUpdated -> new configuration received
[2026-11-23T19:42:53.640Z] [INFO] [discovery] Network discovery: 4 Twinkly device(s) answered
[2026-11-23T19:42:53.983Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent
[2026-11-23T19:44:04.065Z] [INFO] onScanRequest -> looking for Twinkly devices
[2026-11-23T19:44:07.090Z] [INFO] [discovery] Network discovery: 4 Twinkly device(s) answered
[2026-11-23T19:44:07.550Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent
[2026-11-23T19:44:08.708Z] [INFO] onScanRequest -> looking for Twinkly devices
[2026-11-23T19:44:08.724Z] [WARN] [discovery] Network discovery unavailable: Too Many Requests
[2026-11-23T19:44:09.084Z] [INFO] [twinkly] Discovery: 4 Twinkly found, 0 host(s) silent

Thanks @Flo30 for the feedback and the logs, it helped me find the issue right away :+1:

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:

  1. Update the Twinkly integration to 1.3.4 in Gladys.
  2. 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 :slight_smile: