No data out domoticz

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
Filnet
Posts: 23
Joined: Tuesday 06 March 2018 13:55
Target OS: -
Domoticz version:
Contact:

No data out domoticz

Post 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
User avatar
waltervl
Posts: 5846
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: No data out domoticz

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Filnet
Posts: 23
Joined: Tuesday 06 March 2018 13:55
Target OS: -
Domoticz version:
Contact:

Re: No data out domoticz

Post 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...
User avatar
waltervl
Posts: 5846
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: No data out domoticz

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Filnet
Posts: 23
Joined: Tuesday 06 March 2018 13:55
Target OS: -
Domoticz version:
Contact:

Re: No data out domoticz

Post by Filnet »

If I understand, "AD gateway" don't send data to mqtt from others devices included in Dz like the other gateway?
User avatar
waltervl
Posts: 5846
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: No data out domoticz

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Filnet
Posts: 23
Joined: Tuesday 06 March 2018 13:55
Target OS: -
Domoticz version:
Contact:

Re: No data out domoticz

Post by Filnet »

Ok. i am trying install zwave2mqtt todo this testing.

Thanks for your help
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest