I am looking into using the fundamental components of JMRI in particular the MQTT messaging protocol. I am currently looking into designing software for the Arduino based platform to communicate with MQTT to be able to have an Arduino receive messages from the MQTT protocol and in turn control switches or track power or operate accessories. Additionally the Arduino platform would be able to send status messages back to the MQTT service.
My objective is to have Node-RED/Home Assistant manage my trains by sending and receiving messages via MQTT to the Arduino platform to control my train devices. Node-RED is capable of providing the decision tree logic based on the current status of sensors(opto-isolators) whether to turn on track power to start a train or throw a switch or turn on an operating accessory.
So my actual question is has anyone else done testing in this area. I only would like to know if anyone has done any work in this area and did you have satisfactory results. I am capable of the doing the programming and design.