Page 1 of 1

Xiaomi Gateway on Synology

Posted: Sunday 22 October 2017 18:33
by Dragon548
Version: Domoticz Stable V3.8153 for DSM 6.1
Platform: Synology DS413J

Hi,

I have some problems about running the Xiaomi Gateway on Domoticz installed on my Synology DS413J.
Indeed, the Gateway does not appear in the list of devices.
I followed this tutorial: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)

You will find my log below:

Code: Select all

2017-10-21 16:05:04.148 New sensors allowed for 5 minutes...
2017-10-21 16:05:18.265 XiaomiGateway: will listen on 9898 for hardware id 2
2017-10-21 16:05:18.266 XiaomiGateway: Delaying worker startup...
2017-10-21 16:05:23.282 XiaomiGateway: Worker started...
2017-10-21 16:05:23.283 XiaomiGateway: Using 192.168.1.19 for local IP address. 
I also tried to install Domoticz on my PC (Windows) and everything works fine. The Gateway is recognized immediately.
Here are the logs I get with Domoticz installed on Windows:

Code: Select all

2017-10-21 13:49:36.980 New sensors allowed for 5 minutes...
2017-10-21 13:49:43.941 XiaomiGateway: will listen on 9898 for hardware id 2
2017-10-21 13:49:43.941 XiaomiGateway: Delaying worker startup...
2017-10-21 13:49:48.943 XiaomiGateway: Worker started...
2017-10-21 13:49:55.226 XiaomiGateway: New Switch Device Found (016d6b47)
2017-10-21 13:49:55.243 (Test) Light/Switch (Unknown)
2017-10-21 13:49:55.268 (Test) General/Voltage (Xiaomi Voltage)
2017-10-21 13:49:59.905 XiaomiGateway: New Gateway Found (0088ce01/Xiaomi RGB Gateway)
2017-10-21 13:49:59.916 (Test) Lighting Limitless/Applamp (Unknown)
2017-10-21 13:49:59.920 XiaomiGateway: New Switch Device Found (0088ce01)
2017-10-21 13:49:59.933 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:49:59.944 (Test) Light/Switch (Unknown)
2017-10-21 13:49:59.952 XiaomiGateway: New Switch Device Found (0088ce01)
2017-10-21 13:49:59.963 (Test) Light/Switch (Unknown)
2017-10-21 13:49:59.971 XiaomiGateway: New Switch Device Found (0088ce01)
2017-10-21 13:49:59.983 (Test) Light/Switch (Unknown)
2017-10-21 13:49:59.990 XiaomiGateway: New Switch Device Found (0088ce01)
2017-10-21 13:50:00.002 (Test) Light/Switch (Unknown)
2017-10-21 13:50:00.009 XiaomiGateway: New Switch Device Found (0088ce01)
2017-10-21 13:50:00.021 (Test) Light/Switch (Unknown)
2017-10-21 13:50:00.359 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:50:00.917 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:50:01.335 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:51:33.730 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:51:33.737 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:51:34.917 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:51:34.925 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:51:35.116 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:51:37.069 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:51:37.871 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:23.943 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:23.949 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:24.663 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:24.670 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:24.940 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:24.947 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:25.644 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:42.562 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:42.569 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:42.945 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:42.952 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:43.733 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:43.740 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:43.887 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:44.714 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:44.721 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:44.887 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:44.894 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:46.560 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:46.575 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:47.076 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:47.090 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:52:47.547 (Test) Lighting Limitless/Applamp (Xiaomi RGB Gateway)
2017-10-21 13:52:47.554 (Test) Lux (Xiaomi Gateway Lux)
2017-10-21 13:53:48.603 XiaomiGateway: unhandled model: sensor_motion.aq2
2017-10-21 13:53:55.509 New sensors allowed for 5 minutes...
So i don't understand why it don't work on the Synology.
Comparing the two logs I have the impression that on Synology, Domoticz attributes another IP to the Gateway. I do not know if the worry comes from that. (The log says: "Using 192.168.1.19 for local IP address.").

Can someone help me?

Thanking you in advance.

Re: Xiaomi Gateway on Synology

Posted: Sunday 22 October 2017 23:11
by pvm
Are your synology, windows machine and gateway on same subnet 192.168.1.xxx?

Re: Xiaomi Gateway on Synology

Posted: Tuesday 24 October 2017 20:45
by Dragon548
Yes there are on the same subnet.
The synology is 192.168.1.19
The Gateway is 192.168.1.2

Thanks to your analyse I realize that the Ip that Domoticz gives for the gateway corresponds to the ip of the Synology.
How to fix this?

Re: Xiaomi Gateway on Synology

Posted: Tuesday 24 October 2017 21:32
by pvm
I'm not an expert, but I understood (from another thread) the IP adres should be of you Domoticz machine, so that should be fine.
I also run Domoticz on my Synology, checked my logs, look identical but is followed by detecting the devices

Re: Xiaomi Gateway on Synology

Posted: Saturday 28 October 2017 17:38
by Dragon548
Thanks for your answer.
If it's working for you with the same configuration i don't know where can my problem come from?

Re: Xiaomi Gateway on Synology

Posted: Monday 30 October 2017 20:29
by AiROnE
Edit: My apologize ! I just add port 9898 in Syno Firewall and it work directly !!!!


I got the same issue on my system. Brand new Xiaomy Gateway updated to v149 (2.3.7)
My Domoticz is on Xpenology DSM 6.1, last jadahl version ( Was on Stable but try beta too) and same error for me :

2017-10-30 19:22:01.910 XiaomiGateway: will listen on 9898 for hardware id 5
2017-10-30 19:22:01.910 XiaomiGateway: Delaying worker startup...
2017-10-30 19:22:06.910 XiaomiGateway: Worker started...
2017-10-30 19:22:06.910 XiaomiGateway: Using 192.168.0.150 for local IP address.

192.168.0.150 is my Syno/domo IP.

Try with port 54321 also ... not worked . I nmap port 9898 on gateway and it's open.

Please help us :cry:

Re: Xiaomi Gateway on Synology

Posted: Wednesday 01 November 2017 10:49
by Dragon548
AiROnE is right !
It works fine with 9898 UDP open in Syno Firewall !
Thanks a lot !

EDIT : I speek to fast... All the devices are correctly recognized.
I don't see the motion sensor.
Does somebody have an idea ?