Water (Pool) Temperature Sensor
Moderators: leecollings, remb0
-
- Posts: 85
- Joined: Thursday 12 May 2016 15:47
- Target OS: Linux
- Domoticz version: 11838
- Location: South of France
- Contact:
Re: Water (Pool) Temperature Sensor
You're right ! I'll update the diagram !!
I also forgot the pull up resistor (10k) on the data wire of the flow meter. This one is important as running without created some instability problem with the wemos
Regarding the dummies for pH and ORP, they are of type "custom sensors"
I connected +5V to A3 of ads1115 because I had free inputs and thought I'd could be a good idea to monitor Vcc. But it's not very useful indeed, you can safely skip this one
I also forgot the pull up resistor (10k) on the data wire of the flow meter. This one is important as running without created some instability problem with the wemos
Regarding the dummies for pH and ORP, they are of type "custom sensors"
I connected +5V to A3 of ads1115 because I had free inputs and thought I'd could be a good idea to monitor Vcc. But it's not very useful indeed, you can safely skip this one
-
- Posts: 1
- Joined: Wednesday 21 June 2017 16:17
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Water (Pool) Temperature Sensor
Hi all,
I'm a big noob at programming and i've just started with Domoticz. I've played with a DS18d20 temperature sensor and relay to activate 220v objects. The only think that is interest me is to pilot the pump automatically monitoring water temperature (calculating next day time needed with the today water average temperature).
In the Aleph0 Domoticz picture, the "Mode filtration Piscine" switch and "Temps de filtration" seems to answer to my needs.
@Aleph0: Coulp you PM me to explain to a south French collegue how your srcipts works ?
Thanks
I'm a big noob at programming and i've just started with Domoticz. I've played with a DS18d20 temperature sensor and relay to activate 220v objects. The only think that is interest me is to pilot the pump automatically monitoring water temperature (calculating next day time needed with the today water average temperature).
In the Aleph0 Domoticz picture, the "Mode filtration Piscine" switch and "Temps de filtration" seems to answer to my needs.
@Aleph0: Coulp you PM me to explain to a south French collegue how your srcipts works ?
Thanks
-
- Posts: 85
- Joined: Thursday 12 May 2016 15:47
- Target OS: Linux
- Domoticz version: 11838
- Location: South of France
- Contact:
Re: Water (Pool) Temperature Sensor
Hi ! If you're french and beginer at programming, I suggest you to look at this thread on the french domoticz forum http://easydomoticz.com/forum/viewtopic.php?f=10&t=3935. Over there, we're discussing about a "light" version of this script, managing only the filtration : It's much easier to implement !
-
- Posts: 85
- Joined: Thursday 12 May 2016 15:47
- Target OS: Linux
- Domoticz version: 11838
- Location: South of France
- Contact:
Re: Water (Pool) Temperature Sensor
Regarding this script (the "full" version), I'm still strugling to make it work reliabily. I've had a lot of issues with hardware not handling chlorine or muriatic acid I'm using to regulate pH. I *hope* the most difficult part is now behind me and that I'll be able to publish a working version of the script soon !
The current status is this one :
What works well :
The current status is this one :
What works well :
- - Filtering pump management with water temperature
- Chlorine measurement
- Chlorine dosing, consumption reporting and chlorine low tank management
- pH measurment
- Acid consumption reporting and low tank management
- - Acid dosing, the problem is to find the good material for the piping to resist the concentrated acid
- Flowmeter is not reliable, it failed at end of may, so 2 month of life only
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Water (Pool) Temperature Sensor
Perhaps use can Zwave switches for flow checking, u can measure the power use.
Can you give me some hardware pics of your:
What works well :
- Filtering pump management with water temperature
- Chlorine measurement
- Chlorine dosing, consumption reporting and chlorine low tank management
- pH measurment
- Acid consumption reporting and low tank management
Can you give me some hardware pics of your:
What works well :
- Filtering pump management with water temperature
- Chlorine measurement
- Chlorine dosing, consumption reporting and chlorine low tank management
- pH measurment
- Acid consumption reporting and low tank management
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 85
- Joined: Saturday 14 January 2017 21:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Water (Pool) Temperature Sensor
I am sorry but a simple method to measure only water temperature? (for my aquarium)
Thanks.
Thanks.
Raspberry PI 3, 3x Yeelight bulbs, 1x Yeeligh led strip, 1x Sonoff with ESP826, Controlicz, Kodi
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Water (Pool) Temperature Sensor
wrong
Last edited by Derik on Saturday 08 July 2017 20:06, edited 1 time in total.
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Water (Pool) Temperature Sensor
Use a waterproof Dallas sensor... with a esp..corederoma82 wrote:I am sorry but a simple method to measure only water temperature? (for my aquarium)
Thanks.
Works simple. cost less
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 85
- Joined: Saturday 14 January 2017 21:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Water (Pool) Temperature Sensor
Ok I see, but for installation and configuration?Derik wrote:Use a waterproof Dallas sensor... with a esp..corederoma82 wrote:I am sorry but a simple method to measure only water temperature? (for my aquarium)
Thanks.
Works simple. cost less
Thanks
Raspberry PI 3, 3x Yeelight bulbs, 1x Yeeligh led strip, 1x Sonoff with ESP826, Controlicz, Kodi
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Water (Pool) Temperature Sensor
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 97
- Joined: Friday 05 December 2014 22:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Water (Pool) Temperature Sensor
Hello Aleph0
Just a question :
I don't know what is the +5V on the relay board (linked to GNC via 470uF too)
All relay board I've found have only the GND IN1 IN2 IN3 IN4 VCC but no more VCC connector on the side
Can you explain us what is it and where to find this kind of relay board?
Multinet
Just a question :
I don't know what is the +5V on the relay board (linked to GNC via 470uF too)
All relay board I've found have only the GND IN1 IN2 IN3 IN4 VCC but no more VCC connector on the side
Can you explain us what is it and where to find this kind of relay board?
Multinet
PI 2 - Domoticz 2021.1
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
-
- Posts: 85
- Joined: Thursday 12 May 2016 15:47
- Target OS: Linux
- Domoticz version: 11838
- Location: South of France
- Contact:
Re: Water (Pool) Temperature Sensor
Hi ! I'm using this board : https://www.banggood.com/5V-4-Channel-R ... rehouse=CN but I guess it's a generic board you can find in many places.
If you look closely at the pictures, you'll find a blue jumper on the right of the board, connecting Vcc with "JD-Vcc". Vcc is used to power optocouplers and JD-Vcc to power the relays. In many application, it's just fine to keep the jumper on. But in my application, I need 3.3V for optocouplers to be driven directly by the wemos and 5V for relays. That's why I had to open that jumper to connect 3.3V to Vcc and 5V to JD-Vcc
By the way, I just realize that I have a mistake on my diagram. 5V must be connected on JD-Vcc of the relay board, not 5V. I'll update the diagram accordingly
If you look closely at the pictures, you'll find a blue jumper on the right of the board, connecting Vcc with "JD-Vcc". Vcc is used to power optocouplers and JD-Vcc to power the relays. In many application, it's just fine to keep the jumper on. But in my application, I need 3.3V for optocouplers to be driven directly by the wemos and 5V for relays. That's why I had to open that jumper to connect 3.3V to Vcc and 5V to JD-Vcc
By the way, I just realize that I have a mistake on my diagram. 5V must be connected on JD-Vcc of the relay board, not 5V. I'll update the diagram accordingly
-
- Posts: 97
- Joined: Friday 05 December 2014 22:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Water (Pool) Temperature Sensor
Hello Aleph0
Thanks for your answer
i’m Interrested in having an up to date diagram
Including the correction on relay board and the correction
On the inverted A0 A1 ph/orp probe and the pull-up 10k on data Flow meter
I will make my installation soon I receive all hardware
Multinet
Thanks for your answer
i’m Interrested in having an up to date diagram
Including the correction on relay board and the correction
On the inverted A0 A1 ph/orp probe and the pull-up 10k on data Flow meter
I will make my installation soon I receive all hardware

