XenoGuard Documentation

Hue Sensor On/Off

Actions » Home Automation » Philips Hue » Sensor » Hue Sensor On/Off 

The action Hue Sensor On/Off toggles the motion sensor connected to the Hue Bridge.


[-] Hide
  1. Open the Home Automation node in the Workspace Explorer.
  2. Open the Philips Hue node.
  3. In the Sensor node, select the On/Off action.

Parameters:

The action has the following input parameters:


name Description
Hue Bridge
The control center for all smart-home devices.

Allowed Context Scope [Fixed]
Sensor Name
The name of the motion sensor.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
State
The state of the motion sensor.

Allowed Values: On, Off

Allowed Context Scope [Fixed]
Allowed Data Type [Boolean]

Information The Sensor Name should be similar to the name set in the Hue App.

Results:

The action returns the following results:


name
description
State
The state of the motion sensor.

Allowed Values: True, False

Allowed Context Scopes [Fixed, Local, Global]
Allowed Data Type [Boolean]

Example 1 (Run a sensor to check motion every second):

This example creates and assigns a local variable, SensorName, with Text as data type, that identifies the motion sensor. If the motion sensor is activated, it runs a continuous loop that retrieves the state of the sensor every 1000 milliseconds. A voice message is then sent in Speech Output and turns on the hue light if a motion is detected by the sensor.


See other Philips Hue Sensor operations: