I have a Sonoff 4ChPro that I intend to use for controlling static valves, inspired by
In addition I have a Gardena Soil Moisture reader that would be nice to integrate via the the Sonoff board.
However, here I am stuck due to my ignorance in the domain of electronics…
The Gardena device seems to work by operating an internal relay that either shortens or breaks the signal wire, ie
Wet = 2-3 Ohm
Dry = oo Ohm (>2000k)
There is no voltage over the signal wire at any occasion
The question is whether it will be possible to read this information in any practical way with the aid of the Sonoff?
If not directly then maybe indirectly?
In order to move forward I need something more tangible that the generic Sonoff 4Ch ESPHome webpage, as it asumes an active sensor, while I consider the Gardena sensor to be passive.
It is a partial success.
I have wired the Gardena to a breadboard, as well as the Sonoff GND + RX.
On the 4ChPro, there is only access to rx,tx,3.3V and gnd, so I have no option to access any other gpio.
When I breack the circuit by pulling either of the wires the Sonoff changes status on the sensor, but it does not change based on the Gardena status, ie from 2ohm (wet) to oo (dry).
I had no success with the Sonoff 4ch. I have now tried with a separate nodemcuv2, and have set it up as an Ohm-meter, converting the anlog readout to a binary sensor: