AboutBlogContact

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.

VES menu view

Adding a new one

Add VES view

Option NameDescription
NameVirtual sensor name - Visible in the webui, MQTT, and HA.
Custom IDAllows entering a user-defined device ID.
OutputSelection of the output the sensor is associated with.
Sensor TypeAllows selection between energy and flow measurement.
Energy:
Option NameDescription
Power usagePower consumption of the sensor - expressed in Watts.
AreaSelection of the appropriate area.
Flow:
Option NameDescription
FlowWater flow for the sensor - expressed in liters per hour.
AreaSelection of the appropriate area.

YAML Editor

Sample configuration

Sample configuration from config.yaml
virtual_energy_sensor:
- name: Lighting - test
  output_id: OUT_01
  sensor_type: power
  power_usage: 30
  area: test