Code Monkey home page Code Monkey logo

solaredgeoptimizers's People

Contributors

appesteijn avatar christophcaina avatar proudelm avatar slyoldfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

solaredgeoptimizers's Issues

support for multiple inverters?

Hi,

Do you think it would be possible to extract information for the optimizers from multiple inverters in the same account?

Best,

Victor

Integration only finds 16 of 28 optimizers

Hi,

Great integration! Nice to have the solaredge optimizer data in Homeassistant. Strange thing is it only detects the first 16 optimizers of 28 in total.

Any idea why? Please let me know if I can help in any way.

Integration stops updating

After recently updating to the new version which supports multiple inverters I noticed that this version stops updating after some time.
Only resolution seems to remove and re-add the integration, restarting/rebooting HASS doesn't solve the issue.

When re-adding, the integration seems to fail after 1 or 2 days and re-adding solves the issue again for 1-2 days.

The logs show the following:

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:796
Integration: Sensor (documentation, issues)
First occurred: 26 september 2022 om 13:34:13 (87 occurrences)
Last logged: 11:04:13

Updating solaredgeoptimizers sensor took longer than the scheduled update interval 0:15:00

The SE monitoring portal shows recent data, so the source doesn't seem to be the issue.

I've used Domoticz until I discovered this integration to monitor the optimizers and when I switch back to Domoticz the optimizer data is pulled just fine.

I'm currently running HASS version 9.8.6 and have no issues with other integrations.

no issue - just thank you

Thank you for that great integration. Been searching for something like this for a long time. IM 💯 % HAPPY

image

Lifetime energy sensor fluctuates

First of all; thanks a lot for you beautiful integration!

Some panels report a drop in life-time energy production, and will continue on the normal level a few hours later. I use the life-time energy sensor to calculate to daily energy production per panel (and this really messes it up). Which panels show this behaviour is different everyday, also the number of panels is different. Today 6 out of 9 have a problem. Yesterday they were all correct.

Any idea if this can be fixed?

Wrong:
image

Correct:
image

"Invalid authentication"

Hmm. I get "invalid authentication" when I try to add the credentials into the integration flow. I know the credentials are correct.

Will this work with a regular Genesis HD inverter or does it need the Energy Hub version, or the Genesis Enhancement Pack (which adds panel level monitoring)? I don't have the enhancement pack and am just on a standard Genesis inverter (SE8250H).

Another new feature request: AC voltage inverter info (importent)

Would be nice if we could see the AC voltage of the inverter, important..
If the voltage is above 253V, the inverter will switch off. This happens when it's very sunny and the powergrid is overloaded.
If you have this often, you could decide to buy batteries or whatever..
You can see this in the SolarEdge monitoring website dashboard, but we want it on our Homeassistant panel too ;-)

Awesome!

No issue - just a thank-you for putting this together.

Nice work!

Error: Connection aborted.', RemoteDisconnected('Remote end closed connection without response')

I recently get connection errors, indicated in the log as

`This error originated from a custom integration.

Logger: custom_components.solaredgeoptimizers.sensor
Source: custom_components/solaredgeoptimizers/sensor.py:178
Integration: SolarEdge Optimizers Data (documentation, issues)
First occurred: 08:01:23 (2 occurrences)
Last logged: 12:22:44

('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))`

followed by:

`This error originated from a custom integration.

Logger: custom_components.solaredgeoptimizers.sensor
Source: helpers/update_coordinator.py:182
Integration: SolarEdge Optimizers Data (documentation, issues)
First occurred: 08:01:23 (2 occurrences)
Last logged: 12:22:44

Error fetching SolarEdgeOptimizer data: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))`

Sometimes it's working after a few minutes again, sometimes not working until I restart HA.
Any idea?


Home Assistant 2023.3.6
Supervisor 2023.03.3
Operating System 9.5
Frontend 20230309.1 - latest

[Feature request] TOTAL power generation combined from all panels

could we get another sensor built into the integration that would add all of the values from all of the optimizers?

for me personally - my solar provider doesn't want to add me as a site admin so i have no way of getting data about my system into HA without web scraping like what this integration does - which is awesome by the way.

