MQTT sensor not available for Statistics Graph card

I have several MQTT sensors and for some reason they aren’t available as entities to use in the statistics graph card.

Based on searching it seems like they should be but I’m not sure what if anything I’m missing.

Example sensor:

- platform: mqtt
  state_class: measurement
  state_topic: "rtl_433/+/devices/Acurite-Tower/A/7268/humidity"
  device_class: humidity
  unique_id: 7268_humidity
  name: acurite_master_bedroom_humidity
  unit_of_measurement: '%'

You have the required attributes in your config.

Go to Developer Tools > Statistics. See if there is a “Fix Issue” button available for the entity.

Thanks, I did check that but the sensors don’t show up in the list. I use them in the mini-graph card so they definitely are visible to HASS.

Hi Jay
Did you find a solution for this?

This fixed it for me, adding the state_class to the sensor, type measurement:

- platform: mqtt
  state_class: measurement
  state_topic: "..."
5 Likes