Dear all,
I am breaking my head trying to replace a tasmota measuring socket, into a constant W sensor which then converts to daily kWh.
Setup:
I have a smart meter where I get the continuous electrical usage of my house, I have started monitoring the usage per device, where the only big thing I cannot measure is the induction plates (does anyone have ideas around 3 phase tasmota measurements?)
Anyways, I currently monitor 25 Tasmota sockets, and I realized that some are always measuring the same output, so I wanted to redeploy them and create constants so that I dont miss those measurements.
Eg. the ventilation system of the house is always using 13W hour for a total of 0.333 kWh a day.
I would like to have a sensor showing 13W all the time, and a kWh sensor that starts at 0 at 00:00 in the night, and ends at 0.333 at 23:59:59.
I have created the following test but no luck unfortunately, code compiles etc. I know i still miss the utility meter template for night restart, but the basics are still not in place.
When I look at sensor.total_ventilation_watts I get 13, if I plot it in grafana, I get a nice constant line at 13. However sensor.total_ventilation_kwh shows 0.00. I have tried raising the value from 13 to 20000 so that i would not have to wait for the kWh to start recording, but it doesnt matter. the kWh constant remains at 0.00, even after 12 hours of 20000 W “usage”.
I was hopping you could help. thx!
sensor:
-
platform: template
sensors:
total_ventilation_watts:
value_template: ‘{{ 13 }}’
friendly_name: ‘Total ventilation Power Use’
unit_of_measurement: ‘W’ -
platform: integration
source: sensor.total_ventilation_watts
name: total ventilation kwh
unit_prefix: k
round: 2
unit_time: s
method: left