Somebody did it last year, this is working!
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.
+1 for better integration!!
+1 for integration
+1 for integration
+1 for integration
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
And here we are : https://github.com/dr1rrb/ha-twinkly
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.
Thank you so much, this is great!
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.
Thanks for the hard work. I look forward to using it next Christmas.
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.
The should really make a app version that is made for use all year around
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
Upgraded to the 2020-12 version of HA. Twinkly is part of the integrations but doesn’t seem to work after you attempt to add it. Thoughts?
Works for me. Asked me for an IP address and it brought the Twinkly up as a light entity. All you can do is turn it on and off, and set brightness level, but that is good enough for scheduling the tree.
Not sure what is going on. When I select Twinkly it jumps back to the integrations page.
@PrayerfulDrop do you have the Twinkly integration from HACS installed? I did when I went to install the native and witnessed the same behaviour until I uninstalled HACS migration and rebooted
Double check that all of the old custom files is deleted Otherwise It not going to work