The huename functions allows it to rename Philips HUE devices.
Note: All hue function use curl commands to communicate with the HUE bridge. Please make sure it is installed. Curl is available for all major operating systems.
See also: huenew, huecon, huelamps, hueset, huesearch, hueadd
Usage:
r = huename(deviceid,name,bridgenr,mode)
Where:
Parameter | Description |
r | Is the response struct. |
deviceid | Specifies the device ID number, scalar or string or char. Note: that is the number in the first huelamps table column |
name | Specifies the new device name, string or char. |
bridgenr (optional) | Specifies the HUE bridge, scalar default: 1. |
mode | mode: 'secure' (default) or 'allow-insecure' if a secure connection is not possible. |
Example
Rename device number 6:
r = huename(6,'new name')
Result:
r = scalar structure containing the fields: success = scalar structure containing the fields: /lights/6/name = new_name
Reference
Philips HUE API version 1. High Tech Campus 48, Eindhoven; Netherlands, 2014.