I’ve been tring to get the temperature compensation to work on ESPhome for the Ezo sensors. I’ve tried many different variation based of the BME and other compenstion lambdas but no luck. Does anyone know how to express this in a lambda? I wish they would have given an example on ESPhome…
lambda calls
From [lambdas] you can set the temperature compensation for the sensors that support that option.
* `set_tempcomp_value()`: Send the given temperature to the sensor.
// Within a lambda, set the temperature compensation value from the temperature
sensor id(ph_ezo).set_tempcomp_value(id(rtd_ezo).state);
I wish someone had responded to you on this. I have seen a number of people talking about using EZO sensors in HA and even some videos of someone showing off their system saying all their code was published, but a(t)las I have searched online and so far haven’t found the code. My EC probe drifts as the temp of the water tank changes (using the Atlas EC with ESPHome)… not very accurate as a result.
Oh wow a reply. Lol. Good to hear from someone seeing the same thing. My pH probe also moves with the temperature and right before it failed it was swinging drastically.
The good news is I pulled a request on GitHub and they have been working on it recently. Looks like we will soon have full support with EZO.
There is a way to read EZO temp with node red, convert to ASCII, write to the probe (EC or pH) the temp of the water, and then pull a read with the EZO built in compensation.