Turning off and on works perfectly fine for Gen 2. Adding it to Homey was super easy and fast, but it interferes too much with the original app, so I have removed it again for now.
This documentation is not by Twinkly but is reversed engineered. Based on this documentation I have written the app. There is not much more in there that can be used to expand the app that actually makes sense. There is no way to activated saved effects as these are generated for each Twinkly setup based on the scan someone has made of their lights. Creating effects is something thatās to complex for the interface is Homey. Is there something else you would like to see which I might have missed?
No, the one function I expect to use most (read: probably nothing else) is on/off, so Iām going to find the effect I want, and then add it to homey to turn on and off. Homeykit also pushes it to Homekit on iOS without a problem, so I can also control it from in there.
Now, I havenāt had time to dig into the API, but maybe itās possible to just go to the ānext effectā? So one sends a signal and Twinkly just changes the effect, instead of having to import the effects into the homey app?
I have two first gen Twinkly strings. Bought both of them second hand as they are indeed expensive when bought new. But I must say I absolutely love them. Iām a sucker for colorful lights though.
Iām having some problems with my 400 LED Twinkly lights (Gen2). I installed them a couple of days ago and at first everything was working. Then I upgraded the firmware and also installed this Homey app and suddenly I was losing connection to my twinkly lights all the time. They also started ācrashingā mid-animation, and Iām unable to apply an effect.
Iāve been in contact with Twinkly support and they just replied that theyāve been testing it and found that this app was the cause of the problem. I wonāt be able to test it myself until tomorrow, but I figured that Iād post it here in the meantime.
It would be interesting to hear what they discovered as the problem with my app although I can image they wont tell as my app is using a reversed engineered API. My app runs pretty wel on the first gen strings but still wont allow you to control the strings with both the official app and the smartphone app at the same time. Did you force close the official app on your phone to see if that solves your issue? Could also very well be that the 2nd gen strings handles things even differently and my app in itās current state indeed wont work. I only own 1st gen strings so I can test it myself.
Hi.
I have both twinkly 225 rgb gen 1 and twinkly 400 rgb gen 2 and they both work fine with this app.
I can even control them from both homey and the twinkly app at the same time.
One thing i miss is to set demo mode and color from the device button. Now we have to create a flow to set those settings.
I have the same problem, but after change the polling frequency in homey to 50(long press the app icon and go to advanced settings), anything is working as aspected.
I have 2nd gen 250 RGBW and also problem that the Twinkly app is interfering with the Homey polling. Adjusting the polling time is helping until the next poll: switch off/on the light with smartphone is then enough to get the controll back to my phone. After changing the polling time i have to restart the Homey app to get the new polling time active
I can now confirm that my problems indeed were caused by the homey app. In my case I was still ādesigningā my twinkly lights in the twinkly app and the homey app made that impossible, even when polling less frequently. Might reinstall when Iām fully set on my twinkly design.
Having said that, it would be sweet if the homey app could get support for selecting a design as well, but Iām not sure how those designs are stored.
This is not possible. The designs are not stored but send to the light as data every time. That data depends on the configuration of your lights (set when scanning). So this will never be added.
Your communication with Twinkly triggered a response from the CEO asking me to take down the app.
Dear coder,
Iām Sirio Zuelli, CTO of Ledworks Srl, the makers of Twinkly.
This piece of code you did, well coded indeed, is causing a lot of issues to our customers because it is using a private API that we never authorized. Using this plugin on Homey will interfere with the normal Twinkly usage because the login token is constantly invalidated.
Please, remove this app from the Homey store. We are planning to open our API and from that moment everyone will have the opportunity to hack our system to improve it.
Thanks for understanding.
Best Regards
Sirio Zuelli
I think a lot of users can live with this limitation so I will see if I can work something out.
Oh wow. Thatās a shame and obviously wasnāt my intention
Hope you can work something out with them. At least it sounds good that theyāre planning to open up the API, I just hope itās sooner rather than later in that caseā¦
Do you have any kind of reference of this. It might help me in my case that itās not in the best interest of the users (and therefore their company) to remove the app. Working with some sort of disclaimer could be an alternative solution perhaps.
@Dirk - glad to know everything is fine and you like Twinkly! For sure weāll keep on working developing functions and improving the product (we love doing this!) but
@Steven - happy you found solution. iPhone Plus bug is on the list, thanks!
@Thomas - Thanks for the suggestion. Youāre right, we just picked up some common colors for the preset. For next Christmas weāll launch tons of new features, including a more accurate color picker and web editor with public API that will make the joy of the geek Christmas developers
@Aurelien - glad to know youāre happy with Twinkly! Next year we will open the APIs to developers! If you give me an email address Iāll send you some of them so you can start making test!