Hi guys,
i build a watering system for some of my plants and i want to monitor the sensor data in Home assistant.
I am able so send some data from the Arduino via the TX/RX pins to the ESP32, but now i dont know how to get the Data to Home Assistant and plot it. I plan to send the data from 4 moisture sensors.
The parts i have: Raspberry Pi 4, Arduino and ESP32 D1 Mini NodeMCU
Understood. My proposal was to connect the moisture sensors to the ESP32 directly and configure them as ADC inputs in ESPHome. ESPHome has a native integration in Home Assistant (which will actully pop-up as soon as your ESPHome-flashed devices starts).
@m0wlheld: I dont want to connect the moisture sensor directly to the esp32. I use the sensor as input data for the Arduino system. Besides that, i prefere digital data so i have less disturbance.
@nickrout: I am a beginner and would need some guidance.
In the UART example it is written
"Store this file in your configuration directory, for example “uart_read_line_sensor.h”
How do i do that? Is that something i have to do on the microSD card of the raspberry PI4?
Or do i have to do it in the Home Assistance interface in my browser? If it is here, where exactly? I have a “Configuration” in my menu and there is a “Skript” option, but i don’t think thats the right one.
So i created a new Node which is called “WaterSensor.yaml”.
This file was saved in the folder: “/config/esphome”.
Then i created the file “uart_read_line_sensor.h” in the same folder.
After that, i added the rest from: https://esphome.io/components/text_sensor/uart.html to the “WaterSensor.yaml” file. It now looks like: