There are several reasons why this arrangement was chosen:
- The setup it will work in an remote place (monitoring data and logs are sended to remote server)
- A local database it will be needed (NodeRed/Raspberry Pi)
- Controllino it will have many tasks (almost all I/O ports will be used and RS485 is allready onboard), I did not find a HAT for Raspberry Pi with so many I/O ports
- In addition to sensor-based functioning, there will be a scheduler which can be changed daily (remotely)
Using MQTT seems to me to be the best way to communicate between the computer and the controller, and NodeRed it is easy to use for sending data in a remote server and receiving tasks for the controller