i'd just like to get an additional sensor that adds all power or power and voltages (though i'm not sure that info would be useful)

i made a template as well that should work by adding all of the entities together - i'm not sure if this would help
solarpowertotal:
value_template: "{{ states.sensor | selectattr('object_id', 'search', '^power_1_') | map(attribute='state') | select('is_number') | map('float') | sum }}"

Home assistant core update 2023.3.0

Seen this in the logs:
Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 1 March 2023, 22:50:28 (1 occurrences)
Last logged: 1 March 2023, 22:50:28

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for solaredgeoptimizers using this method at custom_components/solaredgeoptimizers/init.py, line 40: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

Site ID issues

I have API access enabled, however I'm getting invalid login each time. Is there any conflict if I have the official solar edge app installed?

Minor change - Timeout from 60 to 300 for large panel installs

When I installed the integration I would never get values -- after rabbit holing in the code I found that in sensor.py (line 147) changing this

from:

 async with async_timeout.timeout(60):

to:

async with async_timeout.timeout(300):

allowed me to then pull in data:

image

image

I attribute this to the possibility of having "48" panels on the SolarEdge monitoring site. When the reality is that I only have "24", but because Solar City/Telsa never went back into the Solar Edge site to clean up the old panel's the script has to cycle though all "48" panel entities, and It looks like the 60 sec time out occurs before it can complete the full page scrape.

Might help others, figured id open a ticket.

sensors missing after install integration and configuration without errors

Hi, I can't see this integration working. I enabled debug logging just to find out there are no errors so far. The install has been taken place several hours before i pulled out the debug log but i can't find any of the sensors to work with (I replaced my site id with 0000000). What am I doing wrong?

Screenshot 2023-08-30 180917

Zeile    7: 2023-08-30 17:28:51.628 WARNING (SyncWorker_1) [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
	Zeile  337: 2023-08-30 17:29:45.995 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform solaredgeoptimizers is taking over 10 seconds.
	Zeile 3312: 2023-08-30 17:57:40.933 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Found all information for site: 0000000
	Zeile 3313: 2023-08-30 17:57:40.933 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Site has 1 inverters
	Zeile 3314: 2023-08-30 17:57:40.933 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Adding all optimizers (34) found to Home Assistant
	Zeile 3315: 2023-08-30 17:57:40.933 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Adding all optimizers from inverter: 1
	Zeile 3316: 2023-08-30 17:57:40.933 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.1 to Home Assistant
	Zeile 3317: 2023-08-30 17:57:41.432 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.2 to Home Assistant
	Zeile 3318: 2023-08-30 17:57:41.981 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.3 to Home Assistant
	Zeile 3319: 2023-08-30 17:57:42.439 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.4 to Home Assistant
	Zeile 3320: 2023-08-30 17:57:43.128 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.5 to Home Assistant
	Zeile 3321: 2023-08-30 17:57:43.711 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.6 to Home Assistant
	Zeile 3322: 2023-08-30 17:57:44.166 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.7 to Home Assistant
	Zeile 3323: 2023-08-30 17:57:44.844 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.8 to Home Assistant
	Zeile 3324: 2023-08-30 17:57:45.530 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.9 to Home Assistant
	Zeile 3325: 2023-08-30 17:57:46.127 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.10 to Home Assistant
	Zeile 3326: 2023-08-30 17:57:46.623 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.11 to Home Assistant
	Zeile 3327: 2023-08-30 17:57:47.066 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.12 to Home Assistant
	Zeile 3328: 2023-08-30 17:57:47.609 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.13 to Home Assistant
	Zeile 3329: 2023-08-30 17:57:48.222 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.14 to Home Assistant
	Zeile 3338: 2023-08-30 17:57:48.702 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.15 to Home Assistant
	Zeile 3339: 2023-08-30 17:57:49.175 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.16 to Home Assistant
	Zeile 3340: 2023-08-30 17:57:49.822 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.17 to Home Assistant
	Zeile 3341: 2023-08-30 17:57:50.091 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform solaredgeoptimizers is taking over 10 seconds.
	Zeile 3342: 2023-08-30 17:57:50.316 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.18 to Home Assistant
	Zeile 3343: 2023-08-30 17:57:50.761 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.19 to Home Assistant
	Zeile 3344: 2023-08-30 17:57:51.265 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.20 to Home Assistant
	Zeile 3345: 2023-08-30 17:57:51.852 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.21 to Home Assistant
	Zeile 3346: 2023-08-30 17:57:52.327 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.22 to Home Assistant
	Zeile 3355: 2023-08-30 17:57:52.891 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.23 to Home Assistant
	Zeile 3356: 2023-08-30 17:57:53.367 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.24 to Home Assistant
	Zeile 3357: 2023-08-30 17:57:54.017 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.25 to Home Assistant
	Zeile 3358: 2023-08-30 17:57:54.486 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.26 to Home Assistant
	Zeile 3359: 2023-08-30 17:57:55.033 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.27 to Home Assistant
	Zeile 3360: 2023-08-30 17:57:55.656 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.28 to Home Assistant
	Zeile 3361: 2023-08-30 17:57:56.407 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.29 to Home Assistant
	Zeile 3362: 2023-08-30 17:57:56.841 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.30 to Home Assistant
	Zeile 3363: 2023-08-30 17:57:57.358 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.31 to Home Assistant
	Zeile 3365: 2023-08-30 17:57:57.754 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.32 to Home Assistant
	Zeile 3366: 2023-08-30 17:57:58.515 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.33 to Home Assistant
	Zeile 3367: 2023-08-30 17:57:58.891 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.2.34 to Home Assistant
	Zeile 3368: 2023-08-30 17:57:59.334 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Done adding all optimizers. Now adding sensors, this may take some time!

small change request

Hi, just wanted to know, if the "last measurement" could be changed into "timestamp" device class, since it does not only provide a date, but also a time...

image

This would allow the sensor to be displayed similar to this:
image

rather than only showing a time stamp :)

