Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ec probe not working #6

Open
docsparks opened this issue Apr 2, 2020 · 2 comments
Open

ec probe not working #6

docsparks opened this issue Apr 2, 2020 · 2 comments

Comments

@docsparks
Copy link

using an ezo usb board for ph, and another ezo usb board for ec, my rpi3 running hassio shows both sensors in hardware but only “unknown” for ezo_conductivity. not sure how to troubleshoot this but the usb ezo and ec probe work fine with windows.

@segalion
Copy link
Owner

I havent EC board, so I cant figure how this card is identified. Sensor module try to discover based on this:

        ezos = {"ph": ['ph', 'pH', 'mdi:alpha-h-circle'],
               "orp": ['orp', 'mV', 'mdi:alpha-r-circle'],
               "or": ['orp', 'mV', 'mdi:alpha-r-circle'],
               "do": ['dissolved_oxygen','mV', 'mdi:alpha-x-circle'],
               "d.o.": ['dissolved_oxygen','mV', 'mdi:alpha-x-circle'],
               "ec": ['conductivity', "EC", 'mdi:alpha-c-circle']}

that I found on the EZO instructions.

But I have seen that there are changes in the identification (i.e. D.O. or do). Maybe with 'ec' happens the same...
Please could you try changing sensor.py code with:

"e.c.": ['conductivity', "EC", 'mdi:alpha-c-circle']}

@docsparks
Copy link
Author

docsparks commented Apr 29, 2020

I meant to update my comment.

Unless the EC probe is configured to only give back a numeric value, around line 110 of the sensor.py file, there is no error handling for any comma delimited data.

The EC probe gives multiple options for output, and the user must have the EC probe setup right to make the code not error out.

Thank you again for your work.

r = self._read()
#self._state = float(r) + self._offset
self._state = (r)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants