here is KCS mqtt document: https://www.kincony.com/forum/attachment.php?aid=1779
the feedback will include all data:
{{"output1":{"value":true}},{"output2":{"value":false}},………{"input1":{"value":true}},{"input2":{"value":true}},………{"adc1":{"value":2610}},………{"dac1":{"value":10}},……}
such as the analog feedback is:
{"adc1":{"value":2610}}
so you can config in home assistant yaml as:
sensor:
– name: ‘A1’
unique_id: A1
state_topic: ‘KC868_A64/B48A0A404664/STATE’ (if you are using A64, you can replace with other board model name)
unit_of_measurement: ‘%’ (unit can change by yourself)
value_template: ‘{{ value_json.adc1.value }} ‘
the feedback will include all data:
{{"output1":{"value":true}},{"output2":{"value":false}},………{"input1":{"value":true}},{"input2":{"value":true}},………{"adc1":{"value":2610}},………{"dac1":{"value":10}},……}
such as the analog feedback is:
{"adc1":{"value":2610}}
so you can config in home assistant yaml as:
sensor:
– name: ‘A1’
unique_id: A1
state_topic: ‘KC868_A64/B48A0A404664/STATE’ (if you are using A64, you can replace with other board model name)
unit_of_measurement: ‘%’ (unit can change by yourself)
value_template: ‘{{ value_json.adc1.value }} ‘