Hello,
Apologies for the delay.
Regarding your use case, reading values from MQTT and triggering a Modbus Write action, the most optimal approach would indeed be through a custom script.
While creating such a script is beyond my scope here, I can suggest checking similar forum discussions where MQTT subscription handling and Modbus control have been combined that should be helpful and bring you some insights:
- RUT200 Modbus TCP Script
- RUTX11 Modbus MQTT
- Modbus RTU Client
- How to use MQTT from CLI - I need to publish from CLI
Best regards,