MQTT Sensors not being created

I am using an external MQTT Broker and I have it setup in Integrations. It is working. I am able to listen to topics and see responses. In configuration.yaml I have the following:

mqtt:
  sensor:
    - name: "Fresh Water"
      state_topic: "CP/TANK_STATUS/Fresh"
      unit_of_measurement: "%"
    - name: "Black Tank"
      state_topic: "CP/TANK_STATUS/Black"
      unit_of_measurement: "%"
    - name: "Grey Tank"
      state_topic: "CP/TANK_STATUS/Grey"
      unit_of_measurement: "%"
    - name: "LPG"
      state_topic: "CP/TANK_STATUS/LPG"
      unit_of_measurement: "%"

The problem is that I never see any of these devices get created. If I look under integrations MQTT it does not show anything. I am sure I am missing something small but I am not sure what it is.

Thanks!

Using an external MQTT broker is not an issue- that’s how my system is set up.
I see nothing wrong with your YAML file. (I am YAML-challenged, but your YAML looks a lot like mine).

But, none of my MQTT sensors appear in the Integrations either. Or in devices. Only in entities. And entities is what Lovelace cards work with.

Thanks. I had to search to find them. I was not seeing them under the integrations page and assumed they were not being read. Then under entities I was expecting the Integration to be MQTT not Sensor so that threw me off.

Actually they will show up under the Integrations page if you have a unique ID assigned. My yaml ended up looking like this:

mqtt:
  sensor:
    - name: "Fresh Water"
      state_topic: "CP/TANK_STATUS/Fresh"
      unit_of_measurement: "%"
      icon: mdi:car-coolant-level
      unique_id: "FreshWater"
      state_class: "measurement"
    - name: "Black Tank"
      state_topic: "CP/TANK_STATUS/Black"
      unit_of_measurement: "%"
      icon: mdi:car-coolant-level
      unique_id: "BlackTank"
      state_class: "measurement"
    - name: "Grey Tank"
      state_topic: "CP/TANK_STATUS/Grey"
      unit_of_measurement: "%"
      icon: mdi:car-coolant-level
      unique_id: "GreyTank"
      state_class: "measurement"
    - name: "LPG"
      state_topic: "CP/TANK_STATUS/LPG"
      unit_of_measurement: "%"
      icon: mdi:storage-tank
      unique_id: "LPG"
      state_class: "measurement"