#MQTT Device not showing up in HA but are received by MQTT

1 messages · Page 1 of 1 (latest)

patent moth
#

I have this config:

sensor:
  - platform: mqtt
    name: "Mathis-Temperatur"
    state_topic: "home/temperatur/mathis"
    unit_of_measurement: "°C"
    value_template: "{{ value | float }}"
    qos: 1 

in my configuration.yaml.
I have a temperature sensor connected to an esp32 c3 which sends the temperature every 30 seconds to home/temperatur/mathis and it is received, which i can see in the mqtt debugging tool and mqtt explorer, somehow it won't show up.

jolly pilot
#

You're using the wrong syntax

patent moth
#

ooh

#

what would be correct?

jolly pilot
#

In the docs

patent moth
#

thanks

patent moth
# jolly pilot <https://www.home-assistant.io/integrations/sensor.mqtt/>
mqtt:
  switch:
    - name: "LED-Baum"
      state_topic: "home/fenstersteckdose/state"
      command_topic: "home/fenstersteckdose/set"
      payload_on: "ON"
      payload_off: "OFF"
      unique_id: "rf433_fenstersteckdose"
      device:
        identifiers:
          - "rf433_controller"
        name: "433MHz Sender"
    - name: "LED-Blitz"
      state_topic: "home/ledblitz/state"
      command_topic: "home/ledblitz/set"
      payload_on: "ON"
      payload_off: "OFF"
      unique_id: "rf433_ledblitz"
      device:
        identifiers:
          - "rf433_controller"
        name: "433MHz Sender"
  sensor:
    - name: "Mathis-Temperatur"
      state_topic: "home/temperatur/mathis"

so is that correct? just the sensor, others work

#

ooh actually yes it works