Setting a Value From an Observation

This topic describes how to set a value from an Observation.

The following steps demonstrate how an Observation on one resource can be used to control/set the value of another resource. In this example, the sensor's light value will be Observed and then output to the LCD screen:

  1. Navigate to Device > Observations.
  2. Click Add Observation.
  3. Click the Observed resource drop down and select /redSensor/light/value.
  4. Enter an Observation name.
  5. Set Send events to to Resource.
  6. Click on the Destination resource drop down and select /lcd/txt2.
  7. Click Save. The second line of text on the LCD should change to indicate the current light level.