12-06-2023, 05:20 AM
If I may ask, I would like to inquire whether in a future version, the control of the buzzer will also be exposed via MQTT... it would be very useful; currently, I don't see it in MQTT Explorer. At the moment, I have added the sensors. I'm leaving the example code for anyone interested.
sensor:
- name: "ADC-1"
unique_id: a16-kcs-adc-1
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.adc1.value }}"
unit_of_measurement: "Unità"
- name: "ADC-2"
unique_id: a16-kcs-adc-2
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.adc2.value }}"
unit_of_measurement: "Unità"
- name: "ADC-3"
unique_id: a16-kcs-adc-3
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.adc3.value }}"
unit_of_measurement: "Unità"
- name: "ADC-4"
unique_id: a16-kcs-adc-4
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.adc4.value }}"
unit_of_measurement: "Unità"
- name: "Sensor 1 Temperature"
unique_id: a16-kcs-sensor-1-temperature
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.sensor1.temperature }}"
unit_of_measurement: "°C"
sensor:
- name: "ADC-1"
unique_id: a16-kcs-adc-1
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.adc1.value }}"
unit_of_measurement: "Unità"
- name: "ADC-2"
unique_id: a16-kcs-adc-2
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.adc2.value }}"
unit_of_measurement: "Unità"
- name: "ADC-3"
unique_id: a16-kcs-adc-3
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.adc3.value }}"
unit_of_measurement: "Unità"
- name: "ADC-4"
unique_id: a16-kcs-adc-4
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.adc4.value }}"
unit_of_measurement: "Unità"
- name: "Sensor 1 Temperature"
unique_id: a16-kcs-sensor-1-temperature
state_topic: "KC868_E16S/B8D61A5AA69C/STATE"
value_template: "{{ value_json.sensor1.temperature }}"
unit_of_measurement: "°C"