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:

ParameterDescription
rIs the response struct.
deviceidSpecifies the device ID number, scalar or string or char. Note: that is the number in the first huelamps table column
nameSpecifies the new device name, string or char.
bridgenr
(optional)
Specifies the HUE bridge, scalar default: 1.
modemode: '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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.