feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

More Ezo Support

Open Morbidbystandard opened this issue 3 years ago • 28 comments

Describe the problem you have/What new integration you would like

Its very nice to have pH and rtd on ESPHome however there are some shortcomings. It would be nice to have calibration command entities that will issue i2c commands OTA to the ESP. Examples like "cal,mid,7", "cal,low,4", and "cal,high,10" for pH. I was able to change a few variables and get the EC probe running but it has the same issues. Lastly the flow sensor needs support and I'm sure people would like ORP as well.

Pretty much what this post stated https://github.com/esphome/feature-requests/issues/766#issue-634874366

Please describe your use case for this integration and alternatives you've tried:

I've tried sending text inputs to the entity via node red with API failures.

Additional context

Tasmota has actually incorporated all sensors with calibration and I'd prefer to stay with ESPHome

Morbidbystandard avatar Mar 28 '21 22:03 Morbidbystandard

I support your request, but (with my limited understanding) practically it seems a lot of commands to be implemented here in ESPHome. I have have succeeded in sending ASCII commands to the EZO devices via Node-Red on Raspberry Pi (without HomeAssistant) connected directly via I2C (I can share the nodes if anyone is interested). Looking at ESPHome a straight-forward solution could be to create a MQTT topic that one could feed calibration commands in to and that would write to the I2C device/address specified? So in my case: Node Red Text (in ASCII) => MQTT topic => ESPHome => I2C Write The output message then could be posted to the ESPHome log.

Any thoughts?

serimi89 avatar Apr 09 '21 07:04 serimi89

Thanks for the reply. You are correct. There are many commands unique to each sensor board. I'm currently tinkering with these to try to find a solution but my knowledge is very limited. You have an excellent clue to the path that needs to be taken. I will see what I can do.

One issue I have is, I'm running linux virtual machine on a windows 10 host. Unfortunately this setup seems to complicate everything.

Morbidbystandard avatar Apr 09 '21 13:04 Morbidbystandard

Something is in the works.

serimi89 avatar Apr 10 '21 19:04 serimi89

This will certainly be a great feature to have. I have my PH and ORP sensors in the swimming pool pump room. The idea of removing the sensors and probes to calibrate them in my office where my PC is located, and then back is not practical. Being able to take the calibration solution to the pump room and click a button on my mobile device to calibrate is far more practical and convenient.

The following Arduino sketches are available from AtlasScientific: I2C ORP: https://www.atlas-scientific.com/_files/code/ino_files/Ardunio-I2C-ORP-sample-code.zip

PH: https://www.atlas-scientific.com/_files/code/ino_files/Ardunio-I2C-pH-sample-code.zip

RTD: https://www.atlas-scientific.com/_files/code/ino_files/Ardunio-I2C-RTD-sample-code.zip

I know very little about coding, so I am hoping that someone might find them useful and integrate the functionality into the ESPHome EZO library.

kgalilio avatar Apr 20 '21 05:04 kgalilio

I have been working with one of the developers on this and currently there is a review process ongoing.

serimi89 avatar Apr 20 '21 20:04 serimi89

Very nice. Thank you.

I wonder if there is a way to type a text input command like in the ardiuno serial monitor that can post to the various EZO sensors on the i2c bus. It would definitely save time because there are sooooo many commands for these little guys.

But when it comes down to it the calibration is the most important thing. It's not that crazy to command the EC stamp for TDS instead of uS or the flow stamp for current instead of total. Once they are set up you're good but calibration is ever changing.

Morbidbystandard avatar Apr 21 '21 05:04 Morbidbystandard

Can add a request to support operating the dosing pump please??

https://atlas-scientific.com/files/EZO_PMP_Datasheet.pdf

maniscalcojohn avatar Aug 01 '21 14:08 maniscalcojohn

I have been working with one of the developers on this and currently there is a review process ongoing.

Any update on the calibration review ? Thanks.

auredor avatar Aug 24 '21 09:08 auredor

I have a pull request for this: https://github.com/esphome/esphome/pull/1865

thomasdelaet avatar Aug 24 '21 13:08 thomasdelaet

I have a pull request for this: esphome/esphome#1865

Thank you. Just seen the PR is blocked because of missing docs, right ? I guess we have to wait sometimes for that to be fixed.

auredor avatar Aug 24 '21 13:08 auredor

any update on this PR ?

ddragas avatar Feb 22 '22 12:02 ddragas

any update on this PR ?

It’s online, right? https://esphome.io/components/sensor/ezo.html

serimi89 avatar Feb 22 '22 12:02 serimi89

hey. i have this working locally but didnt have the chance to adapt PR yet nor to submit PR for documentation

thomasdelaet avatar Feb 22 '22 13:02 thomasdelaet

@thomasdelaet can i help? With the pool season approaching and the ezo sensor boards at home, i was about to DIY something myself but having esphome support for pH and ORP (maybe EC in the future?) it would be perfect for both my pool and aquarium!

gvdhoven avatar Apr 17 '22 07:04 gvdhoven

Hello,

Apparently, we need all the help we can get. It's been a year with no progress. When it comes down to it, I'm a laymen.

I figured a way around this problem by running them in serial as a custom sensor, and sending them commands with the UART switch.

It would be nice if the support page for EZO on esphome actually worked. The temperature compensation is still a failure.

Thanks for your help

On Sun, Apr 17, 2022, 12:02 AM Gilles van den Hoven < @.***> wrote:

@thomasdelaet https://github.com/thomasdelaet can i help? With the pool season approaching and the ezo sensor boards at home, i was about to DIY something myself but having esphome support for pH and ORP (maybe EC in the future?) it would be perfect for both my pool and aquarium!

