mqtt: switch: - name: 'output-1' unique_id: output-1 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay1":{"on":1}}' payload_off: '{"relay1":{"on":0}}' value_template: '{{ value_json.relay1.on }}' state_on: 1 state_off: 0 - name: 'output-2' unique_id: output-2 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay2":{"on":1}}' payload_off: '{"relay2":{"on":0}}' value_template: '{{ value_json.relay2.on }}' state_on: 1 state_off: 0 - name: 'output-3' unique_id: output-3 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay3":{"on":1}}' payload_off: '{"relay3":{"on":0}}' value_template: '{{ value_json.relay3.on }}' state_on: 1 state_off: 0 - name: 'output-4' unique_id: output-4 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay4":{"on":1}}' payload_off: '{"relay4":{"on":0}}' value_template: '{{ value_json.relay4.on }}' state_on: 1 state_off: 0 - name: 'output-5' unique_id: output-5 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay5":{"on":1}}' payload_off: '{"relay5":{"on":0}}' value_template: '{{ value_json.relay5.on }}' state_on: 1 state_off: 0 - name: 'output-6' unique_id: output-6 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay6":{"on":1}}' payload_off: '{"relay6":{"on":0}}' value_template: '{{ value_json.relay6.on }}' state_on: 1 state_off: 0 - name: 'output-7' unique_id: output-7 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay7":{"on":1}}' payload_off: '{"relay7":{"on":0}}' value_template: '{{ value_json.relay7.on }}' state_on: 1 state_off: 0 - name: 'output-8' unique_id: output-8 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay8":{"on":1}}' payload_off: '{"relay8":{"on":0}}' value_template: '{{ value_json.relay8.on }}' state_on: 1 state_off: 0 - name: 'output-9' unique_id: output-9 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay9":{"on":1}}' payload_off: '{"relay9":{"on":0}}' value_template: '{{ value_json.relay9.on }}' state_on: 1 state_off: 0 - name: 'output-10' unique_id: output-10 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay10":{"on":1}}' payload_off: '{"relay10":{"on":0}}' value_template: '{{ value_json.relay10.on }}' state_on: 1 state_off: 0 - name: 'output-11' unique_id: output-11 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay11":{"on":1}}' payload_off: '{"relay11":{"on":0}}' value_template: '{{ value_json.relay11.on }}' state_on: 1 state_off: 0 - name: 'output-12' unique_id: output-12 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay12":{"on":1}}' payload_off: '{"relay12":{"on":0}}' value_template: '{{ value_json.relay12.on }}' state_on: 1 state_off: 0 - name: 'output-13' unique_id: output-13 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay13":{"on":1}}' payload_off: '{"relay13":{"on":0}}' value_template: '{{ value_json.relay13.on }}' state_on: 1 state_off: 0 - name: 'output-14' unique_id: output-14 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay14":{"on":1}}' payload_off: '{"relay14":{"on":0}}' value_template: '{{ value_json.relay14.on }}' state_on: 1 state_off: 0 - name: 'output-15' unique_id: output-15 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay15":{"on":1}}' payload_off: '{"relay15":{"on":0}}' value_template: '{{ value_json.relay15.on }}' state_on: 1 state_off: 0 - name: 'output-16' unique_id: output-16 state_topic: 'server/KC868_A16/90380CA4382C/state' command_topic: 'server/KC868_A16/90380CA4382C/set' payload_on: '{"relay16":{"on":1}}' payload_off: '{"relay16":{"on":0}}' value_template: '{{ value_json.relay16.on }}' state_on: 1 state_off: 0 - name: 'a16-kcs-output-1' unique_id: a16-kcs-output-1 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' 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-output-2' unique_id: a16-kcs-output-2 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output2":{"value":true}}' payload_off: '{"output2":{"value":false}}' value_template: '{{ value_json.output2.value }}' state_on: true state_off: false - name: 'a16-kcs-output-3' unique_id: a16-kcs-output-3 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output3":{"value":true}}' payload_off: '{"output3":{"value":false}}' value_template: '{{ value_json.output3.value }}' state_on: true state_off: false - name: 'a16-kcs-output-4' unique_id: a16-kcs-output-4 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output4":{"value":true}}' payload_off: '{"output4":{"value":false}}' value_template: '{{ value_json.output4.value }}' state_on: true state_off: false - name: 'a16-kcs-output-5' unique_id: a16-kcs-output-5 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output5":{"value":true}}' payload_off: '{"output5":{"value":false}}' value_template: '{{ value_json.output5.value }}' state_on: true state_off: false - name: 'a16-kcs-output-6' unique_id: a16-kcs-output-6 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output6":{"value":true}}' payload_off: '{"output6":{"value":false}}' value_template: '{{ value_json.output6.value }}' state_on: true state_off: false - name: 'a16-kcs-output-7' unique_id: a16-kcs-output-7 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output7":{"value":true}}' payload_off: '{"output7":{"value":false}}' value_template: '{{ value_json.output7.value }}' state_on: true state_off: false - name: 'a16-kcs-output-8' unique_id: a16-kcs-output-8 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output8":{"value":true}}' payload_off: '{"output8":{"value":false}}' value_template: '{{ value_json.output8.value }}' state_on: true state_off: false - name: 'a16-kcs-output-9' unique_id: a16-kcs-output-9 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output9":{"value":true}}' payload_off: '{"output9":{"value":false}}' value_template: '{{ value_json.output9.value }}' state_on: true state_off: false - name: 'a16-kcs-output-10' unique_id: a16-kcs-output-10 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output10":{"value":true}}' payload_off: '{"output10":{"value":false}}' value_template: '{{ value_json.output10.value }}' state_on: true state_off: false - name: 'a16-kcs-output-11' unique_id: a16-kcs-output-11 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output11":{"value":true}}' payload_off: '{"output11":{"value":false}}' value_template: '{{ value_json.output11.value }}' state_on: true state_off: false - name: 'a16-kcs-output-12' unique_id: a16-kcs-output-12 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output12":{"value":true}}' payload_off: '{"output12":{"value":false}}' value_template: '{{ value_json.output12.value }}' state_on: true state_off: false - name: 'a16-kcs-output-13' unique_id: a16-kcs-output-13 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output13":{"value":true}}' payload_off: '{"output13":{"value":false}}' value_template: '{{ value_json.output13.value }}' state_on: true state_off: false - name: 'a16-kcs-output-14' unique_id: a16-kcs-output-14 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output14":{"value":true}}' payload_off: '{"output14":{"value":false}}' value_template: '{{ value_json.output14.value }}' state_on: true state_off: false - name: 'a16-kcs-output-15' unique_id: a16-kcs-output-15 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output15":{"value":true}}' payload_off: '{"output15":{"value":false}}' value_template: '{{ value_json.output15.value }}' state_on: true state_off: false - name: 'a16-kcs-output-16' unique_id: a16-kcs-output-16 state_topic: 'KC868_a16/B48A0A404560/STATE' command_topic: 'KC868_a16/B48A0A404560/SET' payload_on: '{"output16":{"value":true}}' payload_off: '{"output16":{"value":false}}' value_template: '{{ value_json.output16.value }}' state_on: true state_off: false - name: 'a16-kcs-input-1' unique_id: a16-kcs-input-1 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input1.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-2' unique_id: a16-kcs-input-2 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input2.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-3' unique_id: a16-kcs-input-3 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input3.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-4' unique_id: a16-kcs-input-4 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input4.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-5' unique_id: a16-kcs-input-5 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input5.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-6' unique_id: a16-kcs-input-6 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input6.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-7' unique_id: a16-kcs-input-7 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input7.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-8' unique_id: a16-kcs-input-8 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input8.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-9' unique_id: a16-kcs-input-9 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input9.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-10' unique_id: a16-kcs-input-10 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input10.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-11' unique_id: a16-kcs-input-11 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input11.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-12' unique_id: a16-kcs-input-12 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input12.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-13' unique_id: a16-kcs-input-13 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input13.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-14' unique_id: a16-kcs-input-14 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input14.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-15' unique_id: a16-kcs-input-15 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input15.value }}' payload_on: true payload_off: false - name: 'a16-kcs-input-16' unique_id: a16-kcs-input-16 state_topic: 'KC868_a16/B48A0A404560/STATE' value_template: '{{ value_json.input16.value }}' payload_on: true payload_off: false