6: open and read the file white nano home-assistant-twinkly/README.md
Add the following switch config to configuration.yaml
Make sure to replace TWINKLY_IP_HERE with the IP address of your twinkly lights (3 occurrences)
7: In the README file wire the text you going to copy to configuration.yaml you need remove name: Twinkly from the code because it isnât supported anymore, luck att my picture so you understand me
I was having the same issue with error:
Command failed: python3 /config/python_scripts/twinkly.py ip state
I fixed it by doing 2 things. I changed the path to the full path of the twinkly.py file (Iâm using a virtual env on an ubuntu server) and I changed the user to my admin servers admin user instead of homeassistant and it worked.
I have two sets of lights on my tree. Here is what I have in my configuration.yaml (formatting is correct but I canât seem to have it show up correctly here):
Everything loads up with no errors but I only see a single switch - switch.twinkly
The oddest part for me is that it isnât names as either of the switches I put in the config. It does turn one set of lights on and off though. Anyone know what Iâm missing?
Thanks a lot. Works great.
It would be nice, if this can be a âlightâ component to change colors and effects. Iâm not sure if this is even possible.
Glad it works for you! I for sure want to do this in the future. Thereâs a lot for me to learn when it comes to creating an official component unfortunately. Iâve been spending my time getting my home assistant setup and running the way I want it.
I have been poking around a little bit and captured some packages.
What I have found out so far is that Twinkly connects to a cloud mqtt broker with the address mqtt.twinkly.com
It connects with a user named twinkly_noauth, a 24 characters long password (I donât want to post it here if itâs a different password per device, which I doubt) and a 12 character long client id that is the same as the MAC address of the controller (all upper case and no special characters). There are 3 different topics that I have discovered:
xled/command/[client id]
xled/status/[client id]
xled/appstatus/[client id]
The messages are the same in all three topics.
When I cut or gives power to the controller:
{âstatusâ: âofflineâ}
{âstatusâ: âonlineâ, âipâ: â192.168.1.xxxâ, âssidâ: âmy_ssidâ}
When I press the button on the controller it rotates between:
{âappstatusâ: âmovieâ}
{âappstatusâ: ârainbowâ}
{âappstatusâ: âtwinkleâ}
{âappstatusâ: âsnakeâ}
{âappstatusâ: âwavesâ}
{âappstatusâ: âcollisionâ}
When I change pattern in the app I always get the same messages:
{âappstatusâ: ârtâ}
{âappstatusâ: âmovieâ}
I hope this can be to some help for someone as I for the moment donât have time to dig more in to this.
Hey what do I need to do so I can test your add on? Iâm a Twinkly beta tester Iâm on firmware 2.1.1-net version Iâm on hassio and running HA ver: 0.84.6
I am one as well.
Ask via their support site https://www.twinkly.com/support/
You can open a ticket and explain why you would be a good beta tester for them.
It has it but it canât be run like a command only like a script it seems so, but hassio has in already installed, test my howto I have posted Earlier