Aqara zigbee doorsensors versus homekit

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
remko2000
Posts: 182
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Aqara zigbee doorsensors versus homekit

Post by remko2000 »

I've noticed that the ZigBee door sensors in Domoticz aren't transmitting their status correctly to HomeKit via HomeBridge. Only when I manually shut down and restart HomeKit does the status transmit correctly. IIn domoticz the status is updated immediately.
Is there anything I can do about this? It's not helpful for security if this takes minutes. My Zwave door contacts work instantly in HomeKit (via Domoticz/HomeBridge).

I've read it might be a mqtt setting?
This are my settings in de domoticzplugin homebridge:

Code: Select all

{
    "name": "Domoticz",
    "server": "xxxxxxxx",
    "port": "8080",
    "roomid": 2,
    "mqtt": true,
    "ssl": false,
    "dimFix": 0,
    "legacyBlinds": 0,
    "platform": "eDomoticz"
}
Setting in zigbee2mqtt: Homeassistant discovery topic ' zigbeeAD' (basetopic = zigbee2MQTT)
Setting in Domoticz: MQQT for zigbee (autodiscovery client gateway with lan interface) 'zigbeeAD'
remko2000
Posts: 182
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Aqara zigbee doorsensors versus homekit

Post by remko2000 »

Someone have an idea? I'm increasingly thinking it's an MQTT problem. Zwavemqtt works instantly between Domoticz and HomeKit/HomeBridge.

In Domoticz, I refer to 'zigbeeAD' under auto discovery.

The MQTT settings for zigbee2mqtt (YAML file):

mqtt:
base_topic: zigbee2MQTT
server: mqqt://10.0.1.122

I suspect that MQTT in/out isn't working properly, causing new ZigBee devices to be properly discovered in Domoticz, but the sensorstatus aren't being instantly passed on via MQTT. Does anyone have any clues to a solution?
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Aqara zigbee doorsensors versus homekit

Post by waltervl »

You have to check the messages with an application like MQTT Explorer.
And are you on the latest Zigbee2mqtt version?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
remko2000
Posts: 182
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Aqara zigbee doorsensors versus homekit

Post by remko2000 »

yes I'm on the latest version (I've struggling to update but suceeded).I'll try this days to monitoring my mqtttraffic with mqtt explorer.
remko2000
Posts: 182
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Aqara zigbee doorsensors versus homekit

Post by remko2000 »

I've monitoring the traffic of one of my zigbee doorsensor (name is 0x00158d000ad849f6)
At topic ' zigbee2MQTT/0x00158d000ad849f6' I get back when I open the door:

Code: Select all

{"battery":100,"contact":true,"device_temperature":23,"linkquality":131,"power_outage_count":12,"trigger_count":0,"voltage":3025}
Is this right?
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Aqara zigbee doorsensors versus homekit

Post by waltervl »

Depends on the config topic for this device. I would expect a state topic to be defined
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
remko2000
Posts: 182
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Aqara zigbee doorsensors versus homekit

Post by remko2000 »

No seperate state topic only 'contact: true/false'. Strange thing is that the status of this sensor in domoticz instant change when open/close door but in homekit and homebridge I have to refresh before the status changes. How can I solve this?
remko2000
Posts: 182
Joined: Thursday 28 December 2017 14:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Broek op Langedijk
Contact:

Re: Aqara zigbee doorsensors versus homekit

Post by remko2000 »

It's really annoying that ZigBee devices don't update directly in HomeKit/HomeBridge.
Communication between ZigBee2MQTT and Domoticz is instant but to homekit and homebridge not (I have to refresh before the correct status is displayed).
setting zigbee2mqtt
setting zigbee2mqtt
Scherm­afbeelding 2025-10-12 om 15.50.12.png (157.74 KiB) Viewed 44 times
mqtt settings
mqtt settings
Scherm­afbeelding 2025-10-12 om 15.51.49.png (138.02 KiB) Viewed 43 times
domoticz
domoticz
Scherm­afbeelding 2025-10-12 om 15.53.22.png (198.1 KiB) Viewed 42 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest