EnviroDIY / Arduino-SDI-12

An Arduino library for SDI-12 communication with a wide variety of environmental sensors. This library provides a general software solution, without requiring any additional hardware.
https://github.com/EnviroDIY/Arduino-SDI-12/wiki
BSD 3-Clause "New" or "Revised" License
158 stars 99 forks source link

ESPhome #120

Open luis-nagaki opened 1 year ago

luis-nagaki commented 1 year ago

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

SRGDamia1 commented 1 year ago

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 commented 1 year ago

I will give it my best :)

luis-nagaki commented 1 year ago

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

SRGDamia1 commented 1 year ago

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.