I need a way to convert from amps to watts.
Multiply the current by the voltage to get power.
4 Likes
I have a version of the below as a sensor template in configuration.yaml. You’ll need a sensor with the current and a sensor with the voltage.
- sensor:
- name: "Calculated power"
unique_id: device_calculated_power
unit_of_measurement: W
device_class: power
state_class: measurement
state: "{{ (states('sensor.device_current')|float * states('sensor.ac_voltage')|float)|int }}
I have a similar issue im running modbus over ew11 and i have no sensors that have watts or kwh only have amps and volts dc power off grid with a solar controller and an inverter separate. How would i create something to add as a solar sensor etc to use in HA energy?
Template helper to multiply voltage by current to get power.
Integral helper to convert power to energy.