dictionary:unitcontrol:turnon
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
dictionary:unitcontrol:turnon [2019/06/09 13:38] – [Color Support] fixed for new plugin color handling James Sentman | dictionary:unitcontrol:turnon [2019/06/09 13:45] – removed old color handling information and fixed discussion of simple/smart/simulated James Sentman | ||
---|---|---|---|
Line 27: | Line 27: | ||
* **xvalue/ | * **xvalue/ | ||
- | ===Color Handling=== | ||
- | If you are using a color capable device keep in mind that the level that the lamp displays the color at is separate from the brightness of the color that you are passing. For example, dimming a lamp to 10% with an rgb color of “FF0000” would result in a color at the lamp that is really “190000” So if you wish a dimmer red, you can just pass the full on along with a lower dim level. Color presets are handled in the same way. This can be a little confusing when just reading about it, but it does seem to make the most sense when actually using the lamp. You have your lamp at a specific color and you wish to change it to another color, you don’t wish the level to change dramatically along with that color preset change. This is how the Phillips Hue bulbs handle color changes natively and how XTension handles the RGB pseudo internally. | ||
- | Since the phillips hue bulbs are always treated as simulated including a color setting in the ON command will return the bulb to the last level with that level altering the color that you are passing to be the proper brightness. | ||
- | |||
- | RGB colors on the computer screen do not correspond perfectly to the color displayed by the bulb. A lot of work was done to support the specific transforms necessary for the Phillips hue bulbs and as long as you are choosing a color that the bulb can actually generate the color display is pretty close. For RGB Pseudo devices there could be considerable differences between what is displayed on your screen and what is shown at the lamp. Many less expensive devices seem to have an underpowered red channel and so you may have to boost the red above what you need to see the proper color on the screen in order to see the proper color on the lamp itself. | ||
===Examples: | ===Examples: | ||
Line 64: | Line 59: | ||
-- turnon a hue bulb moving to a color temperature saved as a preset | -- turnon a hue bulb moving to a color temperature saved as a preset | ||
turnon “my hue bulb” color preset 2 | turnon “my hue bulb” color preset 2 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | -- set the mired color temperature for a hue bulb to a warm white | ||
+ | turnon “my hue bulb” color temperature 2700 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | -- do a short alert for a color capable device | ||
+ | turnon “my color device” rgb color “FF0000” for 2 | ||
</ | </ | ||
===Preset Levels=== | ===Preset Levels=== | ||
- | Non-dimmable (discrete) units simply | + | The behavior of the turn on command is dependent on the dimmable |
+ | * **Simple** a Simple unit assumes that when it is turned on that it goes to full on. A simple device when sent an on will go to 100% | ||
+ | * **Simulated** a Simulated device includes the last dim level as known by XTension. This is translated internally | ||
+ | * **Smart** a Smart device is assumed | ||
===Notes: | ===Notes: |
dictionary/unitcontrol/turnon.txt · Last modified: 2023/02/13 14:52 by 127.0.0.1