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:
- Navigate to Device > Observations.
- Click Add Observation.
- Click the Observed resource drop down and select /redSensor/light/value.
- Enter an Observation name.
- Set Send events to to Resource.
- Click on the Destination resource drop down and select
/lcd/txt2
. - Click Save. The second line of text on the LCD should change to indicate the current light level.
Updated about 5 years ago