Skip to content
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

Make PWM CT (setoption92) available for 5-channel PWM RGBCCT bulbs #8820

Closed
curlyel opened this issue Jun 29, 2020 · 6 comments
Closed

Make PWM CT (setoption92) available for 5-channel PWM RGBCCT bulbs #8820

curlyel opened this issue Jun 29, 2020 · 6 comments
Labels
duplicated Result - Duplicated Issue question Type - Asking for Information

Comments

@curlyel
Copy link

curlyel commented Jun 29, 2020

Have you looked for this feature in other issues and in the docs?

According to the docs, setoption92 provides the feature of controlling color temperature CT in addition to brightness instead of controlling a cold white and a warm white channel independently. This feature "PWM CT" is currently available for 2-channel CCT bulbs.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.

The same feature PWM CT is required for RGBCCT bulbs without separate cold white/warm white channels on the "white part" but with a CT channel + brightness channel instead. (Example: https://templates.blakadder.com/lvwit_A70_1521lm.html). The CT of this bulb is controlled by GPIO13 while brightness for white is controlled by GPIO5.

This means, the bulb can at least be controlled e.g. via:

color #RRGGBBCxWW

But "dimmer" or "ct" commands will lead to unexpected results, since it changes PWM4 and PWM5 simultanously

Describe the solution you'd like
A clear and concise description of what you want to happen.

I guess, for such devices the functionality of setoption92 needs to be extended to RGBCCT too.
Means, the second PWM for the white part (PWM5) should be treated as as CT (Color Temp) instead of warm white.

eg.:

setoption92 0 ... separate cold/warm channels
setoption92 1 ... treat PWM1 as brightness and PWM2 as CT
setoption92 2 ... treat PWM4 as brightness and PWM5 as CT

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Well, the RGB part and the White/CCT part can be controlled by the use of the "color" command.
So the pain here is limited somehow. Though, it would be nice, if the other commands like "dimmer", "white" and "ct" can be used as well...

Additional context
Add any other context or screenshots about the feature request here.

(Please, remember to close the issue when the problem has been addressed)

@s-hadinger
Copy link
Collaborator

I don't understand your problem. SetOption92 1 does work for 5-channel bulbs. PMW4 is brightness and PWM5 is CT.

So in your example, set GPIO13 to PWM4, and GPIO5 to PWM4. If CT is reversed, set GPIO13 to PWM4i.

@curlyel
Copy link
Author

curlyel commented Jun 29, 2020

Just found a remark:

... or SetOption92 1 (supported since v.8.2.0.5)

Seems that I simply need to upgrade ;-)
Thanks for pointing this out!

@curlyel curlyel closed this as completed Jun 29, 2020
@ascillato2 ascillato2 added duplicated Result - Duplicated Issue question Type - Asking for Information labels Jun 30, 2020
@curlyel
Copy link
Author

curlyel commented Jun 30, 2020

SetOption92 1 does work for 5-channel bulbs

Just upgraded to 8.3.1.6 and can confirm it's working.
And indeed: CT was reversed, so I needed to configure GPIO3 GPIO13 as PWM5i.

Again, thanks for pointing me in the right direction...

@poseidogithub
Copy link

poseidogithub commented Jan 4, 2021

@curlyel

SetOption92 1 does work for 5-channel bulbs

Just upgraded to 8.3.1.6 and can confirm it's working.
And indeed: CT was reversed, so I needed to configure GPIO3 as PWM5i.

Again, thanks for pointing me in the right direction...

Hello

do you mind helpme with the configuration? Im really lost.
according to blackadder, the template is:

this is not working for me, or I'm doing it wrong... this is my template config
imagen

can you please help me?

@curlyel
Copy link
Author

curlyel commented Jan 5, 2021

Sorry, there was a typo in my former post. I've corrected that above....

Just checked, GPIO13 is configured as PWM5i(50) on my side here. This is my full config:
image

And as said, SetOption92=1:

07:49:05 CMD: SetOption92
07:49:05 RSL: stat/tasmota/RESULT = {"SetOption92":"ON"}

To be complete, I'm on 8.3.1.6 with these bulbs:

image

@s-hadinger
Copy link
Collaborator

Use latest 9.2.0.2 and see here for VirtualCT: #10311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicated Result - Duplicated Issue question Type - Asking for Information
Projects
None yet
Development

No branches or pull requests

4 participants