I have some Capacitive soil moisture sensors. One is connected directly to the Hydrosys PCB, but I'm also trying to use one connected to an ESP8266 and using MQTT to send the data to Hydrosys. The sensor works with the ESP - I get changing data when getting the sensor wet. It's just a number that gets smaller when there is more moisture.
I have Tasmota configured to Generic(18) and changed A0 (GPIO17) to "ADC Input"
Hydrosys GUI can see the ESP when looking at the MQTT Clients: MQTT device info
Name Topic IP WiFi -power
espmoisture tele/HygroWiFi/SENSOR 192.168.10.123 17
But in the HardwareSettings in Hydrosys4, I'm not sure what to use for the name since it's not using slowwire. It mentions I need to know the sensor protocol, but also include the GPIO number. I'm confused.
From the directions (but using a digital moisture sensor): The second part of the string is the Sensor protocol (slowwire) with the GPIO number of the ESP where we want to connect the sensor/sensors. (Note this is not the D number written on the D1-mini, but the GPIO number)
SlowWire-<ESP GPIO number here>/Humidity
When I try to read the sensor, I get: Generic Error, MQTT reading
l'm guessing that's my current stumbling block, but there certainly could be more.
Any ideas?
I checked the logs. It looks like Hydrosys4 is getting the MQTT readings from the ESP8266, but it won't display them in the GUI. The 856 numbers are what the ESP8266 is detecting from the moisture sensor when looking at the Tasmota GUI.
This is above my head in MQTT knowledge.
07:54:26 hydrosys4.MQTTcontrol - ERROR MQTT reading {"Time": "2023-01-01T14:53:18", "ANALOG": {"A0": 856}} 07:54:26 hydrosys4.MQTTcontrol - ERROR Error: Generic Error, MQTT reading 07:54:26 hydrosys4.hardwaremod - ERROR Problem with sensor reading: espmoisture 07:54:28 hydrosys4.MQTTcontrol - ERROR MQTT reading {"Time": "2023-01-01T14:53:18", "ANALOG": {"A0": 856}} 07:54:28 hydrosys4.MQTTcontrol - ERROR Error: Generic Error, MQTT reading 07:54:28 hydrosys4.hardwaremod - ERROR Problem with sensor reading: espmoisture
Here is the Hardware Setting in Hydrosys and Tasmota setup for MQTT I have. On the bottom is the ESP/Tasmota reading the moisture. I've tried different titles in the Hardware Settings page, but nothing worked for me. I tried A0 for the pin, GPIO 17, Different words before the pin number (ADC, Analog, Analog0, etc). Can't get a good combination to work.