So i am trying to connect an esp32 via modbus to multiple slaves (all the same), the slaves are basically a panel with 10 buttons and some enviroment sensors and rgb.
It has some documentation explaining the best way to read the data without over using the modbus. I first tried with esphome and it worked for one slave but when adding another it got slow due to many requests.
This is a picture of some of the registers a slave has. Now the documentation says i should read register 13 and if this changes i should read registers 14-23. But how do i add sensors for register 14-23 without them being updated via the update_interval ( i am using 100ms for the buttons pressed). Further wanted to read some other registers containing enviroment data and rgb values, for this i added the skip_update_interval so it wouldnt be updated every 100ms.
Are there any optimizations that i can do? Or should i write a full custom component or just not use esphome for this?
Many thanks