Multinet
PI 2 - Domoticz 2021.1
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
-
- Posts: 85
- Joined: Thursday 12 May 2016 15:47
- Target OS: Linux
- Domoticz version: 11838
- Location: South of France
- Contact:
Re: Water (Pool) Temperature Sensor
I just finished to publish the updated diagram. Just refresh your browser page with the diagram picture and you'll get the new one
Last edited by aleph0 on Wednesday 09 May 2018 11:02, edited 1 time in total.
-
- Posts: 97
- Joined: Friday 05 December 2014 22:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Water (Pool) Temperature Sensor
Excuse me Aleph0 not sure to understand how to get the updated diagram : on page 1 of this thread the diagram seems to be not updated even if I clear browser cache
Thanks for your answer
Multinet
Thanks for your answer
Multinet
PI 2 - Domoticz 2021.1
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
-
- Posts: 85
- Joined: Thursday 12 May 2016 15:47
- Target OS: Linux
- Domoticz version: 11838
- Location: South of France
- Contact:
Re: Water (Pool) Temperature Sensor
Then, get it from here directly : http://megzou.freeboxos.fr/photos/domoticz/piscine.png
-
- Posts: 90
- Joined: Sunday 20 March 2016 18:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: LA, Ca USA
- Contact:
Re: Water (Pool) Temperature Sensor
Aleph
Wondering how your system is working?
A status update would be great.
I specifically curious about how the orp sensor has performed over time.
I'm thinking about adding an orp sensor to my pool setup. Currently I have an Wemos ESP like you, but it just controls the pump and heater.
For now, I'd just monitor orp, and then I'll consider adding the chlorine pump later.
Thanks
Randy
Wondering how your system is working?
A status update would be great.
I specifically curious about how the orp sensor has performed over time.
I'm thinking about adding an orp sensor to my pool setup. Currently I have an Wemos ESP like you, but it just controls the pump and heater.
For now, I'd just monitor orp, and then I'll consider adding the chlorine pump later.
Thanks
Randy
-
- Posts: 97
- Joined: Friday 05 December 2014 22:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Water (Pool) Temperature Sensor
Thanks Aleph0aleph0 wrote: ↑Wednesday 09 May 2018 11:02 Then, get it from here directly : http://megzou.freeboxos.fr/photos/domoticz/piscine.png
last (but not least) question : the 10k pull up on debitmetre is on the green wire before the HV3 connector of the level shifter ?
Many thanks for all your sharings
Multinet
PI 2 - Domoticz 2021.1
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
-
- Posts: 97
- Joined: Friday 05 December 2014 22:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Water (Pool) Temperature Sensor
Redox and PH probe a successfully plugged to wells :
Maybe I have to change the « custom sensor » to another type of sensor , but not sure
@Aleph0 : my next step is to install the 2 pump but I wonder how you link the pump to the pool system ?
Multinet
Maybe I have to change the « custom sensor » to another type of sensor , but not sure
@Aleph0 : my next step is to install the 2 pump but I wonder how you link the pump to the pool system ?
Multinet
- Attachments
-
- Capture d’écran 2018-05-10 à 16.32.06.jpg (35.48 KiB) Viewed 3465 times
PI 2 - Domoticz 2021.1
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
RFXCOM - RFXtrx433 USB 433.92MHz Transceiver (5 DIO 54755 + 2 DIO 54756 + 3 DIO 54798)
Z-Wave.Me ZME_UZB1 USB Stick (6 FGSD002 + 2 FGRM222 + 1 FGS223 + 1 FGMS001-ZW5 + 1 FGRGBWM441 + 1 FGBS001 + 2 FGFS101)
6 sondes DS18B20
-
- Posts: 85
- Joined: Thursday 12 May 2016 15:47
- Target OS: Linux
- Domoticz version: 11838
- Location: South of France
- Contact:
Re: Water (Pool) Temperature Sensor
@randytsuch :
My system has been operating the filtration since 2016 and chlorine/pH since last year. filtration is now a mature code, handling most of the bugs that can happen quite well.
chlorine/pH is still a work in progress, despite good result achieved last year. Main difficulty is to find proper material for acid dosing pipes. I first used silicon, they were worn out in a week. Then I used latex, they lasted half a season. I'm now using pharmed BPT (https://www.aliexpress.com/item/Perista ... 97655.html), we will see the result over time. Regarding chlorine, silicon hose are OK
and we need to use polyethylene fitting, polypropylene doesn't handle the chlorine. for acid, I don't use fittings at all, but a single tube from the tank to the injection valve through the pump. My first idea of injecting at the input of filtration pump proved to be wrong : occasionally, the peristaltic pump stops in a position where chlorine can flow through the pump. In that case, chlorine is sucked out of the tank by the underpressure of filtration pump. I had to move the injection to the output of the filtration pump and use non return valves (see next post) to prevent pool water to go into the chlorine tank when peristaltic pump stops in a non-closed position. With this setup, it works quite well, the little pumps are giving me ~1,5ml/s when they are working against the filtration pump pressure which is OK for my pool size.
Measurement are fine using ADS1115 + phidget 1130 and generic probes from aliexpress. Some friends on the French forum are experiencing difficulties with salty water and electrolyser, we're still investigating to find out the problem. In my setup, it's OK : measurement are stable over time and reliable. I only need to ignore them during injection as pumps creates slight variation in the +5V which interfere with the measure.
Next problem has been to find a good strategy for dosing. I'm now using the following :
- Filtration is setup to end with the sunset, duration is calculated according to the water temperature
- During the first half of filtration, I adjust pH with acid dosing pump using only proportional feature of a PID controller, and letting 30min after an injection to properly mix acid and water before making another dosing attempt. The 30min has to be adjusted for the pool mixing time
- I noticed it's useless to send chlorine when the sun is high, as UV is destroying it almost immediately. So I start dosing chlorine only 3h before sunset. I'm using Proportional + a bastard Derivative feature of a PID controler : If ORP is going down, D is boosting the dose to inject. if ORP is going up, we don't inject again until stabilisation. And in any case, I keep the 30 min mixing time between two injections
- I have strong hardware and software checking to be sure chlorine and acid pumps can never run at the same time.
With this strategy, I already achieve better result than manual adjustment of water. It still can be improved to get a good regulation. Here are the result I got last year :


