Twinkly Christmas Lights

Hi, did you received your order?
I have also ordered a piece of the 225 version 10 days ago and they still have not confirmed the dispatch of my order
are they legit?

Hi dawnlord,

I can try to implement a preset selection in the future. It most likely won’t be a simple setup however. It seems as though the api requires uploading a movie config everytime the pattern is changed. There may be a way for me to setup a way to grab the current effect and save it in hass.

Not yet. Contacter them they did they had an issue worth shipping but it should be delivered by 1st December

Hi,
I set my Twinkly to rainbow effect, set a reserved IP for it, but the switch doesn’t work:

Command failed: python3 /config/python_scripts/twinkly.py 192.168.1.22 state

    14:49 components/switch/command_line.py (ERROR)

    Command failed: python3 /config/python_scripts/twinkly.py 192.168.1.22 state

    14:49 components/switch/command_line.py (ERROR)

    Command failed: python3 /config/python_scripts/twinkly.py 192.168.1.22 on

    14:49 components/switch/command_line.py (ERROR)

    Command failed: python3 /config/python_scripts/twinkly.py 192.168.1.22 state

    14:49 components/switch/command_line.py (ERROR)

    Command failed: python3 /config/python_scripts/twinkly.py 192.168.1.22 state

    14:48 components/switch/command_line.py (ERROR)

    Command failed: python3 /config/python_scripts/twinkly.py 192.168.1.22 state

    14:48 components/switch/command_line.py (ERROR)

Sorry to tell you this but kikistars a scam site. They used a self signed cert to look legit. I reported them to their hosting company (Go daddy) but nothing has been done. It would be a good idea to remove the link from the previous post to prevent anyone else getting scammed.

I thought so, already contacted them for my order but I got no response

this is the error… python3 /home/homeassistant/.pyenv/versions/3.6.3/envs/homeassistant-3.6.3/lib/python3.6/site-packages/homeassistant/components/twinkly.py 192.168.1.125 state
Traceback (most recent call last):
File “/home/homeassistant/.pyenv/versions/3.6.3/envs/homeassistant-3.6.3/lib/python3.6/site-packages/homeassistant/components/twinkly.py”, line 3, in
import urllib.request
File “/usr/lib/python3.5/urllib/request.py”, line 88, in
import http.client
File “/home/homeassistant/.pyenv/versions/3.6.3/envs/homeassistant-3.6.3/lib/python3.6/site-packages/homeassistant/components/http/init.py”, line 13, in
from aiohttp import web
File “/usr/local/lib/python3.5/dist-packages/aiohttp/init.py”, line 6, in
from .client import * # noqa
File “/usr/local/lib/python3.5/dist-packages/aiohttp/client.py”, line 18, in
from . import client_exceptions, client_reqrep
File “/usr/local/lib/python3.5/dist-packages/aiohttp/client_reqrep.py”, line 9, in
from http.cookies import CookieError, Morsel, SimpleCookie
ImportError: No module named ‘http.cookies’

Great, got it working perfect! Thank you very much!

I have the same effekt. using the 175 model. and on firmware is 2.0.22- mqtt
And like Demiano im getting

Command failed: python3 /config/python_scripts/twinkly.py ip state

Running Hassio Latest.
ops

Well atleast i know whats wrong if you get this. Download the twinkly.py file the right way ^^. Im going to bed now i need sleep lolz

Hope that helps you demiono ^^

Hi, what do you mean with “Download the twinkly.py in the right way”? I downloaded it from joshkay/home-assistant-twinkly…

Ok, solved, there was an error in the path of the script…

Great that u solved it. Atleast from my part i downloaded the file the wrong way.

Anyone get this working with a group of lights? I have two sets on my tree (a 225 and a 175) and would love to be able to control them as a set like I do in the twinkly app.

I’m not able to test how this works as I only have one set of lights. You can most likely setup two command line switches and control them both.

I am using a 105 starter + 56 add on with the new 2.1.0 firmware and this script is working perfectly for me. Thank you!

What type of Owner and read and write privileges should the file be set to?

@ duetoxplode
Thanks for creating this. I have my Twinkly set up to switch on and off through HassIO and it is working well.
Is there any way to get it to scroll through the effects?
I can only get it to switch on when one effect is selected.

How are you setting your twinkly lights to scroll through effects? I can try to add support for that today. Currently working on moving this over to an official component. Lots to learn about Python :smile:

There is a switch in the Twinkly app.

Is that the effects carousel option in the settings? Does it just override whatever effect is currently playing?

Yes that’s the one it just scrolls through the pre defined effects in the app.