Error fetching SolarEdgeOptimizer data: Expecting value: line 1 column 1 (char 0)

After one week successful operation, the integration is not working anymore - following message is logged:

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.solaredgeoptimizers.sensor
Source: helpers/update_coordinator.py:229
Integration: SolarEdge Optimizers Data (documentation, issues)
First occurred: 16:28:47 (1 occurrences)
Last logged: 16:28:47

Error fetching SolarEdgeOptimizer data: Expecting value: line 1 column 1 (char 0)

any hints or workarounds?

Collecting data takes long time

This might very well be an issue at SolarEdge (pretty likely actually..) but still wanted to report it, in case it's something that can be handled well/less well in this component.

The whole thing might just be due to the rather large (?) number of devices and entities.
On the other hand, for those having multiple inverters there might be way more optimisers, I guess..

Background
Trying to collect data from a 72 panel / 46 optimizer SolarEdge system.

Running HA 2022.11.4 (=latest as of this writing) in Docker on a rather beefy Linux server.
Server performance shouldn't be an issue thus.

Symptoms/problem
After installing the extension I see this in the log.

image

Waiting for 25-30 minutes, then restarted the component.
Got this instead, but the 46 devices did show up now.

image

image

Each device is now sloooowly being. populated with lifetime energy, but that's it.
No other data makes it into these devices/entities.

image

A bunch of errors in the logs though.

image

This one is the only one with a traceback:
image

Looks like most (all?) entities takes a long time updating:
image

All in all - the slow progress means that only a fraction of the entities have been updated during the 15 min sample interval.
Which might also cause problems (depends on how the code is written I guess), if a new extraction run starts even if the previous one hasn't finished yet.

Anyone else seeing this slow extraction of data?

Second system

I have two SolarEdge inverters.
Site-id is not the same.
Is it possible to add a second system?
I want to see the optimizer information from both systems.

Not all panels found

Many thanks for your work ! Really happy with it but....

The number panels found is stuck at 19 where I have 22.
Its running for 3 days now.

Any clue / hint?

THanks in advance.

 Frank

Integration does not shown any devices or entities