My system has been operating the filtration since 2016 and chlorine/pH since last year. filtration is now a mature code, handling most of the bugs that can happen quite well.
chlorine/pH is still a work in progress, despite good result achieved last year. Main difficulty is to find proper material for acid dosing pipes. I first used silicon, they were worn out in a week. Then I used latex, they lasted half a season. I'm now using pharmed BPT (https://www.aliexpress.com/item/Perista ... 97655.html), we will see the result over time. Regarding chlorine, silicon hose are OK

Measurement are fine using ADS1115 + phidget 1130 and generic probes from aliexpress. Some friends on the French forum are experiencing difficulties with salty water and electrolyser, we're still investigating to find out the problem. In my setup, it's OK : measurement are stable over time and reliable. I only need to ignore them during injection as pumps creates slight variation in the +5V which interfere with the measure.
Next problem has been to find a good strategy for dosing. I'm now using the following :
- Filtration is setup to end with the sunset, duration is calculated according to the water temperature
- During the first half of filtration, I adjust pH with acid dosing pump using only proportional feature of a PID controller, and letting 30min after an injection to properly mix acid and water before making another dosing attempt. The 30min has to be adjusted for the pool mixing time
- I noticed it's useless to send chlorine when the sun is high, as UV is destroying it almost immediately. So I start dosing chlorine only 3h before sunset. I'm using Proportional + a bastard Derivative feature of a PID controler : If ORP is going down, D is boosting the dose to inject. if ORP is going up, we don't inject again until stabilisation. And in any case, I keep the 30 min mixing time between two injections
- I have strong hardware and software checking to be sure chlorine and acid pumps can never run at the same time.
With this strategy, I already achieve better result than manual adjustment of water. It still can be improved to get a good regulation. Here are the result I got last year :


Last edited by aleph0 on Friday 11 May 2018 11:16, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 1 guest