Giter Club home page Giter Club logo

Comments (17)

basnijholt avatar basnijholt commented on June 18, 2024

Is this true for all MQTT lights?

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

@psbankar could you try the latest commit, I've added a separate_turn_on_commands option.

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

This is a duplicate of #16.

from adaptive-lighting.

nickg90 avatar nickg90 commented on June 18, 2024

I think psbankar means for his light, when adaptive-lighting sends the command to the lights [60% brightness, 1000k], it only picks up the 60% brightness and the 1000k does not get set. It may fix the issue to have send the [60% brightness] setting and THEN [1000k] setting which will allow the lights to react to each new setting seperatly

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

@nickg90, a right, I misremembered what you were asking.

from adaptive-lighting.

psbankar avatar psbankar commented on June 18, 2024

Yes, @nickg90 got it right. In the latest commit, the light on command is triggering before the usual color temp and brightness command so it didn't work for me.

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

Could you tell me the exact sequence of commands that you need?

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

now it does

- service: light.turn_on
  data:
    color_temp: ...
    entity_id: light.yolo
- service: light.turn_on
  data:
    brightness: ...
    entity_id: light.yolo

from adaptive-lighting.

psbankar avatar psbankar commented on June 18, 2024

As @nickg90 said, I need the brightness and color_temp/RGB commands split up. i.e you could use a separate command for setting the brightness and separate for color_temp/RGB.

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

Yes, that is exactly what I implemented.

Could you try it?

from adaptive-lighting.

psbankar avatar psbankar commented on June 18, 2024

Ok, I figured out what was going wrong for me. Because of transition, color_temp, and brightness attributes, three separate commands were being sent. And because of the transition command, the light was turning on at full brightness again. I have fixed the issue for me by adding a condition to ignore the transition command.

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

That shouldn't be needed, I can fix it.

Are you able to do?

- service: light.turn_on
  data:
    color_temp: ...
    entity_id: light.yolo]
    transition: ...
- service: light.turn_on
  data:
    brightness: ...
    entity_id: light.yolo
    transition: ...

from adaptive-lighting.

psbankar avatar psbankar commented on June 18, 2024

Yes those commands work

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

OK then I should change the implementation.

The only thing you need to do separately is the color and brightness?

from adaptive-lighting.

psbankar avatar psbankar commented on June 18, 2024

Yes, that's right. You can combine transition with color and brightness so only two commands are sent.

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

I've made the changes accordingly, now it sends one light.turn_on for

  • brightness (and optionally white_value) + transition
  • color + transition

from adaptive-lighting.

basnijholt avatar basnijholt commented on June 18, 2024

I consider this solved. Please ping me here if this is not the case.

from adaptive-lighting.

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.