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:
I am very happy with the Blue Connect Plus. It was quite easy to install. And it works perfect! I can truely recommend this product. I have made an integration with the salt chlorinator with help of Home Assistant, i.e., when ORP level gets low, the salt chlorinator starts automatically.
I have changed from email scraping to IFTTT. The drawback with email scraping was that every time I restart Home Assistant, it starts reading the old emails and it takes a while until status has been updated to the latest email. IFTTT integration works fine, but there is up to 1,5 hours delay from the Blue Connect measurement until it reaches IFTTT and Home Assistant. I suppose this is a problem on the Blue Connect side. It seems to go much faster from IFTTT to Home Assistant.
That’s exactly my plan with the chlorinator as well. I’ll use a Sonoff R2 to control the chlorination process based on readings from the Blue Connect. It’s a shame that the readings aren’t coming to IFTTT for quite a while but I suppose the chlorine level doesn’t change that quickly on a moderately-sized swimming pool. How often does the data update? Hourly maybe?
For anyone else with a Blue Connect, I did just get one as well, and I’m using IFTTT to POST JSON to a webhook which I then catch with an Automation in Home Assistant, and update an “Input Number” which in turn is the basis of my sensors. So my config looks like this…
First the input_numbers…
pool_temperature:
name: Pool Temperature
min: 0
max: 100
step: 0.1
unit_of_measurement: '°C'
pool_ph:
name: Pool pH
min: 1
max: 15
step: 0.1
pool_orp:
name: Pool ORP
min: 0
max: 2000
step: 1
unit_of_measurement: 'mV'
pool_salinity:
name: Pool Salinity
min: 0
max: 10
step: .001
unit_of_measurement: 'ppt'
pool_conductivity:
name: Pool Conductivity
min: 0
max: 10000
step: 1
I’ve been trying to use the automation to record what the delay is, but I don’t have the code quite right yet and haven’t had the time to fix it. This is what I’ve been experimenting with, bit didn’t work…
Yes, I have more like 10-15 measurements per day. However, I have my pool on a timer 9 am - 9 pm, also registered in Blue Connect so I thought this was the reason. Is it also your experience that the delay is from Blue Connect to IFTTT, but not from IFTTT to HA?
I have not spent more time looking into the delays. It works really well, but gives more like 10 readings per day and with delays up to an hour. For me that is not a big concern.
So just to update on the delay between a reading being taken and how soon it is showing in HA.
I have now changed how I handle the incoming data from IFTTT to use Node-Red instead of a HA automation, and as part of my flow I am recording the difference between the current time and the timestamp on the reading…
The quickest update took just 84s while the slowest was 1712s - almost half an hour!
I don’t know of a way to tell where any delays would come from as the data flow is this…
Reading taken
Is there any sigfox delay (I don’t know anything about how this network works)
BlueConnect “cloud”
IFTTT
Nabu Casa (I think this just passes packets, so probably not this)
HA (via Node Red)
All up, even at the slowest update delay, I don’t think 28 mins is that bad - the value with the greatest variance in a pool - the ORP doesn’t change that rapidly, so for me this delay is not an issue really. Still pretty happy with the BlueConnect and the data it gives me!
Hey guys - this worked like a charm! However - been trying to get the property “AnalysedAt” of the IFTTT integration for BlueConnect - to read when the measurement was done - anyone had success with this one? I’ve been trying both input_number and input_text…
This is my first message, a greeting of thanks to all this wonderful community.
I just started with this HA, although I’ve been reading for a while now I’m taking advantage of the confinement to start
I think that these steps you indicate are very complex, do you know if there is a plugin or a simpler method?
Hello
I have managed to connect the Blue Connect with IFTTT and it already sends the data well.
What I am not able to achieve is for IFTTT to send the data to HA or HA to capture that data.
Could you pass me the configuration that I have to put in cofiguration.yaml and if I have to do something else in HA?
I copied all the ones you have here in the thread but for some reason it does not detect my IFTTT.
Thank you so much for everything
I procured a Blue Connect yesterday. Happily taking sigfox and BT readings.
configuration.yaml and automations.yaml appear to be good.
IFTTT seems to load ok with the key.
I’m struggling with my skills and the IFTTT documentation:
My IFTTT looks nothing like the documentation screen shots.
Nor does my lovelace UI for Development > Services. Mine asks for the service name (ifttt.trigger) and Service Data (YAML, optional). Not the JSON in the documentation and @danps description above.
When I set up the webhooks service there is no UI that asks to complete a trigger field as shown in the documentation.
I’m not sure if there is a fundamental problem with my understanding of the solution (likely) or if the documentation hasn’t been updated for a fair while.
When you setup the IFTTT on HA, you get a webhook_id, something like http://your_ha_ip_address:8123/api/webhook/your_webhook_id
You need to add BlueConnect on IFTTT.
You create a webhook on IFTTT if a new measurement with these settings:
URL: http://your_ha_ip_address:8123/api/webhook/your_webhook_id
method: POST
content type : application/json
action: { "action": "my_action_name", "property":"{{property_value}}"}