— Reply to this email directly, view it on GitHub https://github.com/esphome/feature-requests/issues/1179#issuecomment-1100818665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5BERCWRR7UZCXEZQRUGP3VFOZPNANCNFSM4Z6PCZWA . You are receiving this because you authored the thread.Message ID: @.***>

Morbidbystandard avatar Apr 17 '22 07:04 Morbidbystandard

Hi All,

I was hoping there was a way to add the ability to have the ezo sensors work as a switch. This is specifically for the peristaltic pumps that run off the i2c bus. They aren't really sensors, but they are ezo.

I also can't find how to assign an i2c address to a switch. Is there a way to do that?

Thanks!

Assunto avatar Apr 28 '22 18:04 Assunto

@Assunto there is a PR for EZO pumps pending review --> https://github.com/esphome/esphome/pull/3528

For the rest of the followers; i have revived an (old) PR to add not only calibration commands but also that you are able to issue your own commands to the sensor --> https://github.com/esphome/esphome/pull/3561

It is pending review by @ssieb after i have done some more testing.

gvdhoven avatar Jun 15 '22 12:06 gvdhoven

You have no idea how happy this makes me! Thank you so much!

It looks like there are 4 active and progressing pull requests involving EZO sensors and pumps, #3528 #3561 #2133 and #2115 and I was wondering if there is anything a non-coder (me) can do to help push all these to the finish line, or how long you anticipate until they are ready to use?

Again, @gvdhoven thank you so so so much

Assunto avatar Jun 15 '22 15:06 Assunto

grabs popcorn

Thanks guys, this is great news.

On Wed, Jun 15, 2022, 8:26 AM Assunto @.***> wrote:

You have no idea how happy this makes me! Thank you so much!

It looks like there are 4 active and progressing pull requests involving EZO sensors and pumps, #3528 #3561 #2133 and #2115 and I was wondering if there is anything a non-coder (me) can do to help push all these to the finish line, or how long you anticipate until they are ready to use?

Again, @gvdhoven https://github.com/gvdhoven thank you so so so much

— Reply to this email directly, view it on GitHub https://github.com/esphome/feature-requests/issues/1179#issuecomment-1156616073, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5BERC5DAQ2F5C5YMENNGLVPHY4FANCNFSM4Z6PCZWA . You are receiving this because you authored the thread.Message ID: @.***>

Morbidbystandard avatar Jun 16 '22 04:06 Morbidbystandard

It all is in the capable hands of SSieb, who i've contacted via Discord.

gvdhoven avatar Jun 16 '22 06:06 gvdhoven

Work in progress, please continue discussion in the respective PRs comments section.

nagyrobi avatar Jul 01 '22 07:07 nagyrobi

@serimi89 I hoping you are still subscribed. I would love to check out the nodes and sequence you have been using.

Morbidbystandard avatar Jul 01 '22 12:07 Morbidbystandard

Hey @Morbidbystandard, yeah still subscribed. I have moved my setup to a raspberry pi and directly read / write my PH / ORP probe through node red. Last year I was working closely with a developer from the ESPHome community (Senex) on a custom EZO sensor component that would also allow for commands to be send to the devices and not only read. I think he submitted it back then to be released but somehow it was never approved and the much simpler (just read) component is now live.

This is the component we worked on back then: https://github.com/esphome/esphome/pull/1684

I still have the files on my computer and it was working like a charm with a previous version of ESPHome, but since I did an update it won't compile again. Would anyone want to have a look at it?

serimi89 avatar Jul 01 '22 14:07 serimi89

Good to hear from you @serimi89. I ran into the same problem. This is well beyond my skill level. I did open a ticket a while back and they were able to figure it out. I haven't had the time to adapt it to my personal issue but it looks very promising. Check it out.

https://github.com/esphome/issues/issues/2710#issuecomment-1006369558

Morbidbystandard avatar Jul 08 '22 03:07 Morbidbystandard

Hey @Morbidbystandard I am trying to move back to ESPHome / ESP32 for managing my PH / ORP probes and naturally looked at this again. I got it working with changing some lines of code in the eco.cpp file and I can successfully send custom commands to the device via MQTT, however I don't get any feedback back yet. For example: Sending command "L,0" (EZO LED OFF) will turn the LED off, however I don't get the feedback that is being sent back by the EZO Device. I am looking into this, could be just something with my MQTT - I don't have access to device for a couple of days, I will keep you posted.

*edit: everything works as expected, error on my side.

serimi89 avatar Aug 02 '22 20:08 serimi89

Sorry for the double post guys.

As I said above, with some small changes to https://github.com/esphome/esphome/pull/1684 the component ist working flawlessly again. I believe enhancing the existing EZO component with the feature of being able to send custom commands to the EZO module and reading its feedback (exactly what @Morbidbystandard requested when opening this thread and exactly my motivation to modify this component with @SenexCrenshaw), a significant increase in the usability of the component is achieved.

A lot of work has been put into this to make the changes and I am wondering how to push this?

serimi89 avatar Aug 03 '22 08:08 serimi89

Make a new PR, as usual

nagyrobi avatar Aug 03 '22 08:08 nagyrobi

@serimi89 thanks for the update. That's awesome you got it to work. I'm having more issues with ESPhome at this point and I'm considering throwing the whole thing away. I don't have time at the moment for anything other than work so the status quo remains

Morbidbystandard avatar Aug 03 '22 11:08 Morbidbystandard

Resolved by https://github.com/esphome/esphome/pull/3561

ssieb avatar Nov 09 '22 18:11 ssieb