Hello,
I’m looking for an easy to build, not too expensive solution to monitor my swiming pool water quality.
I have read many things on internet and it seems that OPR + Ph are a must have. Temperature would be a plus.
From what I have seen on internet, this project seems to check all the boxes:
@mzakharo: your project is very nice and seem easy to implement. If I understand correctly, your code calculate automaticaly the Chlorine ppm level from ORP and Ph readings, right ?
So from there I will be easy to create a simple automation to control my filtration/electrolyseur.
It is also possible to buy some ready to use products like this one that seem compatible with tuya local integration.
This one is even cheaper than @mzakharo, but I guess the probes quality is different.
Any other interesting project ?
Does anyone has a feedback on durability and fiability of atlas proves vs yieryi solutions ?
No new info about the DIY projects…
So I ended up buying this cheap chinese product on aliexpress. "pH-W18 Yieryi-Tuya Smart WiFi, PH ORP, TDS, EC SALT S "
It work perfectly under home assistant with Tuya Local integration (be careful there is also a different integration called “local tuya”).
Now we’ll see how long the probe work and how frequently it need a calibration.
As I use it for a swiming pool I will also need to adapt the 4 probes to my filtration system. For that I will use that kind of adapter and a 3D printed cable gland to adapt a 19mm cable (the probe) to the 3/4 inch thread.
I plan to print it in ASA and polish it with acetone vapor using a rice cooker (easy and cheap method).
EDIT: this is a 3/4 inch thread not 1 1/4 (corrected above)
I’m equiped with a combined electrolyser + ph regulator but without ORP measurement. so I have to set manually the power of the electrolyser and measure chlorine level by my own.
it’s quite difficult to find the good setpoint so I want to install a ORP measurement system and ask to HA to regulate the electrolyser.
I also found the Yieryi devices but I would prefer to buy the PH-W2839EU
with is much more easier to install with these probes.
As it’s also a Tuya connected device, I assume it will be possible to connect it to HA.
Are you satisfied by your model ? Would you recommande this “cheap” device ?
Are the measurements reliable?
I did not have time to install the probes yet, but I’ll give you a real feedback soon when it will be done.
For the moment I tested the connectivity with “tuya local” integration (not “local tuya” be careful there are 2 integrations with similar name’.
It was imediately recognized with tons of sensors in HA:
(the system is currently disconected that’s why it is unavailable)
I m progressing on this project. I implanted an external 2.4Ghz antenna to expand wifi connexion.
It work fine. See the pictures, it s easy to reproduce.
As mentionned before, I was looking for buying a Yieryi measurement device but easily adaptable to my installation so I bought the W2839. I’m only focused on the ORP detection.
I’m a newbie with Tuya. I installed the Tuya local app and after many researchs, I was able to set all the needed informations trough the creation of a Tuya developer account.
But I received only the water temperature until I discovered the possibility of changing the instruction mode :
I plan to finish today the installation of my probes. After that, I’ll be able to test the device.
If I understand your device is disconecting after 5~10 minutes, then connecting again, and disconnecting… in your history your connexion periods look like this: - - - - - - - - -
Correct ? can you check your history and if available, your wifi AP logs ?
If that’s the case and if the device always reconnect, there is a setting to tell HA to keep the last value when a sensor become unavailable.
I will check the logs from the wifi AP from the pool house this evening but i’m quite convince that it’s not a problem of wifi connection. If I remember well when i saw this issue at the first time, the device was still available trough the tuya app from my phone.
it’s well a disconnection from the wifi network.
my router (proximus in Belgium) does not allow me to have access to some logs but i’m sure it’s a network issue as I was not able to ping the tuya device during a few minutes and it was working just after.
now I have to understant why it’s disconnection without any reason. I don’t believe it’s coming from the router as it’s the only one device with this issue.
I will ask you a stupid question: are you close enough from your wifi AP ?
As you can see in my pictures, the wifi antenna is very small and I guess the range is reduced.
I also had some very short but repeated wifi deconnections. My device was very far away from the wifi AP. I installed an external antenna and now everything is ok.
Now it seem to be fine, I can see a continuous line in my sensors data.
What you can do as a workaround, is to create a sensor in HA for each value you use. This sensor will be updated when your real sensor evolve, except when the value is unknown or unavailable. For this a trigger template like this is the easiest way.
Here is an example from my config. I use 2 temperature sensors but each one is disconnected for different reason. I created a new sensor that use the medium value using the last know good value of each.
Following yaml is under "template: "
- trigger:
- platform: state
entity_id: sensor.thermometre_piscine_temperature
not_to:
- unknown
- unavailable
- platform: state
entity_id: sensor.analyseur_d_eau_temperature
not_to:
- unknown
- unavailable
sensor:
- name: Température piscine
device_class: temperature
unit_of_measurement: "°C"
state: >
{% set num = 0 %}
{% set temp = 0 %}
{% if not (is_state('sensor.thermometre_piscine_temperature', 'unknown') or (is_state('sensor.thermometre_piscine_temperature', 'unavailable'))) %}
{% set num = num + 1 %}
{% set temp = temp + (states('sensor.thermometre_piscine_temperature')|float(0)) %}
{% endif %}
{% if not (is_state('sensor.analyseur_d_eau_temperature', 'unknown') or (is_state('sensor.analyseur_d_eau_temperature', 'unavailable'))) %}
{% set num = num + 1 %}
{% set temp = temp + (states('sensor.analyseur_d_eau_temperature')|float(0)) %}
{% endif %}
{% if num >0 %}
{{ (temp/(num|float(1)))|round(1)}}
{% endif %}
I hope there’s no typo. The idea is that everytime the sensor value is modified, you custom sensor get that value, except for unknow or unavailable.
I hope this will solve your problem. You can also solder an external antenna like I posted earlier
The only way for me to block the tuya device to be connected to internet is to add a parental control on my router blocking h24 the device.
Seems to be web disconnected as the device appears offline in the tuya app.
In addtition, I don’t have any automation linked to the water analyser.
So i tried to apply the recomandation from the github but I still have wifi disconnection.
I will try to instal local tuya instead of tuya local. After that, I’m giving up.