Hi.
I have Mosquitto Broker addon installed and working fine (I know that is working because I have some ESPHome and zigbee2mqtt devices).
My main mqtt configuration is:
mqtt:
discovery: true
Now I have two problems:
-
Tasmota integration is not working. I have it installed and my Tasmota device is configured to use my MQTT Broker and “SetOption19 0”, acording to Tasmota Manual. The device is not added or discovered by Home Assistant. I’m sure that device is publishing on MQTT, since I have MQTT.fx connected to broker and I can see topic called ‘tele/medidor_energia_adsb/STATE’ (also /SENSOR, /RESULT, /LWT).
-
Even trying to manually add MQTT sensor, I could not find it anywhere in HA. This is my ‘sensor’ code:
- platform: mqtt
name: "Energia Consumida"
unique_id: "medidor_adsb_energia_consumida"
state_topic: "tele/medidor_energia_adsb/SENSOR"
value_template: "{{ value_json.ENERGY.Total }}"
unit_of_measurement: 'kWh'
Like I said, topic ‘tele/medidor_energia_adsb/SENSOR’ exists and this is one message (I’ve setup report every 60 seconds)
{"Time":"2021-05-17T01:19:15","ENERGY":{"TotalStartTime":"2021-05-17T00:59:54","Total":0.864,"Yesterday":0.001,"Today":0.010,"Period":0,"Power":44,"ApparentPower":68,"ReactivePower":52,"Factor":0.65,"Voltage":128,"Current":0.530}}
I have tried to find this device in entities, devices, in ‘Developer Tools → STATES’, but I could not find it anywhere.
My configuration syntax is correct, since configuration check report OK in HA…I also have changed this sensor to something wrong (like an space before ‘name’), just to check if my sensor file is being loaded…and it’s ok, HA report configuration invalid, so my sensor configuration file is being loaded.
What am I doing wrong? How can I debug even more this problem?