-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quinled brightness vs MQTT vs HA #1292
Comments
This might be related to #1222 |
One more question/problem: If I unplug espurna device, in HA device newer goes into unavailable state, and if was turned on it stay in state on. And this is problem. Is there any way to stay in sync? |
I have Quinled with single color LED at channel 0. Espurna does not respond to brightness commands via MQTT QUINLED-BED/brightness/set I checked Debug menu, but no command is received when I try to set brightness in this way. If I set brightness via: QUINLED-BED/channel/0/set then it's working, but I have two channels and I want to keep channels at 255 and play only with brightness. |
There are 2 channels, 0 and 1. These refer to the output channels of the device. As you've find, you change the brightness using the topic: {$device}/channel/{$channel}/set There's no need for a separate brightness topic for a simple dimmer. |
As you wrote there are 2 channels, #0 and #1: All what I want is to leave both channels on 255 (100%) and adjust brightness with the Brightness command (bottom slider on the picture). This is not possible? |
Easy test to see what device subscribes to is running Some code observations, as I cannot run this right now: espurna/code/espurna/light.ino Lines 488 to 489 in 7a9dfb9
Device subscribes to brighness topic only when 'color' flag is set. Maybe it is not the case here? i.e. useColor setting is 0. Other codepaths do not do this e.g. websockets configure brightness regardless.
|
As @mcspr says, brightness setting controls the overall brightness of a set of RGB channels, that's why it's only defined when we have at least 3 channels and we defined them as color channels. Maybe it should be more generic and control any channel? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This is my need. Have you solved the problem? Can you share the yaml file? |
IMO the color check should just be removed. webui already exposes the slider and _generateBrightness handles it by setting all channels to the same value. Not sure how second channel can be described through HA mqtt.light logic |
BTW: /brightness is already published, only subscription to /brightness/set is missing here is what mosquitto logs after mqtt.reset:
|
First, thank you for making this great firmware. I want to use it with Quinled. I am happy to see it's supported.
There are small issue what I found:
And I have one more question: what's the difference between setting brightness trough Brightness command vs. Channel #? Or I should leave both channels at maximum 255, then adjust brightness only with Brightness command?
Thank you,
Adrian
The text was updated successfully, but these errors were encountered: