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

ESPhome #120

Open
luis-nagaki opened this issue Mar 14, 2023 · 4 comments
Open

ESPhome #120

luis-nagaki opened this issue Mar 14, 2023 · 4 comments

Comments

@luis-nagaki
Copy link

any way of converting this for use in ESPHome? or HA?

@SRGDamia1
Copy link
Contributor

This library only handles direct communication with the SDI-12. You'd have to write a wrapper to convert it to the right format for ESPHome. I've never looked at the codebase for ESPHome, so I have no idea how hard it would be. Others have had success running the library on ESP8266 and ESP32, so it's possible. Once you have the sensor working with ESPHome, I'm guessing getting the data from there to HomeAssistant would be straightforward.

@luis-nagaki
Copy link
Author

I will give it my best :)

@luis-nagaki
Copy link
Author

Also, this is assuming the SDI-12 sensor is connected directly to a GPIO pin directly to the ESP board?

@SRGDamia1
Copy link
Contributor

The library assumes the sensor is directly connected, but depending on your sensor, you may need to use level shifters. Many SDI-12 sensors require 12V power and 5V TTL logic.

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