your state_topic and command_topic is wrong.
you only need add 16 DO and 16 DI command. The server topic because i have also added KC868-Server, you not need to use. so you need to 16 DO and 16 DI as these format:
- name: 'a16-kcs-output-1'
unique_id: a16-kcs-output-1
state_topic: 'KC868_A16/B48A0A404560/STATE' replace B48A0A404560 with your boad's ID, you can check in your board webpage.
command_topic: 'KC868_A16/B48A0A404560/SET' replace B48A0A404560 with your boad's ID, you can check in your board webpage.
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.output1.value }}'
state_on: true
state_off: false
- name: 'a16-kcs-input-1'
unique_id: a16-kcs-input-1
state_topic: 'KC868_A16/B48A0A404560/STATE' replace B48A0A404560 with your boad's ID
value_template: '{{ value_json.input1.value }}'
payload_on: true
payload_off: false
you only need add 16 DO and 16 DI command. The server topic because i have also added KC868-Server, you not need to use. so you need to 16 DO and 16 DI as these format:
- name: 'a16-kcs-output-1'
unique_id: a16-kcs-output-1
state_topic: 'KC868_A16/B48A0A404560/STATE' replace B48A0A404560 with your boad's ID, you can check in your board webpage.
command_topic: 'KC868_A16/B48A0A404560/SET' replace B48A0A404560 with your boad's ID, you can check in your board webpage.
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.output1.value }}'
state_on: true
state_off: false
- name: 'a16-kcs-input-1'
unique_id: a16-kcs-input-1
state_topic: 'KC868_A16/B48A0A404560/STATE' replace B48A0A404560 with your boad's ID
value_template: '{{ value_json.input1.value }}'
payload_on: true
payload_off: false