i have tested , no any problem. this is sample config for turn ON 16CH relay and turn OFF 16CH relay by "output-1" button in dashboard.
- name: 'output-1'
unique_id: output-1
state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
command_topic: 'server/8ae082ec66f37db231cf2b8f/set'
payload_on: '{"relay1":{"on":1},"relay2":{"on":1},"relay3":{"on":1},"relay4":{"on":1},"relay5":{"on":1},"relay6":{"on":1},"relay7":{"on":1},"relay8":{"on":1},"relay9":{"on":1},"relay10":{"on":1},"relay11":{"on":1},"relay12":{"on":1},"relay13":{"on":1},"relay14":{"on":1},"relay15":{"on":1},"relay16":{"on":1}}'
payload_off: '{"relay1":{"on":0},"relay2":{"on":0},"relay3":{"on":0},"relay4":{"on":0},"relay5":{"on":0},"relay6":{"on":0},"relay7":{"on":0},"relay8":{"on":0},"relay9":{"on":0},"relay10":{"on":0},"relay11":{"on":0},"relay12":{"on":0},"relay13":{"on":0},"relay14":{"on":0},"relay15":{"on":0},"relay16":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
here is my config yaml file, you can compare, whether have syntax issue.
config.zip (Size: 3.94 KB / Downloads: 146)
- name: 'output-1'
unique_id: output-1
state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
command_topic: 'server/8ae082ec66f37db231cf2b8f/set'
payload_on: '{"relay1":{"on":1},"relay2":{"on":1},"relay3":{"on":1},"relay4":{"on":1},"relay5":{"on":1},"relay6":{"on":1},"relay7":{"on":1},"relay8":{"on":1},"relay9":{"on":1},"relay10":{"on":1},"relay11":{"on":1},"relay12":{"on":1},"relay13":{"on":1},"relay14":{"on":1},"relay15":{"on":1},"relay16":{"on":1}}'
payload_off: '{"relay1":{"on":0},"relay2":{"on":0},"relay3":{"on":0},"relay4":{"on":0},"relay5":{"on":0},"relay6":{"on":0},"relay7":{"on":0},"relay8":{"on":0},"relay9":{"on":0},"relay10":{"on":0},"relay11":{"on":0},"relay12":{"on":0},"relay13":{"on":0},"relay14":{"on":0},"relay15":{"on":0},"relay16":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
here is my config yaml file, you can compare, whether have syntax issue.
config.zip (Size: 3.94 KB / Downloads: 146)