Xiaomi Gateway - strange IP address in Domoticz Topic is solved

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

Moderator: leecollings

Post Reply
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Xiaomi Gateway - strange IP address in Domoticz

Post 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
ak97
Posts: 39
Joined: Saturday 03 February 2018 18:42
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Xiaomi Gateway - strange IP address in Domoticz

Post by ak97 »

Using 172.24.1.137 for local IP address
i.e.
172.24.1.137 - address of your domoticz server
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: Xiaomi Gateway - strange IP address in Domoticz

Post 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"
Kurtsejr
Posts: 24
Joined: Monday 04 December 2017 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Danmark
Contact:

Re: Xiaomi Gateway - strange IP address in Domoticz

Post 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
User avatar
FireWizard
Posts: 1747
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Xiaomi Gateway - strange IP address in Domoticz

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Xiaomi Gateway - strange IP address in Domoticz

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests