hultenvp / solis-sensor

HomeAssistant integration for the SolisCloud PV Monitoring portal via SolisCloud API
Apache License 2.0
190 stars 41 forks source link

no inverters found (since around 9:30am CET #350

Closed eddysteurs closed 4 months ago

eddysteurs commented 4 months ago

Describe the bug in soliscloud and solis app updates are still ok (every 5 min) but since a few hours the integration is not receiving the inverters via the api (reload integration and restart HA does not solve the problem)

image Config

Versions HA Version an deployment : 2024.1.6 HACS version: latest Integration version : latest

Debug logs Add to configuration.yaml:

logger:
  default: warning
  logs:
    custom_components.solis: debug

And attach the resulting log to the issue. If yo do not know where to find logs you missed an important step in the install of HACS. ;-)

Screenshots If applicable, add screenshots to help explain your problem.

snigehere commented 4 months ago

Same issue for me Version core-2024.1.6 Python Version 3.11.6 Host Operating System Home Assistant OS 11.5 Supervisor Version supervisor-2024.01.1

2024-02-06 10:08:54.298 WARNING (MainThread) [custom_components.solis.soliscloud_api] No inverters found 2024-02-06 10:08:54.298 WARNING (MainThread) [custom_components.solis.service] Failed to discover, scheduling retry in 120 seconds. 2024-02-06 10:10:54.507 WARNING (MainThread) [custom_components.solis.soliscloud_api] No inverters found 2024-02-06 10:10:54.507 WARNING (MainThread) [custom_components.solis.service] Failed to discover, scheduling retry in 180 seconds. 2024-02-06 10:14:06.953 WARNING (MainThread) [custom_components.solis.service] Failed to discover, scheduling retry in 240 seconds. 2024-02-06 10:18:16.956 WARNING (MainThread) [custom_components.solis.soliscloud_api] No inverters found 2024-02-06 10:18:16.957 WARNING (MainThread) [custom_components.solis.service] Failed to discover, scheduling retry in 300 seconds.

I restated home assistant just before it went down and was concerned it was my error but looks like it may be a general issue

RutgerBeyen commented 4 months ago

Same here. See also https://github.com/hultenvp/solis-sensor/issues/348

viking2010 commented 4 months ago

Again, same issue for me too. It started around 11pm GMT last night for me. I am going to have a go with the python script and see if there are any issues running that independently of the integration. It might be that a ticket needs raising to Solis to reset the device(s) they use that serve the API. I recall a while back that there were error messages on the API like "Bad Gateway". Won't be able to look at running the python script until lunchtime here.

snigehere commented 4 months ago

I have opened a question ticket with Solis service centre to see if its a generalised issue

Last night I upgraded OS and supervisor to the latest releases

dpgh947 commented 4 months ago

same here, I got this with debug on (replaced anything that looked sensitive with xxxxxx)

2024-02-06 10:15:11.741 DEBUG (MainThread) [custom_components.solis.soliscloud_api] Error from URI (/v1/api/inverterList) : ContentTypeError(RequestInfo(url=URL('https://www.soliscloud.com:13333/v1/api/inverterList'), method='POST', headers=<CIMultiDictProxy('Host': 'www.soliscloud.com:13333', 'User-Agent': 'HomeAssistant/2024.1.6 aiohttp/3.9.3 Python/3.11', 'Content-MD5': 'xxxxxxxxx', 'Content-Type': 'application/json', 'Date': 'Tue, 06 Feb 2024 10:15:11 GMT', 'Authorization': 'API xxxxxxxxxx', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate, br', 'Cookie': 'aliyungf_tc=xxxxxxx', 'Content-Length': '35')>, real_url=URL('https://www.soliscloud.com:13333/v1/api/inverterList')), (), message='Attempt to decode JSON with unexpected mimetype: text/html', headers=<CIMultiDictProxy('Date': 'Tue, 06 Feb 2024 10:15:11 GMT', 'Content-Type': 'text/html', 'Content-Length': '166', 'Connection': 'keep-alive', 'Via': 'HTTP/1.1 SLB.24')>)
2024-02-06 10:15:11.742 WARNING (MainThread) [custom_components.solis.soliscloud_api] No inverters found
2024-02-06 10:15:11.742 WARNING (MainThread) [custom_components.solis.service] Failed to discover, scheduling retry in 180 seconds.
snigehere commented 4 months ago

All working again for me

dpgh947 commented 4 months ago

@snigehere working again here too for the past 10 mins or so... maybe your ticket did the job!

EDIT - scratch that, just failed again. They are obviously trying to fix something...

RutgerBeyen commented 4 months ago

Still broken for me though. Ticket with Solis open as well...

viking2010 commented 4 months ago

All seems to be working again for me. How is it for others?

eddysteurs commented 4 months ago

seems ok since a few hours, will close the case