Page 1 of 1

MQTT Autodiscovery not adding devices?

Posted: Saturday 11 March 2023 10:34
by hyeronimo
Hi,

I am trying to get an MQTT P1 smart meter and a Tasmotic Zigbeebridge pro with a sonoff temp/hum sensor into domoticz. Mosquitto seems to be running and I can see MQTT messages in the domoticz log. I am not using ZIgbee2Mqtt since it cannot connect to the ZBbridge pro hub (yet?).
However even when I see 'discovered' or dicovery topic messages appearing in the domoticz log, No new devices are created.

I ran the mqtt_ad_record script and I added some output to this message.

MQTTexplorer is also able to connect to mosquitto.
Any ideas what is going wrong? I have been struggling with this for quite some time now, help would be greatly appreciated!

From the domoticz log:
2023-03-11 09: Status: MQTT_Auto_DSMR: Connecting to xxxx:1883
2023-03-11 09: Status: MQTT_Auto_DSMR: connected to: xxxx:1883
2023-03-11 09 Status: MQTT_Auto_DSMR: discovered: timestamp/DSMR Last Update (unique_id: timestamp)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: power_delivered/Power Delivered (unique_id: power_delivered)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: power_returned/Power Returned (unique_id: power_returned)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: energy_delivered_tariff1/Energy Delivered T1 (unique_id: energy_delivered_tariff1)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: energy_delivered_tariff2/Energy Delivered T2 (unique_id: energy_delivered_tariff2)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: energy_returned_tariff1/Energy Returned T1 (unique_id: energy_returned_tariff1)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: voltage_l3/Voltage l3 (unique_id: voltage_l3)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: current_l1/Current l1 (unique_id: current_l1)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: current_l2/Current l2 (unique_id: current_l2)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: current_l3/Current l3 (unique_id: current_l3)
2023-03-11 09: Status: MQTT_Auto_DSMR: discovered: gas_delivered/Gas Delivered (unique_id: gas_delivered)

I have added the script ad_record output as an attachment.

Re: MQTT Autodiscovery not adding devices?

Posted: Sunday 12 March 2023 20:21
by pikassent
Hi,

From your attached log, you are running tasmota 12_4_0
Last tasmota version working with MQTT AD is 11_1_0 (at least for me)

Hope this helps

Re: MQTT Autodiscovery not adding devices?

Posted: Monday 13 March 2023 11:50
by hyeronimo
Thank you for responding, I will try to downgrade tasmota.

Re: MQTT Autodiscovery not adding devices?

Posted: Monday 13 March 2023 12:16
by hyeronimo
Ah.. ZIgbeeBridge Pro is not supported in tasmota 11_1_0 . The DSMR (P1 smart meter) is also delivering MQTT messages, Any ideas on why the log says discovered, but no device is added by Domoticz?