Comments (17)
Is this true for all MQTT lights?
from adaptive-lighting.
@psbankar could you try the latest commit, I've added a separate_turn_on_commands
option.
from adaptive-lighting.
This is a duplicate of #16.
from adaptive-lighting.
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.
@nickg90, a right, I misremembered what you were asking.
from adaptive-lighting.
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.
Could you tell me the exact sequence of commands that you need?
from adaptive-lighting.
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.
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.
Yes, that is exactly what I implemented.
Could you try it?
from adaptive-lighting.
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.
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.
Yes those commands work
from adaptive-lighting.
OK then I should change the implementation.
The only thing you need to do separately is the color and brightness?
from adaptive-lighting.
Yes, that's right. You can combine transition with color and brightness so only two commands are sent.
from adaptive-lighting.
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.
I consider this solved. Please ping me here if this is not the case.
from adaptive-lighting.
Related Issues (20)
- "Detected an 'off' → 'on' event for" triggered by the adaptive_lighting integration itself, which *should* not happen
- Adaptation does not occur while the lamp is on HOT 7
- Urdu translation doesn't exist HOT 2
- Allow invoking a script to control the lights
- Failing to detect manual control changes via Govee App on Recessed Lights
- Add daycycle to brightness calculation HOT 3
- The WebApp is not loading HOT 4
- Take Over Brightness Option HOT 6
- Lights turned on using device_id target are not adapted HOT 1
- Option To Select Color Temperature Ramps
- Middle of Day but lamps stay dark HOT 4
- Simulator web app is down HOT 3
- Allow RGB input for min and max color HOT 1
- Home Assistant Hangs with excessive memory usage when controlling Hue Bridge lights HOT 3
- Errors in log HOT 1
- Adaptive lighting always sets light to 1% HOT 11
- Integration with PWS solar sensor
- brightness_mode_time_dark vs brightness_mode_time_light HOT 4
- adaptive-lighting zigbee2mqtt error message MAC no ack' (233) HOT 2
- Add support for a completely customized sequence of (time-point, brightness, temp) tuples and let the AL engine adjust between when active
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adaptive-lighting.