When adding the integration there are no entities.

steps i took:
added custom url/integration trough hacs.
added integration to home assistant
integration shows up in the integrations screen.
But no entities or devices are made under the integration.
also not after a couple of hours, nothing is shown.
There is nothing is the logs.

Just a question

Hi,

I was wondering can this be merged or used in combination with the solaredge integration?

Regards,

Bart Janssens

Error in log - this will fail in version 2023.3

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:77
First occurred: 15:46:23 (1 occurrences)
Last logged: 15:46:23

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for solaredgeoptimizers using this method at custom_components/solaredgeoptimizers/init.py, line 40: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

Sensor names

Hi,

Is is possible that all sensor names are a bit more specific.

For example: sensor.current, sensor.current_2, etc.

Is it possible to get something like this: sensor.optimizer1_1_1_current, sensor.optimizer1_1_2_current, etc.

If i have for example allready a sensor.current and i load this plugin i got for my first panel sensor.voltage, sensor.power and for current: sensor.current_1

App is not starting

When starting the abb I get the following error "The configuration flow could not be loaded: 500 Internal Server Error Server got itself in trouble". Has been since the update 2024.2.2. Even a reinstallation didn't fix the error.

Error fetching SolarEdgeOptimizer data: 'AEST'

I am getting this error after updating to version 1.2.0. Version 1.1.4 works fine.

This error originated from a custom integration.

Logger: custom_components.solaredgeoptimizers.sensor
Source: helpers/update_coordinator.py:215
Integration: SolarEdge Optimizers Data (documentation, issues)
First occurred: 9:04:29 AM (1 occurrences)
Last logged: 9:04:29 AM

Error fetching SolarEdgeOptimizer data: 'AEST'

intermetitent errors getting values from optimizers

It looks like there are intermintent errors getting values from optimizers, and values come back as 0.

I can see in the logs the following errors.
It it seems the retrieval fails sometimes and others times are OK (intermittently).
Full logs attached.

Home Assistant Core
Error fetching SolarEdgeOptimizer data: Expecting value: line 1 column 1 (char 0)
5:37:06 PM – (ERROR) SolarEdge Optimizers Data (custom integration) - message first occurred at 5:05:32 PM and shows up 2 times
Expecting value: line 1 column 1 (char 0)
5:37:06 PM – (ERROR) SolarEdge Optimizers Data (custom integration) - message first occurred at 5:05:32 PM and shows up 2 times
Error in updating updater
5:37:06 PM – (ERROR) SolarEdge Optimizers Data (custom integration) - message first occurred at 5:05:32 PM and shows up 2 times
home-assistant_2023-09-29T08-04-44.929Z.log

Issues with SolarEdge Optimizer Integration - Seeking Community Input

Hello GitHub Community,

I’m reaching out to inquire if anyone else is experiencing issues with the SolarEdge Optimizer Integration. For some context, I utilize this integration to calculate my PV yield. However, over the past few days, I’ve been encountering some odd readings specifically related to the consumption sensors for the total yield.

The values seem to be inconsistent and not reflective of the actual output. Before I delve deeper into troubleshooting this on my own, I wanted to check if this is a common issue that others are facing or if it’s isolated to my setup.

Any insights, suggestions, or shared experiences would be greatly appreciated. If you’ve faced similar issues and found a workaround or a solution, I’d be eager to hear about it.

Thanks in advance for your help and looking forward to any responses!
IMG_5316
IMG_5315

Update frequenze

Hi and thanks for a greate intergration!

You do say

This intergration will update its sensors every 15 minutes. More frequent is not usefull because the portal will only update every 15 minutes.

My portal seems to be updated something like every 5:th minute and update const.py as below seems to increase "performance"
UPDATE_DELAY = timedelta(minutes=5)

I guess that lower than 5 isn't advisable ;-)
SolarEdge seems to have

Daily Limitation
Use of the monitoring server API is subject to a query limit of 300 requests for a specific account token and a parallel query limit
of 300 requests for each specific site ID from the same source IP.

Error with life time energy sensor.

    Hi, 

I just installed the latest version and found the following error in my HA log

