home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.73k stars 29.99k forks source link

Ondilo Ico - Unable to retrieve sensor information #105238

Closed StewartM30 closed 6 months ago

StewartM30 commented 9 months ago

The problem

It appears that as of today I'm unable to pull back any of the sensor information from Ondilo. It may be a coincidence but I did upgrade to HA 12.0 yesterday. All entities under the integration just say 'unavailable'

What version of Home Assistant Core has the issue?

core-2023.12.0

What was the last working version of Home Assistant Core?

core-2023.11.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Ondilo ICO

Link to integration documentation on our website

https://www.home-assistant.io/integrations/ondilo_ico/

Diagnostics information

home-assistant_ondilo_ico_2023-12-07T16-34-33.894Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:361
Integration: Sensor (documentation, issues)
First occurred: 13:22:55 (2 occurrences)
Last logged: 16:34:22

Error while setting up ondilo_ico platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/ondilo_ico/sensor.py", line 122, in async_setup_entry
    for poolidx, pool in enumerate(coordinator.data):
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

Logger: homeassistant.components.ondilo_ico.sensor
Source: helpers/update_coordinator.py:313
Integration: Ondilo ICO (documentation, issues)
First occurred: 11:41:08 (3 occurrences)
Last logged: 16:34:22

Error requesting sensor data: HTTPSConnectionPool(host='interop.ondilo.com', port=443): Max retries exceeded with url: /api/customer/v1/pools (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006)')))
Error requesting sensor data: Cannot connect to host interop.ondilo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006)')]

Additional information

No response

home-assistant[bot] commented 9 months ago

Hey there @jeromehxp, mind taking a look at this issue as it has been labeled with an integration (ondilo_ico) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `ondilo_ico` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign ondilo_ico` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


ondilo_ico documentation ondilo_ico source (message by IssueLinks)

swampylee commented 9 months ago

I have the same problem today, not sure if it's on the integration side in HA or on the Ondilo side.

Same errors as already posted but also below in case it helps.

`2023-12-07 11:43:33.172 ERROR (MainThread) [homeassistant.components.ondilo_ico.sensor] Error requesting sensor data: HTTPSConnectionPool(host='interop.ondilo.com', port=443): Max retries exceeded with url: /api/customer/v1/pools (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006)')))

2023-12-07 16:59:48.057 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ondilo_ico 2023-12-07 16:59:48.173 ERROR (MainThread) [homeassistant.components.ondilo_ico.sensor] Error requesting sensor data: Cannot connect to host interop.ondilo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006)')] 2023-12-07 16:59:48.174 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up ondilo_ico platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform await asyncio.shield(task) File "/usr/src/homeassistant/homeassistant/components/ondilo_ico/sensor.py", line 122, in async_setup_entry for poolidx, pool in enumerate(coordinator.data): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable`

swampylee commented 9 months ago

Sorry, another update - it looks like their SSL Cert may have expired:

image

chheiss commented 9 months ago

I guess I found the reason. Indigo has not renewed there web site certificate. It expired today. So no more encrypted connections.

eddysteurs commented 9 months ago

same problem for me

chheiss commented 9 months ago

I have contacted Ondilo directly, they wrote that they are working on getting a new certificate.

swampylee commented 9 months ago

Fixed now - you will have to re-load the integration. Seems the new certificate will expire on Sunday, January 5, 2025 at 11:59:59 PM - so let's hope they don't forget to renew it at the end of next year! :-)

StewartM30 commented 9 months ago

Sweet, just reloaded the integration and its working for me too. Cheers!

storebatfar commented 9 months ago

I deleted the integration and I'm now trying to set it up again. When doing this the setup page is blank. image

storebatfar commented 9 months ago

After restarting the system everything is working :)

issue-triage-workflows[bot] commented 6 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

JeromeHXP commented 6 months ago

@homeassistant close

Largosofthj commented 6 months ago

Not receive updates via integration last 24h. Sensor data works ok in Ondilo ICO app. Any known changes of fix I can do?

chheiss commented 6 months ago

Same here, no sensor updates anymore!

swampylee commented 6 months ago

No sensor updates since Monday but the integration appears fine and their API is returning data, it’s just not being updated and it looks like it’s on their side - the app mentioned something was changing last weekend. I’ve raised a support ticket with them and included the HA debug log info so hopefully they fix it soon. I will update here if/when I get a response.

benmsykes commented 6 months ago

Same here, notification in the app for maintenance at the weekend and ever since it's not been working. Thanks @swampylee for raising a ticket with them!

katakefalos commented 6 months ago

Same here, ios app is working tough, but integration does not get any device or device updates. Remove and re-added integration relinked but still nothing.

davidmarli commented 6 months ago

Same here. I though it was my new home assistant installation fault. So this morning I delete Ondilo integration. When I add it again : no devices are found ... Hope this will be fix soon.

sentience commented 6 months ago

Affected here too. Hoping you get an answer soon, @swampylee!

swampylee commented 6 months ago

Affected here too. Hoping you get an answer soon, @swampylee!

No response yet!

JeromeHXP commented 6 months ago

I had a quick look and it looks like their APIs is not responding to some requests any more. I'll look into this a bit more this week end and see if I can do anything or if this is on their side.

eddysteurs commented 6 months ago

same problem and on top this afternoon also my app show no more information

JeromeHXP commented 6 months ago

This is corrected in a PR. We need to wait for it to be approved and deployed.

Tobias1122334 commented 6 months ago

