Virtual energy sensor
virtual energy sensor
Virtual meters are a very interesting aspect of the controller. In the case of connecting a source with constant consumption to a given output, they allow for the creation of a meter based on the active time of that output and a user-defined flow/energy consumption.
Configuration in the web application
Recommended configuration method.
Sample webui configuration
Currently, there are two types of sensors - an electricity meter and a flow meter.

Adding a new one

| Option Name | Description |
|---|---|
| Name | Virtual sensor name - Visible in the webui, MQTT, and HA. |
| Custom ID | Allows entering a user-defined device ID. |
| Output | Selection of the output the sensor is associated with. |
| Sensor Type | Allows selection between energy and flow measurement. |
Energy:
| Option Name | Description |
|---|---|
| Power usage | Power consumption of the sensor - expressed in Watts. |
| Area | Selection of the appropriate area. |
Flow:
| Option Name | Description |
|---|---|
| Flow | Water flow for the sensor - expressed in liters per hour. |
| Area | Selection of the appropriate area. |
YAML Editor
Sample configuration
virtual_energy_sensor:
- name: Lighting - test
output_id: OUT_01
sensor_type: power
power_usage: 30
area: test