2022-10-18 12:48:35.864 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.lifetime_energy_1_1_15 fails
Traceback (most recent call last):
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    raise JSONDecodeError("Expecting value", s, err.value) from None
  File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
    lifetimeenergy = json.loads(self._client.getLifeTimeEnergy())
  File "/config/custom_components/solaredgeoptimizers/sensor.py", line 168, in update
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    raise exc
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 710, in async_device_update
    await self.async_device_update()

all other entities update properly, only the lifetime energy entity stays unknown:
image

Originally posted by @willem-ebbers in #2 (comment)

Updating values

Updating of values ​​only by reloading the integration.
Then only values ​​to 0.
What can I do?
Thank you

New feature request

Would be nice if the solar panel data could be offered as: current Watt production and with attributes with panel data, like this:
image

error fetching data and error in updating updater

Today, I had major issues with a stable connection to the get the Optimizer information from Solar Edge.
I don't know if this is a temporary issue or related with the SolarEdge Monitoring service at all, but I think, the Logs should provide at least some kind of more relevant information ;)

Logger: custom_components.solaredgeoptimizers.sensor
Source: custom_components/solaredgeoptimizers/sensor.py:177
Integration: solaredgeoptimizers (documentation, issues)
First occurred: 18:52:33 (1 occurrences)
Last logged: 18:52:33

Error in updating updater
Logger: custom_components.solaredgeoptimizers.sensor
Source: custom_components/solaredgeoptimizers/sensor.py:178
Integration: solaredgeoptimizers (documentation, issues)
First occurred: 18:52:33 (1 occurrences)
Last logged: 18:52:33
Logger: custom_components.solaredgeoptimizers.sensor
Source: helpers/update_coordinator.py:182
Integration: solaredgeoptimizers (documentation, issues)
First occurred: 18:52:33 (1 occurrences)
Last logged: 18:52:33

Error fetching SolarEdgeOptimizer data:

The last days, the integration seemed to work pretty stable - today it started reporting repeatingly "zero" values... and I had to reinitiate the integration to get some data... just to see the integration failing again after some time.

grafik

Cannot install integration

Dear @ProudElm

I was really happy to find yout integration on HA.
I was about to use it. I downloaded the repository using HACS (not added the custom repo becouse HACS said it is in the main). Got to the devices and add intergration but no luck just waiting since minutes.
Do you have any clue?

image

Thanks! csomy

why password and not API key?

Why does this integration need the username and password and not use the API key? Presumably because the optimiser data is not available via the API and you're actually doing something along the lines of scraping the website using the logon details?

solaredgeoptimizers.py missing

On January 10th, 2023 in commit 7ea6b24 of v1.1.9 you removed custom_components/solaredgeoptimizers/solaredgeoptimizers.py

How this module can work without it puzzels me as it is now at v1.2.4 and solaredgeoptimizers.py is still imported in various places.

entities not shown

I need some help
I wanted to try to load your integration to see the production of the panels but it doesn't create the entities for me

immagine

also i get this error

immagine

I tried to reload the integration but nothing.
I also installed the "home-assistant-solaredge-modbus" integration and it's been working fine for quite some time.
immagine

I don't want this integration to be the problem?
Thanks

Cannot Create Sensors

I think I confused things yesterday by posting in a different issue - my apologies

My issue is that although I can successfully install the integration and set it up using my SolarEdge credentials (site ID, user name and password), I have no sensors being created. I am getting the following Home Assistant error log entry:

    Logger: homeassistant.components.sensor
    Source: custom_components/solaredgeoptimizers/sensor.py:97
    Integration: Sensor (documentation, issues)
    First occurred: 10:40:41 (1 occurrences)
    Last logged: 10:40:41
    
    Error while setting up solaredgeoptimizers platform for sensor
    Traceback (most recent call last):
      File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, 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 70, in requestSystemData
        raise Exception
    Exception

My HomeAssistant versions are as follows:
Home Assistant 2023.2.5
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230202.0 - latest

I am in the UK

