#MQTT sensor not in list

1 messages · Page 1 of 1 (latest)

keen osprey
#

Hello everyone!
I'm trying to convert my already existing solution to monitor the level of the pellets from a standalone platform to Home Assistant.
My "sensor" device is a Raspbian Raspberry Pi Zero W and it publishes the percentage of the "pellet tray" on pellets/metrics/percentage.
I have Home Assistant Container installed on my Raspberry PI 4.

Here's the part of the configuration.yaml file:

mqtt:
  sensor:
    - name: "Pellets Percentage"
      unique_id: "pellets_percentage"
      state_topic: "pellets/metrics/percentage"
      unit_of_measurement: "%"
      availability:
        - topic: "pellets/status"
      payload_available: "Online"
      payload_not_available: "Offline"

Why it isn't shown in anything?

#

The LWT works as intended:

#
Messaggio 0 ricevuto su pellets/status alle 1:19:
Online
#

And the percentage too:

Messaggio 1 ricevuto su pellets/metrics/percentage alle 1:20:
98.94915254237287
keen osprey
#

Ok after the countless restart, it finally showed, but now the issue is that the sensor is shown as "Not available"