Ondilo integration with Home Assistant

Hi Pete, sorry, my fault - I made a screenshot of the wrong directory.
please check if you can add the marked File ondilo.py missing in your screenshot:
grafik
you can copy it here:

as I can see you are running HA in a docker Environment. I did this before, too, but had serveral problems with other Plugins - so I decided to install HA as a virtual (linux) Machine on my synology NAS. It works fine now. Perhapy this could also solve your Problem?!
BR Michael

I did copy the ondilo.py file and also the setup.py file (which I also seemed to be missing) to the ondilo_ico folder but did not have any luck. I still get the same error message (“Abgebrochen”). Also tried to rename the folder from “ondilo_ico” to just “ondilo” in order to be 100% consistent with your step-by-step instructions and didn’t have any luck.

I will try to install HA in a virtual linux machine as you suggested… but I have to find out how that works and what exactly to install on my Synology NAS. If you have a starting point for me I’d very much appreciate it?

to install HA on Synology, follow these steps:

  1. you need a file system type “btrfs”, because the virtual machine manager does not support any other
  2. make sure you have installed enough RAM space - I had to install an extra 8 GB Module because the VM needs 2 GB + extra space for Virtual Machine Manager
  3. Install Virtual Machine Manager from the Synology Packet centre
  4. download and install HA als Linux VM as OVA File (today this version is the last one https://github.com/home-assistant/operating-system/releases/download/4.15/hassos_ova-4.15.ova )
  5. follow the steps here https://home-assistant-blog.de/homeassistant-synology-installieren/
    sorry, only in german - but straight forward - the only special thing is that you have to select UEFI as BIOS type.
    good luck :slight_smile:
    Michael

Thank you very much! I really appreciate it alot! I’ll give it a go sometimes this weekend

@dartdoka sorry the late reply, only now I had time to get to my home automation projects and actually rebuild entirely my HA docker container using the latest HA builds. First of all really appreciate your efforts on allowing ONDILO to integrate with HA really nice :slight_smile: Secondly I have done the import 5* it works really well mainly the part of getting the auth token(compared with the 1st one I tired, really nice improvement here :slight_smile:

What happened to the Last Reading sensor? It was actually quite useful to see when was the last time that a reading was reported to the servers:
image

And spotted a small typo under sensor.py:

“rssi”: [
“RSSI”,
PERCENTAGE,
“mdi:wifi-strength-2”,
DEVICE_CLASS_SIGNAL_STRENGTH**,**],

Not sure if this would be an issue but as my sensor was reporting 0% I just decide to correct it locally!
Thank you once more!

Hi @psadeazevedo,
I’ll check that, but I never added a last reading sensor… There are two things that are not handled in that integration:

  • the recommendations (should add chlorine for instance). Not sure how to report them.
  • the fact that the pool is in hibernate mode. I won’t be able to change that setting but I can know it so I should not report the sensor values. Same thing, I need to take some time to investigate.

Also, please note that this Ondilo integration is now part of Home Assistant 2021.2.0. So it might be better to use that version now.

In regards the Last reading you’re right! I was using topilouff customization instead! Althought ICO is supposed to report values at every hour, that sometimes doesn’t happen (wifi issues, uppon restart) are just two examples. So having a sensor that reports when was the last time we had a report from the device would be a nice feature to add!

in regards 2.0 I wasn’t aware. Thanks for sharing I’m still on 2021.1.5. I’ll give a try as soon I update.

Just to share some feedback from this last hours of usage I notice that sometimes we get all sensors in an Undefined state. Rebooting HA resolves the problem but it’s a bit annoying.

Do you know if this is something you have heard in the past?

@dartdoka, hope you are well!

seems the integration is totally failing from Home Assistant side today. Even the script you have available is not working. I’m getting a 500 error without any further error details. Can you check on your side to see if you can reproduce the problem as well?

Thank you!

same here.
I deleted the Plugin and reinstalled it.
When opening the Onboarding-URL in a Browser, the same Error occurs:
grafik

This is indeed a server side issue.
They’re currently doing some maintenance to the server and will be down for undetermined time. Still the Ondilo app works. Let’s see in the upcoming days.

1 Like

from today it works fine again… thanks!

@kultikom seems we opened the champagne too soon, servers are down again!

i want to use it but it does not authenticate. I used the same email and password that i use on ico website. Do I need to do something else?

ICO support just sent me this Ondilo Customer API reference

Is the integration working for others with the latest HA?

The Ondilo Integration doesn’t work anymore for me since this weekend.
There was a maintenance on the Ondilo systems. Anyone else has the same issue? Seems like the API changed?

Error while setting up ondilo_ico platform for sensor
Traceback (most recent call last):
File “/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/helpers/entity_platform.py”, line 304, in _async_setup_platform
await asyncio.shield(task)
File “/home/homeassistant/.pyenv/versions/3.10.9/lib/python3.10/site-packages/homeassistant/components/ondilo_ico/sensor.py”, line 124, in async_setup_entry
for poolidx, pool in enumerate(coordinator.data):
TypeError: ‘NoneType’ object is not iterable

Error fetching sensor data: Error communicating with API:

Hello, same problem for me for information

Yep, I have the same on HA and also on Homey, so it is most probably Ondilo or an API change

I tested outside of HA and apparently, it fails on getting the pool’s ID’s this function is not returning the different devices I have, without this, we can’t do anything. I do recommend everyone to open a ticket with their support and get their feedback on what happened.

This is from the Ondilo website, there are still a few problems:

19/06/2023 – 8h00 : A la suite de la maintenance des serveurs qui avait lieu la nuit dernière, vous rencontrez peut-être des difficultés de connexion ou voyez des mesures incohérentes. Nous avons conscience de ces instabilités, nos équipes techniques sont à pied d’oeuvre pour y remédier. Nous vous remercions par avance de patienter encore quelques heures et de ne pas solliciter notre service assistance, le temps que tout se mette en place. L’équipe Ondilo.

Dear users, Following last night’s server maintenance, you may be experiencing connection difficulties or seeing inconsistent measurements. We are aware of these instabilities, and our technical teams are working hard on it. We thank you in advance for waiting a few more hours and for not calling our helpdesk, until everything has settled down. The Ondilo team.

1 Like

Works again!

I’m trying to set this up, but I can’t authenticate the API.

I’ve created an account on their webpage https://ondilo.com/, but this is not working for the API authentication, and there’s no signup option on the API page: where did you get your API keys from?