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?