Giter Club home page Giter Club logo

ha-twinkly's People

Contributors

dr1rrb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mabels

ha-twinkly's Issues

Throws some error in the log!

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!

Active brightness in Lovelace Light when off

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.

Cannot add to area

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.

Twinkly in Device List for Automation

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!

Add support for "effects"

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:

  1. Adding supports for effects is not just requesting to the device to use a well known effect indexed by name or id, but instead it would require that HA stores and send the full effect data each time.
  2. We cannot just hard-code a bunch of pre-configured effects, but we have to get them from the Twinkly application or the physical device.

There is 3 approach to get the effects:

Get it from the device

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?

Act as proxy

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?

Simulate a device

Probably even more complex: fake a device just to save the effect.

The issue are that

  • How do we let the app know the type of device (and number of LED)?
  • How to not break app feature like mapping / live frames when designing effect etc. ?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.