Page 1 of 1

No data out domoticz

Posted: Monday 20 June 2022 14:43
by Filnet
Hello

I submit my problem. I try using mqtt with dz.
When I select "MQTT Client Gateway...", data in and data out appairs in MQTT Explorer.
But when I select "MQTT Autodiscovery Client Gateway..." no data goes out domoticz.
Where is my mistake?

Used with Mosquitto/docker

Thanks for your help

Filnet

Re: No data out domoticz

Posted: Monday 20 June 2022 15:37
by waltervl
it goes out in the AD style so the AD hardware (eg zigbee2mqtt or zwavejs2mqtt) can understand. So look in the AD prefix (eg homeassistant) with MQTT Explorer.

Re: No data out domoticz

Posted: Monday 20 June 2022 15:46
by Filnet
Thanks for response. For testing, one hardware with AD (prefix homeassistant) and another one without AD (prefix domoticz)
Here is the log window of MQTT Explorer:
domoticz
status = online
out = { "Battery" : 255, "LastUpdate" : "2022-06-20 15:00:39", "RSSI" : 12, "description" : "", "dtype" : "General", "hwid" : "15", "id" : "00000003", "idx" : 522, "name" : "Core Clock Speed", "nvalue" : 0, "stype" : "Custom Sensor", "svalue1" : "400.0000", "unit" : 1 }
in = { "idx" : 1, "nvalue" : 0, "svalue" : "25.0" }
homeassistant
status = online
in = { "idx" : 1, "nvalue" : 0, "svalue" : "25.0" }

You can see no out with AD...

Re: No data out domoticz

Posted: Monday 20 June 2022 15:53
by waltervl
When do you expect something in out?
For AD is only something send to MQTT if something changes in Domoticz by UI (eg you switch a switch). The command is send to MQTT AD and will be read by the hardware and it will switch the device.

So MQTT Autodiscover is following the AD protocol as linked to in the wiki.

But you can have both if you want to. 1 MQTT AD hardware gateway and a legacy MQTT hardware gateway.

Re: No data out domoticz

Posted: Monday 20 June 2022 16:06
by Filnet
If I understand, "AD gateway" don't send data to mqtt from others devices included in Dz like the other gateway?

Re: No data out domoticz

Posted: Monday 20 June 2022 16:11
by waltervl
I am not sure but I think it sends out only data for those devices that are managed/discovered by the MQTT AD gateway.
But you can test it yourself.

Re: No data out domoticz

Posted: Monday 20 June 2022 16:13
by Filnet
Ok. i am trying install zwave2mqtt todo this testing.

Thanks for your help