Two MQTT sensors. One works great, the other doesn't. Why?

I have two MQTT sensors. Both receive values via MQTT every 10 minutes. But only one sensor is shown and I can’t get my head around why that is.

This is my configuration.yaml section:

#MQTT Sensor
sensor:
  - platform: mqtt
    name: "cpu_temp_rahmen"
    state_topic: "frame/cpu_temp"
    unit_of_measurement: '°C'
    availability_topic: "frame/cpu_temp/available"
    payload_available: "online"
    payload_not_available: "offline"
  - platform: mqtt
    name: "image_count_rahmen"
    state_topic: "frame/images"
    unit_of_measurement: 'Photos'
    availability_topic: "frame/images/available"
    payload_available: "online"
    payload_not_available: "offline"

The first sensor (cpu) works fine but not the second one (images). I listened to both channels and both receive values as they should. And the config is the same.

In “Entities” the image_count_rahmen is shown as Status Unavailable. But why?

Does the device ever send out the correct payload on the availability topic (frame/images/available)?

1 Like

i would install MQTT explorer

then you can see the info you want

image

1 Like

That was it! Thanks much!

1 Like

It’s installed and I saw everything there that’s why I was confused why it wouldn’t show up in HA.