Page 6 of 6

Re: MQTT Audo-discovery

Posted: Monday 09 January 2023 18:00
by Dave21w
Are you using Localhost in the Remote Address box or the actual I.P ?

Re: MQTT Audo-discovery

Posted: Monday 09 January 2023 18:53
by quazar
I use localhost.

When I use the non-autodetect MQTT version, Domoticz can receive data using

Code: Select all

mosquitto_pub -h localhost -m '{ "idx" : 384, "nvalue" : 39, "svalue" : "270" }' -t 'domoticz/in' 
No data seems to be going to domoticz/in automatically according to MQTT Explorer. Can that be the problem?

Re: MQTT Audo-discovery

Posted: Monday 09 January 2023 19:07
by waltervl
@quazar did you add a new MQTT Autodiscover gateway that looks at zigbee2mqtt topic? See the zigbee2mqtt wiki https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover

Re: MQTT Audo-discovery

Posted: Monday 09 January 2023 19:24
by quazar
waltervl wrote: Monday 09 January 2023 19:07 @quazar did you add a new MQTT Autodiscover gateway that looks at zigbee2mqtt topic? See the zigbee2mqtt wiki https://www.domoticz.com/wiki/Zigbee2MQ ... todiscover
yes, I did add the autodiscover gateway and enabled homeassistant under zigbee2MQTT --> settings --> Home assistant integration

Re: MQTT Audo-discovery

Posted: Monday 09 January 2023 19:30
by waltervl
What is your topic name in Domoticz mqtt Autodiscover config? Should be zigbee2mqtt as it looks like it from your mosquito log. Default is homeassistant (also for zigbee2mqtt) so you have to change that.

Re: MQTT Audo-discovery

Posted: Monday 09 January 2023 19:46
by quazar
waltervl wrote: Monday 09 January 2023 19:30 What is your topic name in Domoticz mqtt Autodiscover config? Should be zigbee2mqtt as it looks like it from your mosquito log. Default is homeassistant (also for zigbee2mqtt) so you have to change that.
Ah, I should rename the Auto Discovery Prefix of the MQTT Auto Discovery Client Gateway with LAN interface to zigbee2mqtt?

Re: MQTT Audo-discovery

Posted: Monday 09 January 2023 20:06
by waltervl
Yes, see the instructions on the zigbee2mqtt wiki I already referred to.

Re: MQTT Audo-discovery

Posted: Tuesday 24 January 2023 22:57
by joostvanderlinde
Finally I found the time to upgrade my old Domoticz to the newest version and also include MQTT Autodiscover.
At another location I already have that running, so was not expecting much issues.
All seems OK, Zigbee2MQTT picked up my Zigbee devices (all data exposed and in Zigbee2MQTT.
But for unclear reasons not all data fields that are exposed in Zigbee2MQTT, get into Domoticz.
I have two (one TuYa IH-K009 and one Tuya TS0201) temperature sensors (that work just fine with all exposed field in Domoticz at my other location).

But in the new setup, only Temperature/Humidity and Voltage get picked up (and are updated) in Domoticz.
Battery and Linkquality do not.
I guess this is some kind of filtering/config but I just cannot figure out what (and forgot what I did in the other location ;-) )

Any clues?