I’ve been using Home Assistant for a few years, and this is the first time I use Zigbee. I purchased 4 smart plugs first, and they work flawlessly, and all of them summerize energy usage without problem.
The problem comes when I purchased another set of smart plugs (4 pieces), but from different brand. Apart from initial connection issues (which are already resolved by simply reset at least one time), one of them can’t summerize “Summation delivered”.
Symptom:
All 4 values, Current, Power, Voltage and Summation delivered, are showing current value correctly.
When click on “Summation delivered”, it always show “No statistics found”, even after 1 or 2 days, and Summation delivered is already more than 1.
After click on “Summation delivered”, and click “Show more”, it shows correct data in the History page.
After adding this entity to Energy Configuration in Energy page, this perticular smartplug always show 0 kWh consumed, even after 1 day.
I tried hide and show this entity, reconfigure the device, remove and re-add this device, the issue persists.
I believe this is ZHA issue and not device issue. How to solve it?
BTW, my setup:
HomeAssistant OS running on Raspberry Pi 4
Core 2024.7.4
Supervisor 2024.06.2
Operating System 12.4
Frontend 20240710.0
Phoscon ConBee III as Zigbee Dongle
The problematic smart plug: innr sp 240, which claims to be Zigbee 3.0
If the device definitely supports power monitoring and you’re using ZHA, then I would do a search for custom quirks for that device which might solve your problem.
These don’t seem to be in the blackadder database:
Have you checked whether other ZHA users are having problems? This page will have custom quirks too, if there are any.
They do appear to work with Z2M.
…but you would expect them to, as all Z2M handlers are custom built. ZHA tries to stick to the Zigbee spec even though manufacturers don’t.
You shouldn’t expect products with different branding to behave in the same way, unless they’re very simple devices. Some are wildly different, enen though they look the same.
Yes, I have in total 8. The first brand, all 4 smart plugs works as expected. The second brand is innr, I bought 4er-set, currently 3 are being used. 2 of them are working correctly, only 1 has this issue.
As I mentioned, all 4 “current” values are all showing correctly, Current, Power, Voltage and Summation delivered. Summation delivered is showing the number on the page correctly, the only problems are: this page (screenshot) is always no statistic found, and the energy page always show 0. Also as mentioned, History page shows correctly.
Also update: I noticed I didn’t add it to energy page after I remove and re-add this. And somehow I can’t add it to the energy page. It doesn’t show up in the “Consumed energy” list.
That’s how I suspected, but I’m not sure. Also, The Entity View itself is also wrong. History data is not shown in Entity View (No statistics found), but History data is correct in History View.
When I click the link when this time I can’t add this to Energy tab, there is a hint, that I should check for “errors” on Developer tools → Statistics, which is a page I never looked at.
There, there are many errors and I can’t fix them in batch. And one of the error is, this specific Entity has its Unit changed. I did have the issue that the Unit didn’t show up, and it changed when I click the Reconfigure button. Turns out it creates an “issue to be fixed” and never notify me that there is something I need to do. After fixed it by clicking “remove history”, everything goes normal. Entity page shows correctly, and after adding it to Energy tab, it summerize kWh correctly.