i have been using the default MQTT gateway for ages since i need it for domoticz-homebridge-homekit.
if i disable it my homekit devices(which are domoticz devices) do not work.
I lately also enabled MQTT AD because i needed it to add some temperature sensors in Domoticz.
everything works like it should. however when i disable the native MQTT gateway i still loose the homekit functionality.
i always thought MQTT AD was a 1:1 replacement for the default MQTT but this seems this is not true.
Can anybody confirm you still need both for complete functionality.
If not what do i need to change in the MQTT AD plugin to make it work
question regarding MQTT AD
Moderators: leecollings, remb0
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: question regarding MQTT AD
You can use MQTT and The MQTT AD hardware gateways next to each other without issues. They are for different use cases so no replacement.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
Gravityz
- Posts: 652
- Joined: Wednesday 16 December 2015 19:13
- Target OS: NAS (Synology & others)
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: question regarding MQTT AD
Great, thanks.
that is exactly what i am experiencing.
I had a little project to turn an ordinary temp/humidity meter with RS485 into a smart one.
I used ESPhome because it has native modbus support.
was real easy to do and i used MQTT to get the data(with the help of MQTTAD) into domoticz.
First time it reported a combined temp/humidity sensor like i wanted.
after playing with ESPhome and adding a lot of other extra sw sensors(cpu temp, wifi signal) domoticz started to recognize it as 2 seperate devices.
do not know why. i think if you send multiple mqtt messages from the same device at the same time it seems to think it is one device
by adding more messages it probably got delayed and seperated the devices.
looking at the mqtt string send out it looks the same.
anyway i deleted the other sensors and now it is back to receiving 1 unit with temp/humidity.
you get the same behaviour when starting up domoticz. the first messages are interpreted as seperate devices but once domoticz is runnnig it is receiving one device with temp/humidity.
that is exactly what i am experiencing.
I had a little project to turn an ordinary temp/humidity meter with RS485 into a smart one.
I used ESPhome because it has native modbus support.
was real easy to do and i used MQTT to get the data(with the help of MQTTAD) into domoticz.
First time it reported a combined temp/humidity sensor like i wanted.
after playing with ESPhome and adding a lot of other extra sw sensors(cpu temp, wifi signal) domoticz started to recognize it as 2 seperate devices.
do not know why. i think if you send multiple mqtt messages from the same device at the same time it seems to think it is one device
by adding more messages it probably got delayed and seperated the devices.
looking at the mqtt string send out it looks the same.
anyway i deleted the other sensors and now it is back to receiving 1 unit with temp/humidity.
you get the same behaviour when starting up domoticz. the first messages are interpreted as seperate devices but once domoticz is runnnig it is receiving one device with temp/humidity.
waltervl wrote: Sunday 02 November 2025 1:17 You can use MQTT and The MQTT AD hardware gateways next to each other without issues. They are for different use cases so no replacement.
-
FlyingDomotic
- Posts: 463
- Joined: Saturday 27 February 2016 0:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Contact:
Re: question regarding MQTT AD
Lot of physical devices provide multiple information (for example, presence detector often also return luminosity and temperature in addition to presence).
As of now, Domoticz doesn't have composite devices, but allows you to create different devices with their associated widgets. In my example, you'll got a presence detection device (on/off), a temperature device (°C or °F) and a luminosity device (lux) from MQTT AD (as AD describes these 3 devices separately).
These 3 devices will be available and displayed in Domoticz. As you'll choose (and/or may modify) their names, nothing prevents you to use a root name (ie My detector presence, my detector temp and my detector luminosity).
I you really want to have all information in the same widget, you may even use additional layers (as Dashtastic) and build your own.
As of now, Domoticz doesn't have composite devices, but allows you to create different devices with their associated widgets. In my example, you'll got a presence detection device (on/off), a temperature device (°C or °F) and a luminosity device (lux) from MQTT AD (as AD describes these 3 devices separately).
These 3 devices will be available and displayed in Domoticz. As you'll choose (and/or may modify) their names, nothing prevents you to use a root name (ie My detector presence, my detector temp and my detector luminosity).
I you really want to have all information in the same widget, you may even use additional layers (as Dashtastic) and build your own.
-
Gravityz
- Posts: 652
- Joined: Wednesday 16 December 2015 19:13
- Target OS: NAS (Synology & others)
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: question regarding MQTT AD
thanks. i do not want everything in 1 device everytime.
i only noticed that MQTT AD is a bit smart. if it receives temp and humidity at the same time it figures it is an existing temp/humidity device.
probably because i added extra devices like cpu temp and wifi signal MQTT AD did not recognize it as an existing real world device.
everything working now.
i only noticed that MQTT AD is a bit smart. if it receives temp and humidity at the same time it figures it is an existing temp/humidity device.
probably because i added extra devices like cpu temp and wifi signal MQTT AD did not recognize it as an existing real world device.
everything working now.
Who is online
Users browsing this forum: No registered users and 1 guest