Commands CTRange and VirtualCT#10311
Merged
Merged
Conversation
13 tasks
Contributor
|
Edit: I fixed the issue myself, see #18768 Dear @s-hadinger, is there a chance you're interested in making VirtualCT work with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
CTRangeCTRange <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:
VirtualCTThis 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
CTRangeExample:
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:
VirtualCTneedsSetOption106 1and works for 3,4,5 channels bulbs. It is not enables whenSetOption68 1or whenSetOption37 128.VirtualCTis compatible with white-blend mode and uses the current CT value.How to configure:
SetOption106 0Color xxxxxxxxxxcommand.xxxxxxxxxxwill be the value to be used for each point in VirtualCTSetOption106 1and 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 3Important: Use either the simplified
CTRangeor 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