I have a Blue Connect plus by Riiot Labs that measures temperature, pH, etc in the pool water. I was not able to find any API integration with home assistant, but I have developed a small email integration. Seems to work fine for me. I have created an automatic rule in my inbox that moves all emails from [email protected], and with the correct title, to a separate email folder called Feeds\Blue_connect. A further improvement would be to find a way to automatically delete old emails from this folder. The email text includes some html code but by using various string functions it is possible to extract the relevant measurements.
This is what I have included in configuration.yaml:
- platform: imap_email_content
server: outlook.office365.com
name: 'email_blueconnect'
port: 993
username: <USERNAME>
password: <PWD>
folder: 'Feeds/Blue_connect'
senders:
- [email protected]
- platform: template
sensors:
pool_temp:
friendly_name: 'Pool temp'
unit_of_measurement: °C
value_template: >-
{{states.sensor.email_blueconnect.attributes.body.split('<td>')[2].split()[0]|float()|round(1)}}
pool_ph:
friendly_name: 'pH'
value_template: >-
{{states.sensor.email_blueconnect.attributes.body.split('<td>')[4].split('<')[0]|float()|round(1)}}
pool_orp:
friendly_name: 'ORP'
unit_of_measurement: mV
value_template: >-
{{states.sensor.email_blueconnect.attributes.body.split('<td>')[6].split()[0]|int}}
pool_salthalt:
friendly_name: 'Salthalt'
unit_of_measurement: 'g/l'
value_template: >-
{{states.sensor.email_blueconnect.attributes.body.split('<td>')[8].split()[0]|float()|round(1)}}