Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Virtual CT Phase 2.
This new version gives fine grain control to drive Colw/Warm white, for RGB, RGBW and RGBCW.
New command:
CTRange
CTRange <ct_min>,<ct_max>
Speficies the CT range of the bulb. Default is
CTRange 153,500
. When you change this settings, it will only indicate the capabilities of the bulb. The slider will still allow to set CT from 153 to 500, but the rendering will be done within this new range.Note: the settings is not persisted in Flash. You need to re-do the command at each restart. For example:
New command:
VirtualCT
This command allows to precisely specify the rendering of the bulb for Color Temperature.
Syntax:
VirtualCT {"<minct>":"<color1>","midct":"<color2>","maxct":"<color3"}
The first and last ct values indicate the min and max CT and are equivalent to
CTRange
Example:
VirtualCT {"200":"FFFFFF0000","400":"000000FF00"}
Note: the settings is not persisted in Flash. You need to re-do the command at each restart. For example:
VirtualCT
needsSetOption106 1
and works for 3,4,5 channels bulbs. It is not enables whenSetOption68 1
or whenSetOption37 128
.VirtualCT
is compatible with white-blend mode and uses the current CT value.How to configure:
SetOption106 0
Color xxxxxxxxxx
command.xxxxxxxxxx
will be the value to be used for each point in VirtualCTSetOption106 1
and after the reboot, use the values above forVirtualCT <json>
VirtualCT is included in Tasmota standard but is disabled in tasmota-lite. This feature depends on
#define USE_LIGHT_VIRTUAL_CT
.VirtualCT supports up to 3 color points by default. This number can be increasd by changing
#define LIGHT_VIRTUAL_CT_POINTS 3
Important: Use either the simplified
CTRange
or the more sophisticatedVirtualCT
. Both commands will override each others.Adds 1.1kb to Tasmota standard.
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass