Hi
i’ve managed to get my ICO in HA as a custom component (Temp sensor with Redox, PH, and Salt attributes)
It’s almost my first work on python, it must be an “hideous” script but it (almost) works.
2 issues :
- the pool ID is hardcoded in the sensor.py (I planned to fix that)
- I use the refresh token, which as a lifetime of 2 weeks => need to change the refresh token and restart ha every two weeks (I deal with it)
I although wrote a ondilo_query script which retrieves the pool id and the refresh token, based on ondlio user credentials. I did not tried to add this part to the sensor.py but It should although works (then no need to update the refresh token every 2 weeks)
If it helps, here are the files i use : https://1drv.ms/u/s!ArSXMT9e_hEeaFUlZPRGzBNDUTg?e=56oo7P
Alexa just told me the pool is at 24,1°C, it’s swimming time ! :o)