09-19-2023, 03:09 AM
mqtt:
switch:
- name: 'a8s-kcs-output-1'
unique_id: a8s-kcs-output-1
state_topic: 'KC868_A8S/08F9E08B1F58/STATE'
command_topic: 'KC868_A8S/08F9E08B1F58/SET'
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.output1.value }}'
state_on: true
state_off: false
A8S_KCS_HA_mqtt.txt (Size: 3.13 KB / Downloads: 480)
just replace your own board's UID.
switch:
- name: 'a8s-kcs-output-1'
unique_id: a8s-kcs-output-1
state_topic: 'KC868_A8S/08F9E08B1F58/STATE'
command_topic: 'KC868_A8S/08F9E08B1F58/SET'
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
value_template: '{{ value_json.output1.value }}'
state_on: true
state_off: false
A8S_KCS_HA_mqtt.txt (Size: 3.13 KB / Downloads: 480)
just replace your own board's UID.