Author: HCA Central Version: Added to Library: HCAVersion needed: 16 Keywords: Example
Package Description: Example class that handles Phillips Hue devices. HCA has support for Phillips Hue built-in so this class isn't useful except as an example. Unlike the other example classes, this class communicates with actual hardware. It is a good demonstration of using the HTTP element and the JSON functions to implement reliable communications with the Hue bridge.
Program Description: Example class that handles Phillips Hue devices. HCA has support for Phillips Hue built-in so this class isn't useful except as an example. Unlike the other example classes, this class communicates with actual hardware. It is a good demonstration of using the HTTP element and the JSON functions to implement reliable communications with the Hue bridge.
Example: If you want to actually use this class rather than just look at it as an example, review the HUE appendix of the HCA user guide first.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
HCAName | Value | Name of HCA device | |
id | Value | Phillips Hue assigned id | |
action | Value | Class action code | |
percent | Value | Class action data |
Global Variable Use:
Name | Description |
---|---|
HueCode | Access code from the "Grant HCA Access" button on the HUE connector dialog from "Interfaces" category, "Hue" button. |
HueBridge | The IP Address of the HUE Bridge |