Create a state based on the netto power consumption measured by a modbus meter.

By using the netto power consumption value, the state can be set and reset depending on the current netto consumption of the whole installation.

For example, if your home is currently consuming more than 7000W, you can choose to switch off certain non-essential devices thereby reducing your electricity bill.

UDS can be used in event responder to control which devices need to be turned off.