Twinkly Effect Automation

Works like a charm! Many thanks. For the Twinkly strings, for "effect:", you need to provide the effect number instead of a string.

How do you find the effect number?

I am running Firmware 2.8.18 and app version 3.12.7

For Twinkly, you need recent hardware (one with enouh controller memory, the first models didn’t have that) and firmware, and you need to have uploaded several effects to the controller using the Twinkly app. I created a playlist for that.

The Twinkly integration will allow you to select a color or pick an effect from the ones uploaded to the controller. The twinkly playlist cannot be selected.

Using homekit integration, if a playlist is active when you turn it off, it will continue it when it is turned on. It does not allow you to pick an effect. Using the Twinkly integration, it will turn on with a last selected color, unless you specify the effect. So you cannot resume a playlist. Luckily you can have both integrations active at the same time.

Since you can set a specific effect from the playlist in HA, you could emulate the playlist from HA now. If you turn the Twinkly on in HA using the UI, you will see all uploaded effects in the dropdown at the bottom. These are the names that you can use in automations as well, in the light.turn_on service call.

Apparently, the number alone is enough. I hadn’t noticed that, I always used the full number plus name.

Cheers…more play time required :grin:

If I want to switch from an effect to a solid light colour, how do I stop the effect ?
If I set a colour with a service call, the effect seems to overridde it.
If I set a colour with the UI it seems to accept it.
What should I send in the service call to set a fixed colour ?

Thanks

1 Like

Hi all,

I solved the problem implementing the script from Kylehase ( Profile - kylehase - Home Assistant Community ).
Is a simple script that every time is called change the effect of a light to the next item.
The script is here : Select_next script for light effects

After the script I setup an automation that every minutes call that script and the Twinkly tree works fine and smooth.

thanks to all and BR.

Hi, did you figure out how to go from effect to solid color in service call?
I’ve tried
“effect”:none
“effect”:stop
“effect”:“None”
and similar, but no success.

Why don’t you try something like this (maybe i didn’ t get the point ,sorry ):

alias: Test albero
sequence:
  - service: light.turn_on
    target:
      entity_id: light.albero_di_natale
    data:
      color_name: blue
mode: single

Where light.albero_di_natale is my twinkly light.
This is only an on the flight example .

Sending just a colour didn’t stop the effect. But if I send a colour and brightness then it works.

Thanks anyway.

Anyone knows, why Homekit is resuming the playlist and the HA integration is not doing this.

I’m looking just for a way to resume or start a playlist. Anyone got a trick for this already (withoiut rebuilding the playlist in HA with a row of effects).

I’ve gotten a little bit further on this, and it may be the case that the light color needs to be black or white for Twinkly integration to resume too. When it was red with me, that would be how it came back on always. after I experimented with white/warm white colors, then the twinkly integration did go back to previous. But to be honest, I don’t really know what made the difference. I’d rather not toch it now if I’m not sure I’ll get it back.

I use node red with a number randomizer and a 30second trigger to shuffle through saved effects. Stopping and starting the randomizer via msg.reset on the trigger. Pretty neat that Twinkly uses numbers instead of names in that scenario. Yes, looking at you Nanoleaf.

Does anyone know how to implement a transition time without intermediaries as mentioned above? The inbuilt transition command doesn’t seem to work for me…

Edit: Concerning this Scene/Static transition issue. You could always create a scene with a solid color. Doesn’t really use space on the Controller.

As this channel was used more, maybe people experienced the same:

as posted in: Twinkly Music dongle support? - #3 by jaymemaurice

I tried adding the Music stick (TMD01USB) based on IP to the existing HA Twinkly integration and got an error, using versions v.2.1.0.

Effect show up in the dropdown menu, but music does not. I don’t mind the feature as an effect, or as a separate device that can be toggled. Currently both seem not possible. Hope I’m missing something and someone was able to succeed :slight_smile:

It is a shame this can’t be integrated into the main release, especially as Christmas is here again, but I followed the instructions here and can get my playlist to start whenever I turn on my (joined) 2 sets of twinkly lights within HA.

Do you have a joined playlist as well, where the effects are running e.g. from one device to the next, …?

Are such joined playlist are working then as well (still synchronously)?

I now have an automation that mimics the playlist functionality, you do need to set up the playlist in the app first and create the automation against the master (if you have a grouped string). Also check in developer settings the attributes for the effect_list and make sure they are all the same.

alias: Twinkly rotation
description: ""
triggers:
  - trigger: time_pattern
    minutes: /1
conditions:
  - condition: device
    type: is_on
    device_id: 80f95510144c5e9085cc785aa6425608
    entity_id: aa1c394e844a3ae038c396fffc3ae8e1
    domain: light
actions:
  - action: light.turn_on
    data_template:
      entity_id: light.twinkly1
      effect: >
        {% set effects = state_attr('light.twinkly1', 'effect_list') %} {% set
        current_effect = state_attr('light.twinkly1', 'effect') %} {% set
        next_index = (effects.index(current_effect) + 1) % effects | length %}
        {{ effects[next_index] }}
mode: single

And from where do you now, what is the master in Twinkly internally?

sure - you can find it here:

1 Like

Ah. Thank you. Didn’t have in mind how how looked like. Have to pull the things from the basements for this year.

I set up an automation to automatically proceed through my list of effects using the effect_list attribute as described above. This morning, I removed some effects and added some new ones. Now I my effect_list is a concatenation of what was previously there, plus the new effects I’ve added.

Anyone know how to reset the list? I’ve tried restarting the integration (and of course turning it offf and on again).