Same here, no updates anymore in Home Assistant for Ondilo ICO since this week

unbreakmat commented 6 months ago

confirming same issue no data anymore since this week on hassio (unavailable) Core 2024.3.3 Supervisor 2024.03.0 Operating System 12.1 Frontend 20240307.0

sentience commented 6 months ago

In the hopes that hearing from more customers will help them prioritise a fix, I've now contacted them via their Support Form as well.

Pyradad commented 6 months ago

I have just done the same.

JeromeHXP commented 6 months ago

As mentioned above, this is corrected and just needs to be deployed in an upcoming home assistant version. No need to contact Ondilo for that issue. For those who can / know how to do it, you just need to bump "ondilo" python library from version 0.2.0 to 0.4.0 and it should work.

sentience commented 6 months ago

Thanks, Jerome!

Chris-656 commented 6 months ago

May I also note a behaviour. Everything was fine after the first installation with home assistant. Version 12.1, Integration Ondilo ICO After changing the WIFI and update the integration, I end up without entities or devices. The installation was ok without any errors. But there are no entities ? What can I do. grafik

grafik

I also removed the integration restartet home assistant and reinstalled the ico installation, same behaviour regards Chris

JeromeHXP commented 6 months ago

@Chris-656 This is the issue that is corrected in the PR. Ondilo now mandates the API to explicitly request the measures we want to retrieve. Previously, they were all automatically retrieved if nothing was specified.

swampylee commented 6 months ago

@Chris-656 This is the issue that is corrected in the PR. Ondilo now mandates the API to explicitly request the measures we want to retrieve. Previously, they were all automatically retrieved if nothing was specified.

Hi @JeromeHXP - any idea when the PR will be approved? I imagine we are all hoping for this to make the next patch release.

Inrego commented 6 months ago

I just noticed that the library used does support recommendations. Any chance we could get these in the HA integration as well, @JeromeHXP ?

JeromeHXP commented 6 months ago

@Inrego Yep I added that in the library some time ago but had no easy way to integrate that in HA (that I could think of). Now that ToDo list entities are available, I'll look into that when I can find some time, hopefully before this summer.

paazevedo commented 5 months ago

As mentioned above, this is corrected and just needs to be deployed in an upcoming home assistant version. No need to contact Ondilo for that issue. For those who can / know how to do it, you just need to bump "ondilo" python library from version 0.2.0 to 0.4.0 and it should work.

@JeromeHXP Thanks for the fix. Do u mind just give some guidelines on how to bump the library? I can't afford to update my HA right now(where this PR fix will be), so I will need to fix the previous code on my running HA instance.

Loic691 commented 5 months ago

Hi Guys I switched to HA beta and the issue was resolved in april b0 and b1. Since few days (maybe b3 or b4 ? ) the entity shows unavailable again... I'm on the b7 and ondilo still not working. Do you have same beavhiour ?

storebatfar commented 5 months ago

I’m on the same beta and it was also working until yesterday. The sensors are now again unavailable.

Loic691 commented 5 months ago

So Ondilo change anorher thing in API ? Maybe following new app v4... 😡

JeromeHXP commented 5 months ago

There's a 500 error from their backend during OAuth flow right now... It might be linked to that.

stave1989 commented 5 months ago

I also have this problem. Even after updating to core 2024.4.1 This is in my log. 2024-04-06 20:19:51.501 ERROR (MainThread) [homeassistant.components.ondilo_ico.sensor] Error fetching sensor data: Error communicating with API: 2024-04-06 20:19:51.502 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up ondilo_ico platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform await asyncio.shield(awaitable) File "/usr/src/homeassistant/homeassistant/components/ondilo_ico/sensor.py", line 118, in async_setup_entry for poolidx, pool in enumerate(coordinator.data): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable

Inrego commented 5 months ago

Mine is working fine

Pyradad commented 5 months ago

Mine too is fine now!

On Sat, 6 Apr 2024, 20:33 René Simonsen, @.***> wrote:

Mine is working fine

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/105238#issuecomment-2041162042, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHHYV5HOTLZUX7UIO3A3ERLY4A5XLAVCNFSM6AAAAABALLIY76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGE3DEMBUGI . You are receiving this because you commented.Message ID: @.***>

Largosofthj commented 5 months ago

I do not get up any devices after reinstall of integration. Something I am doing wrong?

stave1989 commented 5 months ago

It is the same with me @Largosofthj. When people started to say that their integration was working, i deleted the integration and reinstalled it. And now i do not get any devices.

sentience commented 5 months ago

I had the same issue at first, then a day later I clicked the "Reload" button on the device in Home Assistant, and it came back with the device showing. Thing is, I'm pretty sure I tried that same thing when I first re-installed the integration the day before, and it didn't seem to work.

Largosofthj commented 5 months ago

@stave1989 The new integration of API does not work with several ICOs and several Pools, as I had tree configured. I had to delete all except one in order to get it working. Not sure if it is possible to maybe add a selector for the integration, in order to configure several ICOs?

stave1989 commented 5 months ago

I only have one ICO, but stil i do not get it to work.

davidmarli commented 4 months ago

Hi, all was working fine until yesterday (after having issues in the first days of april) But since yesterday, all is unavaible !!! HA : 2024.5.0

Loic691 commented 4 months ago

Same issue here since yesterday evening and the update to HA 2024.5.0...

storebatfar commented 4 months ago

I'm still on HA 2024.04.4 and I also have the issue with all sensors unavailable.