MQTT Sensoren zeigen "nicht verfügbar" an

Hallo zusammen,

ich versuche in Home Assistant (aktuellste Version) BSB-LAN Sensoren über MQTT einzubinden. Leider wird mir immer nur der Wert “nicht verfügbar” angezeigt.

Werte kommen jedoch an (exemplarisch für einen Sensor):

Mein Code sieht wie folgt aus:

mqtt:
  sensor:
    - name: "Sommer/Winter Umschalttemperatur"
      unique_id: bsb_lan_heizkreis1_sommer_winter_umschalttemperatur
      state_topic: "BSB-LAN/730"
      #unit_of_measurement: °C
      #device_class: temperature
      #value_template: "{{value | replace('---', '0.0', 1) | float}}"
      icon: mdi:thermometer

      qos: 0
      availability:
        - topic: "BSB-LAN/status"
      payload_available: "online"
      payload_not_available: "offline"

      device:
        identifiers: "BSB-LAN"
        manufacturer: "BSB-LAN"
        name: "BSB-LAN"

(Das Auskommentieren hat auch nichts verändert…)

Was mache ich falsch?

Viele Grüße Sebastian

Moin,
ich würde das mal Testweise raus nehmen:

oder das mit einfügen:

availability_mode string (optional, default: latest)

When availability is configured, this controls the conditions needed to set the entity to available. Valid entries are all, any, and latest. If set to all, payload_available must be received on all configured availability topics before the entity is marked as online. If set to any, payload_available must be received on at least one configured availability topic before the entity is marked as online. If set to latest, the last payload_available or payload_not_available received on any configured availability topic controls the availability.

Das brauchst du übrigens nicht, da das die default werte sind:

payload_available string (optional, default: online)

The payload that represents the available state.

payload_not_available string (optional, default: offline)

LG
Tobi

1 „Gefällt mir“

Danke dir. Das hat funktioniert :slight_smile: