Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installs, identified devices and entities but not polling information, checked again after 24 hours #39

Closed
cralwalker opened this issue Mar 3, 2023 · 20 comments
Assignees
Labels
bug Something isn't working

Comments

@cralwalker
Copy link

cralwalker commented Mar 3, 2023

Current is Unavailable
and the other metrics are Unknown

image

thank you for this initiative!

@ProudElm
Copy link
Owner

ProudElm commented Mar 3, 2023

Weird. No errors in the HA logging? Did you try a restart?

@ProudElm ProudElm self-assigned this Mar 3, 2023
@cralwalker
Copy link
Author

cralwalker commented Mar 3, 2023

Yep, weird. I have restarted, deleted and reinstalled the integration. HA log examples;

2023-03-03 17:04:49.617 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error in updating updater
2023-03-03 17:04:49.621 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor]
2023-03-03 17:04:49.625 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error fetching SolarEdgeOptimizer data:

Stupid question: Is there a common SolarEdge cloud or are Australians perhaps operating a different format?

@ProudElm
Copy link
Owner

ProudElm commented Mar 3, 2023

Not sure, i think there is only one cloud.

Im working one some issues and will add while i'm fixing those add some more logging. There is an error but its not logged.

@ProudElm ProudElm added the bug Something isn't working label Mar 3, 2023
@ProudElm
Copy link
Owner

ProudElm commented Mar 5, 2023

With the latest version it should return some more error logging. Could you check if that is true?

@cralwalker
Copy link
Author

I updated to version 1.2.3, enabled debug logging and restarted Homeassistant.
In the /config/home-assistant.log the following was recorded a minute ago

2023-03-06 07:38:10.782 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform solaredgeoptimizers is taking over 10 seconds.
2023-03-06 07:38:54.824 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: solaredgeoptimizers, sensor.solaredgeoptimizers
2023-03-06 07:39:00.579 ERROR (MainThread) [homeassistant.components.sensor] Setup of platform solaredgeoptimizers is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2023-03-06 07:39:14.241 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error in updating updater
2023-03-06 07:39:14.245 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor]
2023-03-06 07:39:14.249 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error fetching SolarEdgeOptimizer data:
2023-03-06 07:40:24.330 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error in updating updater
2023-03-06 07:40:24.333 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor]

My setup on a Raspberry Pi 4B
Home Assistant 2023.3.1
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230302.0 - latest

@ProudElm
Copy link
Owner

ProudElm commented Mar 6, 2023

Oh damm.. ik hoped the error would be visible with the latest version.

Could you perhaps send me the response of:
https://monitoring.solaredge.com/solaredge-apigw/api/sites/<SITE_ID>/layout/logical

@cralwalker
Copy link
Author

Yep, before I do, perhaps you know the answer; how much of my site info can I share publicly before risking external interference by a bad actor? I had a visitor the other day taking a photo of one of my inverters' ID tag. I do not know this person at all and wonder what the risk is? Can I DM you the response?

@ProudElm
Copy link
Owner

ProudElm commented Mar 7, 2023

Uhm, thats weird.. I thought you can acces the internal accespoint of the inverter if you scan the ID-tag with set settapp from solaredge. At least, with the latest inverters. But you have to manualy switch that red switch. But im not sure...

Yes, you can DM me the response!

@DeFlanko
Copy link

I too have this same issue -- i can help with any troubleshooting if needed.

@ProudElm
Copy link
Owner

I will try to push a release today where there is more logging so hopefully you will see the real error/reason why the integration is failing.

@cralwalker
Copy link
Author

Ping, if there are any other tests I can do to help?

@ProudElm
Copy link
Owner

I was way too busy with work and private matters unfortunately. From this weekend it will be quieter and I will pick up some stuff again! Sorry for the inconvenience and yes if I need your help I will let you know.

@DeFlanko
Copy link

DeFlanko commented Apr 22, 2023

@ProudElm any update?

still no recording of data:
image

@ProudElm
Copy link
Owner

No, i could not find any poblems. I'm on holliday so i could have more time. I Will take an other look.

@DeFlanko
Copy link

DeFlanko commented Apr 23, 2023

adding Debug log -- not sure how helpful it it. Removed the site id.

is this failing in the Sensor.py in lines 176-179 ?

        except Exception as err:
            _LOGGER.error("Error in updating updater")
            _LOGGER.error(err)
            raise UpdateFailed(err)
2023-04-23 12:12:23.218 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration solaredgeoptimizers which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-04-23 12:12:34.596 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Found all information for site: ######
2023-04-23 12:12:34.597 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Site has 1 inverters
2023-04-23 12:12:34.597 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Adding all optimizers (48) found to Home Assistant
2023-04-23 12:12:34.597 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Adding all optimizers from inverter: 1
2023-04-23 12:12:34.597 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.1 to Home Assistant
2023-04-23 12:12:35.601 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.2 to Home Assistant
2023-04-23 12:12:36.501 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.3 to Home Assistant
2023-04-23 12:12:37.395 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.4 to Home Assistant
2023-04-23 12:12:38.511 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.5 to Home Assistant
2023-04-23 12:12:39.528 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.6 to Home Assistant
2023-04-23 12:12:40.341 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.7 to Home Assistant
2023-04-23 12:12:41.372 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.8 to Home Assistant
2023-04-23 12:12:42.188 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.9 to Home Assistant
2023-04-23 12:12:43.125 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.10 to Home Assistant
2023-04-23 12:12:43.571 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform solaredgeoptimizers is taking over 10 seconds.
2023-04-23 12:12:44.053 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.11 to Home Assistant
2023-04-23 12:12:44.911 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.12 to Home Assistant
2023-04-23 12:12:45.748 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.13 to Home Assistant
2023-04-23 12:12:46.938 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.14 to Home Assistant
2023-04-23 12:12:47.816 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.15 to Home Assistant
2023-04-23 12:12:48.773 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.16 to Home Assistant
2023-04-23 12:12:49.901 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.17 to Home Assistant
2023-04-23 12:12:50.963 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.18 to Home Assistant
2023-04-23 12:12:51.850 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.19 to Home Assistant
2023-04-23 12:12:52.738 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.20 to Home Assistant
2023-04-23 12:12:53.614 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.21 to Home Assistant
2023-04-23 12:12:54.596 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.22 to Home Assistant
2023-04-23 12:12:55.738 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.23 to Home Assistant
2023-04-23 12:12:56.589 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.24 to Home Assistant
2023-04-23 12:12:57.556 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.25 to Home Assistant
2023-04-23 12:12:58.600 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.26 to Home Assistant
2023-04-23 12:12:58.600 DEBUG (MainThread) [custom_components.solaredgeoptimizers.sensor] Update vanuit de coordinator
2023-04-23 12:12:59.459 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.27 to Home Assistant
2023-04-23 12:13:00.382 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.28 to Home Assistant
2023-04-23 12:13:01.242 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.29 to Home Assistant
2023-04-23 12:13:02.211 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.30 to Home Assistant
2023-04-23 12:13:03.051 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.31 to Home Assistant
2023-04-23 12:13:04.019 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.32 to Home Assistant
2023-04-23 12:13:04.962 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.33 to Home Assistant
2023-04-23 12:13:05.818 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.34 to Home Assistant
2023-04-23 12:13:06.745 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.35 to Home Assistant
2023-04-23 12:13:08.001 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.36 to Home Assistant
2023-04-23 12:13:08.873 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.37 to Home Assistant
2023-04-23 12:13:09.890 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.38 to Home Assistant
2023-04-23 12:13:10.782 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.39 to Home Assistant
2023-04-23 12:13:11.694 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.40 to Home Assistant
2023-04-23 12:13:12.635 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.41 to Home Assistant
2023-04-23 12:13:13.493 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.42 to Home Assistant
2023-04-23 12:13:14.356 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.43 to Home Assistant
2023-04-23 12:13:15.228 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.44 to Home Assistant
2023-04-23 12:13:16.093 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.45 to Home Assistant
2023-04-23 12:13:17.069 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.46 to Home Assistant
2023-04-23 12:13:18.036 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.47 to Home Assistant
2023-04-23 12:13:19.115 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.0.48 to Home Assistant
2023-04-23 12:13:20.100 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Done adding all optimizers. Now adding sensors, this may take some time!
2023-04-23 12:13:25.037 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: solaredgeoptimizers, sensor.solaredgeoptimizers
2023-04-23 12:13:58.602 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error in updating updater
2023-04-23 12:13:58.603 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] 
2023-04-23 12:13:58.603 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error fetching SolarEdgeOptimizer data: 
2023-04-23 12:13:58.603 DEBUG (MainThread) [custom_components.solaredgeoptimizers.sensor] Finished fetching SolarEdgeOptimizer data in 60.003 seconds (success: False)

@DeFlanko
Copy link

DeFlanko commented Apr 23, 2023

I think I found something. Changing the 60 to 300 on line 148 in the sensor.py allowed me to get results.

try:
           # Note: asyncio.TimeoutError and aiohttp.ClientError are already
           # handled by the data update coordinator.
           # changing form 60 to 300 to increase time out. 
           async with async_timeout.timeout(300):
               _LOGGER.debug("Update vanuit de coordinator")
               data = await self.hass.async_add_executor_job(
                   self.my_api.requestAllData
               )

image

@cralwalker
Copy link
Author

Here is my log from re-installation this morning.

2023-04-24 08:13:08.451 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up
solaredgeoptimizers platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/solaredgeoptimizers/sensor.py", line 97, in async_setup_entry
info = await hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/solaredgeoptimizers/solaredgeoptimizers.py", line 68, in requestSystemData
raise Exception
Exception

@ProudElm
Copy link
Owner

See indeed issue #47. I think this could indeed fix it. I will try to publish something from my holiday address.

I cannot test it, my dev environment is broken.

@cralwalker
Copy link
Author

...and now it works for me. Thank you.

Where do you discuss automations related to the optimizers, eg. sending a message if one panel suddenly drops in production indicating a hardware fault?

@ProudElm
Copy link
Owner

Not sure. i really dont have a place for that. Perhaps make an issue and then we can do it there ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants