I find this code below is working using mqtt on a16s board.
- name: 'output-1'
unique_id: output-1
state_topic: 'KC868_A16S/E05A1B5A547C/STATE'
command_topic: 'KC868_A16S/E05A1B5A547C/SET'
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
Now i am trying to add the binary input of the A16S board using mqtt to home assisstant.
but still not successful.
Sir can you provide config yaml code for using the binary input, sensor, adc?
please advise sir... thank you.
- name: 'output-1'
unique_id: output-1
state_topic: 'KC868_A16S/E05A1B5A547C/STATE'
command_topic: 'KC868_A16S/E05A1B5A547C/SET'
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
Now i am trying to add the binary input of the A16S board using mqtt to home assisstant.
but still not successful.
Sir can you provide config yaml code for using the binary input, sensor, adc?
please advise sir... thank you.