CJNE / ha-myenergi

Home Assistant integration for MyEnergi devices
MIT License
147 stars 33 forks source link

myenergi Home Grid import today no longer reporting #241

Open phairplay opened 2 years ago

phairplay commented 2 years ago

Since updating to Home Assistant OS 9.0 and updating to 2022.9.7

the sensor myenergi Home Grid import today no longer capture any reading. I can see myenergi Home Home consumption showing energy consumption.

Version of the custom_component

I have this linked to HAC and it's downloaded the latest version which state Version 0.0.20 (same as your manifest.json), yet your const.py file says 0.0.18 -->

Configuration

it's an device integration with no Yaml config

Describe the bug

the sensor myenergi Home Grid import today no longer reports any usage, yet myenergi Home Power import myenergi Home Power grid myenergi Home Home consumption does report usage

Debug log

2022-10-04 08:25:05.966 INFO (MainThread) [custom_components.myenergi] 
-------------------------------------------------------------------
myenergi
Version: 0.0.18
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/cjne/myenergi/issues
-------------------------------------------------------------------

2022-10-04 08:25:05.967 DEBUG (MainThread) [custom_components.myenergi] Refresh histoy local start of day in UTC 2022-10-03 23:00:00+00:00 UTC
2022-10-04 08:25:10.647 DEBUG (MainThread) [custom_components.myenergi] Finished fetching myenergi data in 4.680 seconds (success: True)
2022-10-04 08:25:10.709 ERROR (MainThread) [homeassistant.components.sensor] Platform myenergi does not generate unique IDs. ID 14c644f843ac4705ac8d235918cfe1b8-20171371-energy_green already exists - ignoring sensor.myenergi_home_green_energy_today
2022-10-04 08:26:10.002 DEBUG (MainThread) [custom_components.myenergi] Refresh histoy local start of day in UTC 2022-10-03 23:00:00+00:00 UTC
2022-10-04 08:26:10.397 DEBUG (MainThread) [custom_components.myenergi] Finished fetching myenergi data in 0.396 seconds (success: True)
2022-10-04 08:27:10.002 DEBUG (MainThread) [custom_components.myenergi] Refresh histoy local start of day in UTC 2022-10-03 23:00:00+00:00 UTC
2022-10-04 08:27:10.446 DEBUG (MainThread) [custom_components.myenergi] Finished fetching myenergi data in 0.444 seconds (success: True)
2022-10-04 08:28:10.001 DEBUG (MainThread) [custom_components.myenergi] Refresh histoy local start of day in UTC 2022-10-03 23:00:00+00:00 UTC
2022-10-04 08:28:10.374 DEBUG (MainThread) [custom_components.myenergi] Finished fetching myenergi data in 0.374 seconds (success: True)

I do this this error, but I'm not using green so wasn't to bothered.

Platform myenergi does not generate unique IDs. ID #######-energy_green already exists - ignoring sensor.myenergi_home_green_energy_today

moul4n commented 1 year ago

Have a similar issue. myenergi v0.0.20 HS v2022.12.8 / 9.4 OS

All other info from myenergi is working accept the kwh reporting "myenergi Home Grid import today" which has been reporting no value for a few weeks now. I thought the hub had crashed at first but that is all working and reporting voltage frequency and other stats just fine.

lorrainem77 commented 1 year ago

I've just experienced this issue, but it looks like it's not this integration that's the problem, it's data not being stored at the myenergi servers. My Eddi time was 2 minutes ahead, which the servers don't seem to like, but there's a bug on the eddi, which wouldn't allow me to set cloud time sync. The resolution to that is a eddi system reset and then re-pair with the master (Zappi). I'm now getting data through again. Link to my support query with myenergi - https://myenergi.info/viewtopic.php?p=105166#p105166 Screenshot_20231001_133210_Home Assistant Screenshot_20231001_234141_myenergi Screenshot_20231001_234159_myenergi