ATTENCION
We have not included the installation of the modbus integration in the video.
You need to go to settings, devices and services, Add integration, choose Modbus.
There are several forms of wired communication but with the Modbus protocol the most used are: - TCP which is basically with four-pair ethernet cables and switches this allows us to share with our local network, or not if what we want is to have the network isolated. Although there are some devices that incorporate it, we leave a link to three videos in which it is shown: [ Ссылка ] [ Ссылка ] [ Ссылка ]
But this time we will do it with RTU
- RTU which is essentially with RS485 wiring a single crossed pair with mesh the connection does not allow star sections but the different devices must be connected one after the other and the last one must have a 120Ω resistor connected in parallel, it only allows 32 devices per loop but we can create several loops. The RTU connection consists of a Master or Client and one or more Slaves or Servers. We have used a USB to RS486 converter for the Client which will be the device that runs Home Assistant.
The servers can be commercial devices such as energy meters, solar inverters or microcontroller boards such as Arduino, ESP32, ESP8266... that we have configured with an RS485 to TTL converter.
In this video:
[ Ссылка ]
We show how to configure an ESP8266 as a Server. There we communicated with it through another ESP8266 that we had configured with ESPHome as a Modbus Client in such a way that our HO instance communicated with the Client via WIFI and from it the RS485 communication went out to the other Servers.
In the current video we show how to configure HO to perform the Modbus Client function, configure the Modbus parameters, read device registers and the most complicated thing is to send data to the Servers.
Modbus RTU Table: [ Ссылка ]
Files to paste:
Paste for Modbus wiring.txt, Paste for automation template.txt.
[ Ссылка ]
Coverter USB to RS485:
[ Ссылка ]
"Home Assistant" "tutorial" "ESP8266" "ESP01" "Relay" "esp32" "DS18B20" "dallas" "Modbus" "RTU" "Modbus slave" "Slave" "Arduino IDE" "RS485" "Thermostat" "USB" "Raspberry pi"
#homeassistant #tutorial #esp8266 #esp01 #relay #esp32 #ds18b20 #one_wire #modbus #rtu #modbusslave #slave #arduinoide #rs485 #thermostat #usb #raspberrypi"
Ещё видео!