hueadd

The hueadd function adds Philips HUE devices to a HUE bridge using their device serial number. This is necessary if the device is still connected to another bridge and will not show during a huesearch call.

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, huename

Usage:

r = hueadd(serial,bridgenr,mode)

Where:

ParameterDescription
rIs the response struct.
serialSpecifies the device’s serial number(s) to be added:
– string or char for single devices
– cell array with string or char for multiple devices
bridgenr
(optional)
Defines to which bridge the device will be added, default: 1.
mode'secure' (default) or 'allow-insecure' if a secure connection is not possible.

Examples

Add device with serial number 123456789:

r = hueadd('123456789')

Add devices with serial numbers 123456789 and ABCDEFGH to bridge number 2:

r = hueadd({'123456789','ABCDEFGH'},2)

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.