home-assistant-toon_smartmeter icon indicating copy to clipboard operation
home-assistant-toon_smartmeter copied to clipboard

Sensors become unavailable after restart of HA

Open Flashlab2 opened this issue 11 months ago • 5 comments

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?

Flashlab2 avatar Mar 18 '24 09:03 Flashlab2

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

sprangnl2 avatar May 24 '24 18:05 sprangnl2

@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 avatar May 25 '24 08:05 cyberjunky

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...

cyberjunky avatar May 25 '24 08:05 cyberjunky

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

Flashlab2 avatar May 25 '24 09:05 Flashlab2

oke i will check my configuration and collect the log files

sprangnl2 avatar May 26 '24 22:05 sprangnl2

Closing because stale ticket

cyberjunky avatar Aug 06 '24 08:08 cyberjunky