cyberjunky / home-assistant-toon_smartmeter

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

Sensors become unavailable after restart of HA #83

Closed Flashlab2 closed 2 months ago

Flashlab2 commented 6 months ago

Hi all,

I have been using this nice integration for over a year without issue but since a few weeks I have a problem.

After a restart of HA sometimes the Toon Smart Meter sensors have the status unavailable in HA and don't recover. This results in my energyboard missing hours/days of information until I fix it.

The fix is removing one of the unavailable sensors and restarting. Most of the time this fixes it but it's not a 100% fix. Sometimes I have to multiple times.

Any ideas on why this is happening?

sprangnl2 commented 4 months ago

Hi ,

I have almost the same issue, sinds a couple of weeks some sensors are unknow. Installed a new HA with home-assistant-toon_smartmeter. Still the same issue. I restore the HA from 6/8 weeks ago it working fine. Compare config but nothing found. Any clou what I miss?

2024-05-24_161311

cyberjunky commented 4 months ago

@sprangnl2 The ones you miss are called '...cost' sensors, which are not part of the smartmeter integraton, I guess you calculate those using a template sensor, maybe there is an issue? Also you cannot have Power Use Cnt and P1 sensors at the same time, so the last one seems as misconfiguration (you need to not query that one I guess) If the solar ones did work before, can you enable debug and sent the logfile part?

cyberjunky commented 4 months ago

Hi all,

I have been using this nice integration for over a year without issue but since a few weeks I have a problem.

After a restart of HA sometimes the Toon Smart Meter sensors have the status unavailable in HA and don't recover. This results in my energyboard missing hours/days of information until I fix it.

The fix is removing one of the unavailable sensors and restarting. Most of the time this fixes it but it's not a 100% fix. Sometimes I have to multiple times.

Any ideas on why this is happening?

If you upgraded this integration lately, due to some needed architectural changes I needed to make to have it work on newer HA, you needed to throw away the old sensors since new ones where created, if you didn't upgrade, you maybe need to do this... else enable debug and sent the log and I will have a look...

Flashlab2 commented 4 months ago

For me the problem seems to be fixed. I did indeed update the old sensors already.

sprangnl2 commented 4 months ago

oke i will check my configuration and collect the log files

cyberjunky commented 2 months ago

Closing because stale ticket