Home assistant with RS485 Modbus RTU wired network

Описание к видео Home assistant with RS485 Modbus RTU wired network

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: https://studio.youtube.com/video/bvM6... https://studio.youtube.com/video/DC2z... https://studio.youtube.com/video/aRD7...

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:
   • Modbus RTU Slave for ESP8266 ESP32 wi...  
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: https://docs.google.com/spreadsheets/...

Files to paste:
Paste for Modbus wiring.txt, Paste for automation template.txt.
https://drive.google.com/drive/folder...

Coverter USB to RS485:
https://www.amazon.es/dp/B09P8CX69G?r...

"Home Assistant" "tutorial" "ESP8266" "ESP01" "Relay" "esp32" "DS18B20" "dallas" "Modbus" "RTU" "Modbus slave" "Slave" "Arduino IDE" "RS485" "Thermostat" "USB" "Raspberry pi"

Комментарии

Информация по комментариям в разработке