I’ve written a new async Twinkly library based on the excellent docs from @scrool. If someone wants to help out writing a home assistant component, please get in touch.
I find this to be very unstable though. I keep getting errors like Updating command_line switch took longer than the scheduled update interval 0:00:30 and most of the time when I switch it off it almost immediately turns back on again. Quite annoying. We really need something more stable. Hopefully someone is knowledgeable enough to do something with @jschlyter library.
Just in case it helps anyone who’s in the same situation I was (a Windows user, don’t understand Linux and running Hassio on a Synology DS918+ courtesy of the awesome package from fredrike at Hass.io on Synology DSM (native package)), to use the script referenced in this thread, it ended up being as simple as:
save a copy of the script from GitHub
create a “python_scripts” folder in the homeassistant folder (so wherever your configuration.yaml file is)
add the switch as set out on the GitHub page to your configuration.yaml, inserting the IP of your Twinkly lights.
restart Hassio (and in my case marvel at now being able to turn the lights on and off using the Home app on my iPhone)
Hi all, I bought one yesterday, and I agree that an integration would be awesome … so I decided that it was time to learn python and write my first integration
For now it’s a “custom_component” that has to be installed manually, and I’m working to integrate it in HACS. My final goal it to integrate it as component directly in HA.
On my side it works really well, but I’m welling to get feedback from some other users to make sure it works for everybody before going forward
Edit: The repo is now HACS compatible . See the doc to configure it to your HACS installation.
Installed and working although oddly my lights don’t show up in the configuration > entities list but is in the customisation section and shows as an unused entity when I go to that list in configure UI.
Edit: And of course now it’s actually a light, we have brightness control. Brilliant (and then dimmed…)!
Indeed I don’t see my twinkly lights in the “config > entities”, but actually I don’t see any of my entities that are configured directly in the configuration.yaml. I think this section is populated only by entities that were added by an integration configured in the HA UI … I’ll try to do this soon.
Interesting. I have the aarlo installed via HACS and configured in configuration.yaml and that also shows various entities in config > entities. So presumably it is possible to do. But it isn’t a problem, more a nice to have.
Last year I used my Twinkly lights as kitchen cabinet lights (on top and behind) with them set to come on in morning and evening.
Worked very well.
Also meant that I knew where to find them when it was time for the Christmas tree to go up.
Oh wow, I’ve been searching a lot for this and didn’t find it - so in the past week I’ve been hacking at my twinkly to understand the API. in fact I’ve just this morning started working on this very integration - but that seems unnecessary now deletes local folders…
I had a few ideas based on the api, and I see you’ve got a few todo’s left - I’ll try and help
thanks so far!
I love that the new version has a camera mode which seems to identify where each of the leds are - so that they can do an internal mapping of the animation. that should make the animations work even if they’re not in a pointy christmas tree type shape