Define a state based on the consumption event of a device.
By using this consumption event status, you can easily check whether a device (such as a TV) is currently switched on or off.
As a first step, the consumption event for the relevant device (such as SW-KL) or an inline adapter must be configured within 'Hardware' tab. Afterwards, you simply create a new status (such as TV is switched on or off) and select the device.
The state will then be set according to the consumption event where it is set if the 'on' event was raised, and reset once the 'off' event was received.