When I am logged in to the SolarEdge portal via Chrome browser (on the same network as my HA instance), if I try the following URL (https://monitoring.solaredge.com/solaredge-apigw/api/sites/<SITE_ID>/layout/logical) with my site ID I receive what I assume the JSON string with what I assume is the correct information (it makes sense with respect to my site).

If I try (https://monitoringpublic.solaredge.com/solaredge-web/p/publicSystemData?reporterId=PANEL_ID>&type=panel&activeTab=0&fieldId=<SITE_ID>&isPublic=true&locale=en) with my site ID and one of the panel IDs I receive a separate formatted string containing lots of information which appears to be correct (i.e. panel number, manufacturer, voltage, last reading date/time etc)

If useful, I can forward the strings that are returned

Thanks again for the work on this integration

David

Total energy for panel

Would it be possible to enter the total amount of energy produced on each individual panel? Thank's for your job

counters stuck on value at sunset

home-assistant.log
Hi, at sunset, all values of all individual panels remain stuck at a value (eg 1.04 w) and a new update will not be released until the next day
so it is difficult to recognize if there is nothing more generated by the respective panel
does something go wrong in my HA environment and should it just end on 0w /unknow because there will be no more update
or is this a feature by design?
ha-optimizer1
ha-optimizer2

Error while setting up solaredgeoptimizers: KeyError: 'Current [A]'

2022-09-11 21:55:28.609 INFO (MainThread) [custom_components.solaredgeoptimizers.sensor] Added optimizer for panel_id: 1.1.1 to Home Assistant
2022-09-11 21:55:28.611 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.solaredgeoptimizers entity: sensor.current_1_1_1
2022-09-11 21:55:28.612 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.solaredgeoptimizers entity: sensor.optimizer_voltage_1_1_1
2022-09-11 21:55:28.613 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.solaredgeoptimizers entity: sensor.power_1_1_1
2022-09-11 21:55:28.613 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.solaredgeoptimizers entity: sensor.voltage_1_1_1
2022-09-11 21:55:29.326 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up solaredgeoptimizers platform for sensor
Traceback (most recent call last):
  File "/Users/slyoldfox/homeassistant/lib/python3.10/site-packages/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
    await asyncio.shield(task)
  File "/Users/slyoldfox/.homeassistant/custom_components/solaredgeoptimizers/sensor.py", line 75, in async_setup_entry
    info = await hass.async_add_executor_job(
  File "/usr/local/Cellar/[email protected]/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/slyoldfox/.homeassistant/custom_components/solaredgeoptimizers/solaredgeoptimizers.py", line 54, in requestSystemData
    return SolarEdgeOptimizerData(itemId, decodeResult(r.text))
  File "/Users/slyoldfox/.homeassistant/custom_components/solaredgeoptimizers/solaredgeoptimizers.py", line 204, in __init__
    self.current = json_object["measurements"]["Current [A]"]
KeyError: 'Current [A]'

I have 8 panels. I expected I had 8 optimizers, but it seems the logical layout is showing 16. 8 of them have a lastMeasurementDate- the other don't.

I made some modifications on the code base and might push a PR in the coming days.

Large gaps of Data not being pulled

Once I initialized the integration with the new 300 second time out it was polling just fine then it just stopped for a large amount of time then briefly again and now not polling at all...

Here is a screenshot of one of the panels power entity: sensor.power1_1_25
image

The logs:

2023-04-23 16:45:06.553 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform solaredgeoptimizers is taking over 10 seconds.
2023-04-23 16:45:49.208 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: solaredgeoptimizers, sensor.solaredgeoptimizers
2023-04-23 17:37:42.000 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error in updating updater
2023-04-23 17:37:42.000 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Expecting value: line 1 column 1 (char 0)
2023-04-23 17:37:42.001 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error fetching SolarEdgeOptimizer data: Expecting value: line 1 column 1 (char 0)
2023-04-23 19:37:10.386 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error in updating updater
2023-04-23 19:37:10.388 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor]
2023-04-23 19:37:10.389 ERROR (MainThread) [custom_components.solaredgeoptimizers.sensor] Error fetching SolarEdgeOptimizer data:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.