i don’t think there is any mechanism built in to support this… but, you could use MMM-RemoteControl on the server side that accepts api requests.
then on the RPI you would have to write some background tasks to interact with the local devices
and send requests.
you ‘might’ be able to inject those handlers into the MM front end by modifying the index.html