Giter Club home page Giter Club logo

Comments (8)

benleb avatar benleb commented on June 15, 2024 1

Thanks! I will check this :)

from ad-automoli.

gardar avatar gardar commented on June 15, 2024

Diagnosed this further, this seems to happen the first time the lights turn on after the brightness has changed. If I manually turn them off and then on again or if I wait for automoli to turn the lights off then next time they turn on they light up.
This also happens if I change the brightness manually and then next time automoli tries to turn the light on with the brightness setting that's set in automoli the light won't light up.
I didn't realize this at first as I have quite a long timeout set for that specific light, so while I was frustratingly trying to figure out why the light didn't work the light was never turned off by automoli.

Perhaps this issue is due to the fact that the lifx bulbs, unlike others support setting the brightness and color/temperature without turning the lights on? Even though it looks to be the exact opposite.

The LIFX bulbs allow a change of color and brightness even when they are turned off. This way you can control the light during the day so its settings are correct when events for turning on are received, for example from motion detectors or external buttons.
The normal light.turn_on call cannot be used for this because it always turns the power on. Thus, LIFX has its own service call that allows color changes without affecting the current power state.

(Taken from: https://www.home-assistant.io/integrations/lifx/ )

from ad-automoli.

benleb avatar benleb commented on June 15, 2024

Can you please check if this still occurs with current master? :)

from ad-automoli.

benleb avatar benleb commented on June 15, 2024

if theres still an issue, we can reopen :)

from ad-automoli.

gardar avatar gardar commented on June 15, 2024

Hi.
Sorry I didn't get a chance to test this earlier... I just did some testing today with the update and unfortunately it still behaves exactly the same as before!

from ad-automoli.

gardar avatar gardar commented on June 15, 2024

Is there any info/logs I can provide to help you diagnose this further?

from ad-automoli.

benleb avatar benleb commented on June 15, 2024

Yes!
Could you please set the debug_log option to true (possible for a single room) and then show the relevant part (+- 1-2min). This shows some additional output, the variables involved and their current values and such stuff... maybe you even can spot the problem yourself then 😁

According to your research... If I understand the lifx way correctly, it could help to use two calls, the first to set the brightness/color and the second on to actually turn it on?
(or more strict: using two calls should just needed if brightness/color differs from the values from the last time the bulb was on, but that's just theory... two calls everytime wont hurt either...)

from ad-automoli.

benleb avatar benleb commented on June 15, 2024

ok, closing for now but reopen is no problem ;)

from ad-automoli.

Related Issues (20)

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.