twinkly adapter for ioBroker
Adapter to communicate with the Twinkly lights.
Settings
The following Settings are available:

In the table you can add all the Twinkly lights you want to control.
| Column | Description |
|---|---|
Enabled | Shall this connection be accessed |
Name | Name of the connection in ioBroker |
IP Address | IP-Address to the Twinkly Lights |
Mode On | Which ledMode should be activated when state on is enabled.Color, Effect, Movie, Music Reactive, Playlist or last Mode |
The following additionals States are created per device when checked:
- Device Info
- MQTT
- Network Status
The following States are available:
| State | Writable | Description |
|---|---|---|
connected | :x: | Device Connected |
details | :x: | Device Details |
firmware | :x: | Firmware Version |
ledBri | :heavy_check_mark: | Brightness (deactivate control with -1) |
ledColor | :heavy_check_mark: | Color of LEDs, HSV/RGB(W)/HEX (Color) |
ledConfig | :heavy_check_mark: | Configuration of LEDs |
ledEffect | :heavy_check_mark: | Effects (Effect) |
ledLayout | :heavy_check_mark: | Layout of LEDs (disabled for further testing) |
ledMode | :heavy_check_mark: | Mode: Color, Effect, Movie, Music Reactive, Playlist, Off, RealTime (not yet supported), Demo |
ledMovie | :heavy_check_mark: | Active Movie, If multiple Movies are added in the Playlist feature then they can be selected here. (Movie) |
ledPlaylist | :heavy_check_mark: | Active Playlist Entry, Switch between Movies. (Playlist) |
ledSat | :heavy_check_mark: | Saturation 0-100 (deactivate control with -1) |
mqtt | :heavy_check_mark: | MQTT-Connection |
name | :heavy_check_mark: | Name |
network | :x: | Network-Information |
on | :heavy_check_mark: | On/Off Switch |
paused | :heavy_check_mark: | Pause Connection to Twinkly so you can do changes in the App. Otherwise you might loose the connection while working in the App |
timer | :heavy_check_mark: | Update the Timer |
Private API information by Pavol Babinčák
Known Issues
- The maximum length for the movie name is 15 characters
Code Expamples
Upload Movie
sendTo('twinkly.0', 'uploadMovie', {
connection : 'Fenster',
frames : [
[{"r":18,"g":105,"b":58},{"r":18,"g":105,"b":58}, ...],
[{"r":18,"g":105,"b":58},{"r":18,"g":105,"b":58}, ...],
...
],
delay : 250
});
Upload Template Movie
Upload a predefined movie.
- 0: Twinkle Blue-White
- 1: Twinkle Christmas-Green-Red
sendTo('twinkly.0', 'uploadTemplateMovie', {
connection : 'Fenster',
template : 1
});
Upload Twinkle Movie
sendTo('twinkly.0', 'uploadTwinkleMovie', {
connection : 'Fenster',
baseColor : '#00873f', // or {r: 0, g: 135, b: 62}
secondColor : '#c30F15' // or {r: 195, g: 15, b: 22}
});
Generate Frame in a specific color
Returns a full frame in one color.
By sending the colors in the property colors you get an array of frames returned.
sendTo('twinkly.0', 'generateFrame', {
connection : 'Fenster',
color : '#12693a' // or {"r": 18,"g":105,"b":58}
});
response => {
// [{"r":18,"g":105,"b":58},{"r":18,"g":105,"b":58}, ...]
...
}
sendTo('twinkly.0', 'generateFrame', {
connection : 'Fenster',
colors : ['#12693a', ...] // or [{"r":18,"g":105,"b":58}, ...]
});
response => {
// [[{"r":18,"g":105,"b":58},{"r":18,"g":105,"b":58}, ...], ..]
...
}
Changelog
1.1.1 (2026-10-25)
- (patrickbs96) Requests to the Twinkly now time out after 10 seconds instead of waiting forever
- (patrickbs96) Switching on in mode
Movieselects the current movie again first (falls back toColorif no movie is saved) (#368)
1.1.0 (2026-10-25)
- (iobroker-bot) Adapter requires node.js >= 22 now.
- (ioBroker-Bot) Adapter requires js-controller >= 6.0.11 now.
- (patrickbs96) Admin UI migrated to jsonConfig (admin >= 7.6.20 required), with address validation and help texts.
- (patrickbs96) Ping:
ping.exeis called directly (nocmd.exe, noprocess.env), the address is validated, missing ICMP permissions are detected and reported once. - (patrickbs96) Release process: publishing to npm via Trusted Publishing, tests on Node.js 22, 24 and 26.
- (patrickbs96) Package contents limited via
files, translations moved toadmin/i18n/{lang}.json. - (patrickbs96) Switched to
@iobroker/eslint-config, polling timer usesadapter.setTimeout.
- Update dependencies
1.0.14 (2023-07-19)
- Add formatting to some states (hex-values -> uppercase, uptime in hours)
- Handle Sentry message (IOBROKER-TWINKLY-8P)
- Update dependencies
1.0.13 (2023-02-01)
- Update dependencies
1.0.12 (2022-12-22)
- Slave can write ledBri and ledSat
1.0.11 (2022-12-13)
- Extend Sentry logging for details.groups when "deprecated"
- Cancel active pause not working after startup if active beforehand
- Merge libraries request and twinkly
- Optimized Code in requests
- Updated Sentry logging for better viewability
1.0.10 (2022-12-05)
- Add sendTo message
uploadTwinkleMovieto upload a twinkle movie with own colors - Update Release Integration in Github Actions and Sentry
License
MIT License
Copyright (c) 2024-2026 patrickbs96 patrickbsimon96@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.