Page 1 of 1

Xiaomi Gateway - strange IP address in Domoticz

Posted: Tuesday 03 December 2019 21:20
by Kurtsejr
This is really strange!

I have just received a ”Mi Smart Sensor Set” and installed the Gateway on my network. According to the “Mi APP” on my phone the Gateway was, via WiFi, assigned to IP address 172.24.1.163.
So I went to Domoticz, select Hardware in the menu and added, the Xiaomi Gateway, portnumber 9898:
26 Xiaomi Gateway Ja Xiaomi Gateway 172.24.1.163 9898 Deaktiveret

Then I looked into Domoticz logfile and found:
2019-12-03 21:06:09.918 Status: XiaomiGateway (ID=26): Delaying worker startup...
2019-12-03 21:06:14.919 Status: XiaomiGateway (ID=26): Selected as main Gateway
2019-12-03 21:06:14.919 Status: XiaomiGateway (ID=26): Worker started...
2019-12-03 21:06:14.919 Status: XiaomiGateway (ID=26): Using 172.24.1.137 for local IP address.

Strange …… why does Domoticz select “172.24.1.137”, I then tried to change my IP address under Hardware steup, but always Domoticz select “172.24.1.137” – as if this address was hard encoded in the software. I do of cause not get any data in Domoticz from the Gateway, also if I allow a 5 minutes sample period.
My Xiaomi Gateway is version DGNWG05LM.
My Domoticz is version 4.11528

Please help

Re: Xiaomi Gateway - strange IP address in Domoticz

Posted: Wednesday 04 December 2019 17:55
by ak97
Using 172.24.1.137 for local IP address
i.e.
172.24.1.137 - address of your domoticz server

Re: Xiaomi Gateway - strange IP address in Domoticz

Posted: Wednesday 04 December 2019 19:50
by Kurtsejr
My domoticz server is 172.24.1.170 and not 172.24.1.137, I dont know where the "137" are comming from - my Xiaomi GW is on "163"

Re: Xiaomi Gateway - strange IP address in Domoticz

Posted: Wednesday 04 December 2019 19:54
by Kurtsejr
SOLVED

Ah just checked again, my Domoricz server is on an Rasperry Pi and it seems to use both Ethernet and WiFi - and my WiFi modules address is 172.24.1.137
So yes it's a LOCAL IP

Re: Xiaomi Gateway - strange IP address in Domoticz

Posted: Wednesday 04 December 2019 20:00
by FireWizard
Hi,

If you do a network scan, e.g with nmap (nmap -sP 172.24.1.0/24) or use a tool, such as "Angry IP Scanner" from your desktop or laptop.
Check the results.

Regards

Re: Xiaomi Gateway - strange IP address in Domoticz

Posted: Wednesday 04 December 2019 20:01
by waaren
Kurtsejr wrote: Wednesday 04 December 2019 19:50 My domoticz server is 172.24.1.170 and not 172.24.1.137, I dont know where the "137" are comming from - my Xiaomi GW is on "163"
What do you see when you enter

Code: Select all

sudo ifconfig 
sudo arp
sudo ip neigh

from the CLI ?
If you get a command not found do a sudo apt install net-tools first.