cyberjunky / home-assistant-toon_smartmeter

This component reads and displays sensor values from the meteradapter connected to a rooted Toon thermostat.
MIT License
27 stars 13 forks source link

sensor.toon_p1_power_use_cnt gives statistics_not_defined in HA #71

Closed B4ttleduck closed 11 months ago

B4ttleduck commented 1 year ago

Upon setting the sensor.toon_p1_power_use_cnt as Grid consumption source, I receive the error statistics_not_defined. The use_cnt_low and use_cnt_high are working fine.

Below my Configuration.YAML

`# Toon intergration

sensor:

cyberjunky commented 11 months ago

sensor.p1_power_use_cnt is actually sensor.power_use_cnt (this is for pulse) I just renamed it in the code, it was a bug. The P1 meteradapter doesn't publish a total use count for P1, only low and high

But you can create a template sensor for it, read here: https://github.com/cyberjunky/home-assistant-toon_smartmeter/tree/master?tab=readme-ov-file#get-usage-of-your-house-disregarding-current-tarif