supported_hardware:hue
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
supported_hardware:hue [2017/04/17 15:09] – external edit 127.0.0.1 | supported_hardware:hue [2023/02/13 14:52] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==Phillips Hue== | + | =====Phillips Hue===== |
+ | |||
+ | Note that this page is for the new Hue plugin that was released with XTension version 9.4.17 on 4/20/2019. For information on the original Hue plugin please see [[supported_hardware: | ||
{{: | {{: | ||
- | XTension also supports the commands for color looping | + | Color looping |
- | One thing I never cared for with CF and LED bulbs was that they didn’t get warmer when they dimmed like traditional bulbs (though | + | ====Connecting to the Bridge |
+ | {{: | ||
- | ==What You Need== | + | If you have not set a static IP address or made a DHCP reservation for your hub you can leave the Address field blank and the plugin will attempt |
- | You will need at least the phillips bridge and one bulb. They come in a starter pack with the bridge | + | |
- | ==Setting up the Bridge== | + | The Port should |
- | Follow Phillips instructions for the initial setup and linking the lights with the bridge (they should | + | |
- | ==Connecting to the Bridge from XTension== | + | The Default Ramp Rate is the fade time in seconds that will be included |
- | {{: | + | |
- | Next you need to create a user in the bridge for XTension, so that it knows it's supposed to accept commands from us. Click the " | + | Should |
- | Once the Interface is enabled | + | At this point you can save the interface and enable it from the Interface |
- | ==Making | + | Once the interface is enabled and has a user created by your pressing the button you will also be able to use the “Touchlink” button to steal a lamp from another network. This requires that the interface be already setup and connected and will be greyed out if the interface isn’t running. This lets you assign a lamp to this network that has previously been assigned to a different network or that the Hue won’t connect to for some reason with it’s regular add new lamps functions. Normally you would add new lamps via the Hue app, but they don’t seem to have an obvious interface to the Touchlink feature |
- | As of XTension 9.2 any units found on the Hue Hub will be created automatically in XTension | + | |
- | ==Controlling Color== | ||
- | The hue bulbs have 2 ways of setting their color, a hue/ | ||
- | turn on "hue device" | + | ====Controlling Color==== |
- | + | {{: | |
- | sets a reasonable yellow. The other forms of sending | + | One of the advantages of the new Hue plugin is that it uses the proper gamut corrections for the various lamp types as reported by the hub so color representations should be more accurate than in older versions. This plugin supports non-dimmable |
- | | + | Click on the Jewel in any list to bring up the detailed control window. On top are the standard light and brightness controls that are available for all dimmable devices. Below that will be the color selection controls and below that the color temperature control section. This is now standardized for Hue and other lights. Though the hue does not use the actual color temperature value to set it’s color XTension will translate between the two and will show you a standard mired color temperature slider. |
+ | |||
+ | The current color or color temperature are displayed at the top of the window next to the dimmer. A small “w” will be displayed if the current color is a color temperature. A small “c” will be displayed if the current mode is displaying a color. You can click this control to being up the standard system color picker to choose a specific color. | ||
+ | |||
+ | A color panel is displayed and you can click anywhere in this to select a color to display. On the web interface this is simplified with fewer choices so as to be easier to tap on something specific. | ||
+ | |||
+ | Below that are the color preset selections. They also display the “c” or “w” to show which mode of color they represent. In order to save a color preset from the current setting of the lamp control click on the preset you wish to program and select “Set preset from the current color”. You can also set a color preset from the Edit Unit window for the Unit. The help tag for the presets will display either the RGB values of the color they are set to or the color temperature in °K. hover your mouse over one to see that. | ||
+ | |||
+ | The color temperature slider will let you select a color temperature to send to the lamp. Selecting a color temperature will change the lamp’s mode to color temperature from color if it was previously displaying a color. | ||
+ | |||
+ | Below that are some controls that are specific to the Hue bulbs. If the lamp supports color you will see the “Start ColorLoop” and “Stop ColorLoop” buttons. All Hue bulbs support the “Alert” and “Long Alert” functions. Alert changes the brightness of the bulb for a second or so and then returns to the preset brightness. Long Alert will do that over and over for 15 seconds. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ====Scripting Color and Color Temperature==== | ||
+ | |||
+ | All XTension verbs that you would use to control a lamp will also accept a color temperature or color value. The standard way of expressing colors in XTension is via their HTML format as “RRGGBB” so “FF0000” would be full red, “00FF00” would be full green and so forth. Additionally you can include hue/ | ||
+ | |||
+ | for all color interactions the brightness is taken from the brightness of the bulb not the brightness of the color. For instance turning on a lamp with a color of “0000FF” will result in exactly the same color display as turning on the bulb with the color “000033” as the brightness of the color will be the current value of the lamp and not the value inherent in the color. This is also why the “value” for hue/ | ||
+ | |||
+ | < | ||
+ | turn on “hue device” rgb color “AAFF22” | ||
+ | </ | ||
+ | |||
+ | returns the bulb to the last level that XTension knows about and sets the color. | ||
+ | |||
+ | < | ||
+ | brighten “hue device” to 75 rgb color “AAFF22” | ||
+ | </ | ||
+ | |||
+ | sets the value to a specific level and sets the color | ||
+ | |||
+ | < | ||
+ | brighten “hue device” to 100 color temperature 2700 | ||
+ | </ | ||
+ | |||
+ | will change the lamp to white or color temperature mode and set the color temperature to 2700. Note that previous Hue plugins required you to use the internal numerical value that the Hue bulbs used to represent color temperature, | ||
+ | |||
+ | If you wish to use hue/sat or x/y values to set colors that format is below. All hue, and x,y values should be decimals between 0 and 1. | ||
+ | |||
+ | < | ||
+ | | ||
turn on "hue device" | turn on "hue device" | ||
- | + | </ | |
- | You can set the color in XTension also by control clicking on the unit in any list and selecting "set color" which brings up a standard system color picker that you can choose from. | + | |
- | As of XTension build 850 and later the color data as XTension knows it will always be sent with any on or dim command. This is useful since the bulbs do not remember their color state when the power goes out and will return to white. It also adds the ability to change what this stored value is while the light is off using the sim preset command like: | ||
- | sim preset "hue device" | + | If the bulb is off and you wish to change what the color or color temperature |
- | + | ||
- | if the light is off that will not cause the light to go on, but the next time you issue an on without | + | |
- | {{: | + | < |
+ | sim preset | ||
+ | </ | ||
- | ==White Color Temperature== | ||
- | You can change the color temperature of the white being displayed by using the "color temperature" | ||
- | turn on "hue device" | + | ==Scripting Alerts |
- | + | ||
- | will produce a good warm white. The valid range is from 153 for a very cool white up to 500 for something that looks more like orange to me. So I can have cool white when I"m working with sunlight adding to the room light and then warm things up in the evening when it's dark outside and the cool would look grey. This is really a nice adjustment to make. | + | |
- | ==alerts and color fades== | + | Note that these are different from the original plugin which used the Blink verb. The Blink verb is supported for backwards compatibility but for new scripts you should use these functions. |
- | The phillips bulbs support some alert and color fade modes accessed via the " | + | |
- | blink "hue device" | + | To preform |
- | + | ||
- | produces | + | |
- | blink "hue device" | + | < |
- | + | | |
- | for "long select" | + | </ |
- | blink "hue device" rate " | + | and a longer 15 seconds alert: |
+ | |||
+ | < | ||
+ | tell xUnit “hue device” to longAlert() | ||
+ | </ | ||
+ | |||
+ | To cancel a long alert that is in progress: | ||
+ | |||
+ | < | ||
+ | tell xUnit “hue device” to stopAlert() | ||
+ | </ | ||
+ | |||
+ | to start and stop the color looping feature via a script: | ||
+ | |||
+ | < | ||
+ | tell xUnit “hue device” to startLoop() | ||
| | ||
- | starts the bulb slowly cycling through all it's colors and can be cancelled by setting it to a specific color or white or running the command again and passing " | + | tell xUnit “hue device” |
+ | </ | ||
- | ==Other Scripting and Examples== | + | ====Adding Ramp Rates==== |
- | all the commands support the " | + | |
- | you can script | + | All the commands support the “rate” paramter. You can fade slowly by specifying |
< | < | ||
- | brighten | + | |
</ | </ | ||
- | which will turn the bulb on full bright | + | would take 5 seconds to change from the currently displayed color to the new color. Or you can fade from a warmer color color temperature to a cooler one at some point in the day: |
+ | |||
+ | < | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Note that previous versions of the plugin used the low level value in 0.1 seconds that the hue uses internally so to fade over the course of 1 second you would have had to specify a rate of 10. That is no longer the case, the new plugin uses the XTension default of seconds and will handle that conversion for you. | ||
+ | |||
+ | ====Hue Sensors==== | ||
+ | Any motion or temperature sensors added to the Hub should just show up in XTension without any other configuration needed. If the sensor supports multiple sensor values they will each get their own unit in XTension. For example the Motion sensor also has a temperature and a light sensor in it. That device will create 3 units in XTension for Motion, or presence, temperature and light level. | ||
+ | |||
+ | |||
+ | ====Hue Remotes==== | ||
+ | |||
+ | All remotes will create a “parent” unit with the address of the remote. This unit is necessary to send the button events to the proper button units but will not otherwise change | ||
+ | |||
+ | If you wish to use your remote directly in XTension without having it linked to any hue devices directly there is a way to set it up to do that. Normally a remote button must be linked to at least one group or scene or lamp in the hue hub. During the setup of a new device in the Hue app however there is an option at the bottom to “setup in separate app” that will leave it unconnected to any specific hue devices. The units in XTension will still receive the events and you can use those scripts to control non-hue devices then, If you have already setup the device in the hue and wish to remove it’s direct association with all hue devices there is a button for “reset” in the setup for the remote, after that you can select the “setup in separate app” button and it will function normally in XTension while not controlling anything in the hub. | ||
+ | |||
+ | |||
+ | ====Conversion from old plugin==== | ||
+ | |||
+ | The documentation for the old plugin is [[supported_hardware: | ||
+ | |||
+ | As of this first release there is no attempt to convert units automatically from the old system to the new one. If you wish to convert an existing install you should change the interface type from the old plugin to the new. After doing that but before enabling the interface you can edit each unit and change the device type popup from the older values to one of the new unit types. It should be obvious which corresponds to which but there are more device types now than there were as we support more lamp types and there is a new unit type for remote button. After selecting the proper values for the units you should be able to enable the interface and have it pick up on any existing units. The addresses should not be any different from the old plugin to the new plugin, only the unit type has changed. | ||
- | ==Hue Sensors== | + | Note that controlling the lamps via scripting may have changed. The Blink verb is no longer used for alerts and color looping but the specific commands shown above. The color temperature |
- | Any motion or temperature | + | |
+ | Color selection is now much more accurate than it was with the previous plugin. You can still use hue/sat to set the colors, but you should verify that they are still the same as you like and switch to RGB for any new commands that you might write as those are better converted internally and adjusted for the specific hue lamps. | ||
- | ==Hue Remotes== | + | Ramp rate values |
- | As of this writing there are 2 different remotes that can be used with a Hue hub. Phillips “tap” battery less device and the dimmer remote which does require a battery and can be either mounted to the wall or used as a hand held remote. These units will also be created automatically in XTension. Each one will create | + | |
- | Whats not immediately obvious is how to create the remote in the Hue hub and yet not assign anything to it in the hub. The default is that it always controls at least one lamp somewhere. In my case I didn’t want the hub to directly control any lamps when the remotes were used, I wanted to link those things to other events in XTension. I was able to do this by creating a new room with a single lamp. Setting up the remote to control that room and then remote the lamp from that room. The remote remains pointed to that room, but there are no lights in it for it to control. After doing that I was able to get the remote events in XTension without having it directly control any Hue devices. |
supported_hardware/hue.1492441773.txt.gz · Last modified: 2023/02/13 14:51 (external edit)