01-21-2024, 12:58 AM
you can use one mqtt command for multi channel ON or OFF. such as output1-15 ON:
output 1-15 OFF:
here is tested by MQTTBOX tool:
Code:
{"output1":{"value":true}},{"output2":{"value":true}},{"output3":{"value":true}},{"output4":{"value":true}},{"output5":{"value":true}},{"output6":{"value":true}},{"output7":{"value":true}},{"output8":{"value":true}},{"output9":{"value":true}},{"output10":{"value":true}},{"output11":{"value":true}},{"output12":{"value":true}},{"output13":{"value":true}},{"output14":{"value":true}},{"output15":{"value":true}}
output 1-15 OFF:
Code:
{"output1":{"value":false}},{"output2":{"value":false}},{"output3":{"value":false}},{"output4":{"value":false}},{"output5":{"value":false}},{"output6":{"value":false}},{"output7":{"value":false}},{"output8":{"value":false}},{"output9":{"value":false}},{"output10":{"value":false}},{"output11":{"value":false}},{"output12":{"value":false}},{"output13":{"value":false}},{"output14":{"value":false}},{"output15":{"value":false}}
here is tested by MQTTBOX tool: