Conditions

In order to execute actions defined within a rule, the conditions of the rule must be fulfilled. If more than one condition is specified in a rule (and this is the usual case), then all of the conditions must be met at the same time in order to trigger the rule and execute the defined actions.

When using conditions, it is important to note that the defined conditions are not permanently fulfilled, otherwise the defined actions would be executed continuously - in an endless loop, so to speak. For this reason, it is important to understand that a rule can normally only be triggered once per situation that has occurred. The following example is intended to illustrate this: By using the Hue temperature sensor, a light group should be switched on when 24°C is reached. A condition "24°C measured" is therefore necessary. With just this one condition, the corresponding rule is repeatedly triggered as long as 24°C is measured. This can be the case for hours or even days However, the rule should of course only be executed once when the situation occurs. A second condition is therefore necessary, which is used to query whether there has been a change in the measured value. This condition is met when the temperature increases, for example, from 23°C to 24°C and is no longer met when the temperature stays afterwards at 24°C, because there is then no longer any change in the measured value. In electrical circuits one would say the reaction is only to a signal edge. If rules are created manually, "all 4 hue" will inform you when you save a rule and this so-called trigger condition is missing (in case you have forgotten it). The app can then automatically add a suitable trigger condition. Rules without trigger conditions do normally not work and are sometimes ignored by the Hue Bridge so that there won't be endless loops.

The following conditions are supported by "all 4 hue" and the Hue Bridge.

Conditions related to groups

The following conditions refer to groups, i.e. rooms, zones and light groups. Conditions cannot be applied to individual lights. If you want to query a single light with a condition, create a new lightgroup or zone that only contains the light you want and then use this lightgroup.

Query light state

Query whether lights in a group are switched on. There are the following possibilities: All lights are switched on, all lights are switched off, at least one light is switched on, not all lights are switched on.

  • iOS
  • Mac
  • Android
  • Win10

Query entertainment state

Query whether the group is currently being used for a Hue Entertainment function.

  • iOS
  • Mac
  • Android
  • Win10

Conditions realted to Hue switches

The following conditions are related to Hue switches.

Hue Dimmer, Smart Button,..

Query which button on the Hue Dimmer, Hue Smart Button, or other switch was pressed or held.

  • iOS
  • Mac
  • Android
  • Win10

Hue Tap

Query which Hue Tap button was pressed.

  • iOS
  • Mac
  • Android
  • Win10

Friends of Hue Schalter

Query which button on a Friends of Hue switch was pressed or held. Depending on the type of switch, different options are available.

  • iOS
  • Mac
  • Android
  • Win10

Hue Rotary Switch

Query in which direction and how far a Hue rotary switch was turned.

  • iOS
  • Mac
  • Android
  • Win10

Conditions related to hardware sensors

The following actions are related to hardware sensors.

Motion/presence

Query whether motion was detected by a Hue presence sensor.

  • iOS
  • Mac
  • Android
  • Win10

Ambient brightness

Query which brightness was detected by a Hue ambient light sensor.

  • iOS
  • Mac
  • Android
  • Win10

Temperature

Query what temperature was measured by a Hue temperature sensor.

  • iOS
  • Mac
  • Android
  • Win10

Conditions related to memory sensors

The following conditions are related to memory sensors.

Boolean flag

Query whether the state of a memory sensor is "true" or "false".

  • iOS
  • Mac
  • Android
  • Win10

Value

Query what number is stored in a memory sensor.

  • iOS
  • Mac
  • Android
  • Win10

Further conditions

The following additional conditions are supported by "all 4 hue".

Daylight

Query whether it is day or night. This decision is based on the Hue Bridge's built-in calendar, which calculates sunrise and sunset times based on your Hue Bridge's location.

  • iOS
  • Mac
  • Android
  • Win10

Period of time

Query whether the current time is within or outside of a defined period of time. This condition cannot be used as the sole condition, but only as an additional condition to limit a rule to a specific time period (e.g. 12:00 to 22:00).

  • iOS
  • Mac
  • Android
  • Win10

Sensor switching state

Query whether a sensor is switched off or on.

  • iOS
  • Mac
  • Android
  • Win10