dr1rrb / ha-twinkly Goto Github PK
View Code? Open in Web Editor NEWTwinkly integration for Home-Assistant
Twinkly integration for Home-Assistant
First, thanks for this integration and Happy New Year!
I've just noticed that when Twinkly is off, the brightness sider is still active in standard Lovelace light element. Not sure whether it is intentional, however, sliders for all my other lights set at 0 when they are off.
it seems it is not possible to edit the entitity so it can be set to an area.
(I have multiple Twinkly devices in the configuration).
Would be nice to be able to set it to an area.
2020-08-28 14:39:42 WARNING (MainThread) [homeassistant.components.light] Light is deprecated, modify TwinklyLight to extend LightEntity
I guess it's a easy fix!
It seems when this implmentation is active, it scans the twinklys every x secs. which interferes when trying to mapp the lights via the app or direct control the light effects.
I read on the net that there are rest-api that cnsentoo the total implementation of the device for third-party use. did you take a look?
(https://xled-docs.readthedocs.io/en/latest/rest_api.html)
Currently effects are pushed by the app to the device in raw octets stream and are customized per device / configuration (especially for grouped devices). This means that:
There is 3 approach to get the effects:
The idea would be to add a "service" in HA which would get the current effect from the device and store it for later on a file on disk.
The issue is that currently there is no "get_movie" endpoint documented (https://xled-docs.readthedocs.io/en/latest/rest_api.html#upload-full-movie). Maybe it has not been discovered yet?
The more complex approach would be to act as a proxy in order to save the effects when they are sent to the device.
The main issue is: how to we support multiple devices? Are we able to "multiplex" devices from a single IP by tweaking the discovery payload?
Probably even more complex: fake a device just to save the effect.
The issue are that
For the two last solution, we could also imagine to create a dedicated external app that would dump an "effects" file that can be pushed to HA.
There is an existing unofficial XLED library that could be used as a base for this component
https://github.com/scrool/xled
I am using this integration successfully for a while.
My Twinkly Fesstoons can be witched on/off and control brightness via light card in HA.
The Entity I call is light.twinkly, this works perfectly!!!
Now as my wife always forgets to switch Twinkly off in the morning I want to Add an Automation for this to switch it off at sunrise.
All Hue lights I have the automation of this is at no issue but Twinkly is not listed at all under devices.
Is there any suggestion how an automation for twinkly off at sunrise can be created, am I overlooking something, or is there a bug that could be fixed.
Thx in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.