MQTT tasmota

Hi!

I’m new to Home assistant and I cant connect my wemos d1 with tasmota and a DHT22 sensor with MQTT to home assistant:

This is the configuration of the Wemos:

The config in the mosquitto addon and in the configuration.yaml::

{
  "logins": [
{
  "username": "mqttuser",
  "password": "mqttuser"
}
   ],
  "anonymous": false,
  "customize": {
    "active": false,
    "folder": "mosquitto"
  },
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem"
}




mqtt:
  broker: 127.0.0.1
  port: 1883
  username: mqttuser
  password: mqttuser
  discovery: true
  discovery_prefix: homeassistant

sensor 1:
  platform: mqtt
  state_topic: 'stat/salon'
  name: 'Temperatura'
  unit_of_measurement: 'ºC'
  value_template: '{{ value_json.temperature }}'

sensor 2:
  platform: mqtt
  state_topic: 'stat/salon'
  name: 'Humedad'
  unit_of_measurement: '%'
  value_template: '{{ value_json.humidity }}'

What am I doing wrong?

Looks like there are a lot of changes in the Tasmota Wiki about HA and Tasmota versions since yesterday.
Maybe you’ll find something there.

Just in case someone have the same problem

If you watch the console in the tasmota server, you can see the topic you have to use (in my case tele/salon/SENSOR):
image

1 Like