Create a state based on the consumption values within a power circuit.

By using the consumption values of a digitalSTROM-Meter (dSM), the state can be set and reset depending on the current consumption.
For example, the power circuit to which a washing machine is attached only, the state 'Washing machine running / not running' is set if the consumption exceeds 50W. Once the consumption drops below 40W, the state is reset. In order to consider potential breaks within the washing program, the state might only be reset if the consumption dropped for a period longer than a given time.
As a result, the light might blink or notifications are sent through push or Sonos once the laundry is ready to be collected.