06-14-2024, 04:12 AM
I have both a kc868-a16 and kc868-am. Sensors on the a16 work in Home Assistant, but the sensors on the AM don't. Both have MQTT enabled.
Sensor configuration in configuration.yaml are:
mqtt:
sensor:
- name: 'a16-kcs-temp-sensor-1'
unique_id: a16-kcs-temp-sensor-1
state_topic: 'KC868_A16/XXXXXXXXXXXX/STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor1.temperature }}'
- name: 'a16-kcs-temp-sensor-2'
unique_id: a16-kcs-temp-sensor-2
state_topic: 'KC868_A16/XXXXXXXXXXXX/STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor2.temperature }}'
- name: 'a16-kcs-temp-sensor-3'
unique_id: a16-kcs-temp-sensor-3
state_topic: 'KC868_A16/XXXXXXXXXXXX/STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor3.temperature }}'
- name: 'am-kcs-temp-sensor-1'
unique_id: am-kcs-temp-sensor-1
state_topic: 'KC868_AM/XXXXXXXXXXXX/STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor1.temperature }}'
- name: 'am-kcs-temp-sensor-2'
unique_id: am-kcs-temp-sensor-2
state_topic: 'KC868_AM/ XXXXXXXXXXXX /STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor2.temperature }}'
- name: 'am-kcs-temp-sensor-3'
unique_id: am-kcs-temp-sensor-3
state_topic: 'KC868_AM/ XXXXXXXXXXXX /STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor3.temperature }}'
- name: 'am-kcs-temp-sensor-4'
unique_id: am-kcs-temp-sensor-4
state_topic: 'KC868_AM/ XXXXXXXXXXXX /STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor4.temperature }}'
Any ideas on why the sensors in the kc868-am are not showing up in the HA view using MQTT.
Sensor configuration in configuration.yaml are:
mqtt:
sensor:
- name: 'a16-kcs-temp-sensor-1'
unique_id: a16-kcs-temp-sensor-1
state_topic: 'KC868_A16/XXXXXXXXXXXX/STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor1.temperature }}'
- name: 'a16-kcs-temp-sensor-2'
unique_id: a16-kcs-temp-sensor-2
state_topic: 'KC868_A16/XXXXXXXXXXXX/STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor2.temperature }}'
- name: 'a16-kcs-temp-sensor-3'
unique_id: a16-kcs-temp-sensor-3
state_topic: 'KC868_A16/XXXXXXXXXXXX/STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor3.temperature }}'
- name: 'am-kcs-temp-sensor-1'
unique_id: am-kcs-temp-sensor-1
state_topic: 'KC868_AM/XXXXXXXXXXXX/STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor1.temperature }}'
- name: 'am-kcs-temp-sensor-2'
unique_id: am-kcs-temp-sensor-2
state_topic: 'KC868_AM/ XXXXXXXXXXXX /STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor2.temperature }}'
- name: 'am-kcs-temp-sensor-3'
unique_id: am-kcs-temp-sensor-3
state_topic: 'KC868_AM/ XXXXXXXXXXXX /STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor3.temperature }}'
- name: 'am-kcs-temp-sensor-4'
unique_id: am-kcs-temp-sensor-4
state_topic: 'KC868_AM/ XXXXXXXXXXXX /STATE'
suggested_display_precision: 100
unit_of_measurement: "°F"
value_template: '{{ value_json.sensor4.temperature }}'
Any ideas on why the sensors in the kc868-am are not showing up in the HA view using MQTT.