tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
285 stars 46 forks source link

[Bug] "Not at home" when using the WDS mode #225

Open gumileeev opened 2 years ago

gumileeev commented 2 years ago

Describe the issue

Thanks for your integration!

I use "Mikrotik router integration for Home Assistant" in a country house. There are 2 routers in my system: the main RBD53G-5HacD2HnD v7.4rc2 (testing) ip 192.168.4.1, and the additional 951G-2HnD v7.4 (stable) ip 192.168.4.38, to increase the area of ​​the wireless network. Only the main router has been added to the integration.

The routers are connected to each other via wifi. On the main router wlan setting: mode: ap bridge wds mode: static mesh wds default bridge: bridge A similar setting on the second router, the wifi name is the same. An active WDS interface appears.

When the device is connected to the main router via wifi, in the integration, in the attributes, I see: Interface: bridge, Source: wireless When the device is also connected to an additional router via wifi, in the integration, in the attributes, I see: Interface: bridge, Source: dhcp

This is true when the integration has restarted.

My problem: If the device reconnected from the main router to the additional one, or vice versa, the integration shows: NOT AT HOME The IP address does not change, it is fixed on the main router. If you restart the integration, the device will already be HOME, the problem is only at the moment of reconnection from one router to another.

The device is active on the local network. If you go to the interface of the main router, IP> DHCP server> Leases and look at the device that is connected to the additional router, it is online, bridge port: wds1

Please, is it possible to refine the integration, or perhaps you know what settings I should change on the router. This is the single biggest problem for me that I face when working with integration.

How to reproduce the issue

  1. Set up 2 routers in WDS mode
  2. Force the wifi device to switch from one router to another
  3. We see that the device has become "not at home" in the home assistant

Expected behavior

I was expecting the device to stay "Home", just change the "resource" attribute

Software versions

Diagnostics data

https://drive.google.com/file/d/1Y29uNfKPoNQybIlzHGrqTxXrozdBtrN3/view?usp=sharing

tomaae commented 2 years ago

you will need to give me more info regarding how it looks on mikrotik side. I dont have a way to test it reliably on my side.

I'm interested in both configuration and client list as shown under wireless on router which is added in HA. wireless client list when device is connected to main and again after it switches to repeater. please use "print terse" in cli where possible

tomaae commented 2 years ago

also, can you test with master first? There were some changes to how integration handles devices switching between sources.

gumileeev commented 2 years ago

I installed the "master" version, picked up a wifi device (smartphone) and started walking from router to router, observing changes in the home assistant and in the router interface, in the Leases tab. I started getting "Not at home" status again, but I noticed something odd:

1. If I first connect to the main router in the home assistant the status is "Home" (Interface: bridge, Source: wireless), in Leases: bridge port - wlan1 or wlan2. Then I connect to an additional router - I get the status "Not at home". in Leases: bridge port - wds1 If I turn off wifi on my smartphone and turn it on again after 2 minutes, within the radius of an additional router, the status of the device is "not at home". If I restart the integration - the device status appears "Home", (Interface: bridge, Source: dhcp). in Leases: bridge port - wds1

2. If I first connect to an additional router home assistant status "home" (Interface: bridge, Source: dhcp), in Leases: bridge port - wds1. Then I connect to the main router (I check on the router that the smartphone has connected to the main router again), in Leases: bridge port - wlan1 or wlan2 In the home assistant, the status remains "Home", the attributes remain from the additional router (Interface: bridge, Source: dhcp). I am 100% connected to the main router. The status in this case remains "Home"

Command results: /interface wireless print terse

Main router:

0 R name=wlan1 mtu=1500 l2mtu=1600 mac-address=48:8F:5A:B4:2F:B6 arp=enabled disable-running-check=no interface-type=IPQ4019 radio-name=Chateau-12 mode=ap-bridge ssid=dom.belingo.ru area= frequency-mode=regulatory-domain country=russia4 installation
=any antenna-gain=3 frequency=2437 band=2ghz-g/n channel-width=20/40mhz-XX secondary-frequency= scan-list=default wireless-protocol=802.11 rate-set=default supported-rates-b=1Mbps,2Mbps,5.5Mbps,11Mbps supported-rates-a/g=6Mbps,9Mbps,12Mbps,18Mbps,24
Mbps,36Mbps,48Mbps,54Mbps basic-rates-b=1Mbps basic-rates-a/g=6Mbps max-station-count=2007 distance=dynamic tx-power-mode=default vlan-mode=no-tag vlan-id=1 wds-mode=static-mesh wds-default-bridge=bridge wds-default-cost=100 wds-cost-range=50-150 wd
s-ignore-ssid=no update-stats-interval=disabled bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 wmm-support=enabled hide-ssid=no security-profile=default wps-mode=disabled station
-roaming=disabled disconnect-timeout=3s on-fail-retry-time=100ms preamble-mode=both compression=no allow-sharedkey=no station-bridge-clone-mac=00:00:00:00:00:00 ampdu-priorities=0 ampdu-subframes=default guard-interval=long ht-supported-mcs=mcs-0,mc
s-1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7,mcs-8,mcs-9,mcs-10,mcs-11,mcs-12,mcs-13,mcs-14,mcs-15,mcs-16,mcs-17,mcs-18,mcs-19,mcs-20,mcs-21,mcs-22,mcs-23 ht-basic-mcs=mcs-0,mcs-1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7 tx-chains=0,1 rx-chains=0,1 amsdu-limi
t=8192 amsdu-threshold=8192 tdma-debug=0 tdma-test-mode=0 tdma-hw-test-mode= tdma-override-rate=disabled tdma-override-size=0 tdma-period-size=2 nv2-queue-count=2 nv2-qos=default nv2-cell-radius=30 nv2-security=disabled nv2-preshared-key= nv2-mode=d
ynamic-downlink nv2-downlink-ratio=50 nv2-sync-secret= hw-retries=7 frame-lifetime=0 adaptive-noise-immunity=ap-and-client-mode hw-fragmentation-threshold=disabled hw-protection-mode=rts-cts hw-protection-threshold=0 frequency-offset=0 rate-selectio
n=advanced multicast-helper=full multicast-buffering=enabled keepalive-frames=enabled skip-dfs-channels=disabled
1   name=wlan1_guest mtu=1500 l2mtu=1600 mac-address=4A:8F:5A:B4:2F:B6 arp=reply-only disable-running-check=no interface-type=virtual master-interface=wlan1 mode=ap-bridge ssid=guest_wlan area= max-station-count=2007 vlan-mode=no-tag vlan-id=1 wds-m
ode=disabled wds-default-bridge=bridge-guest-wifi wds-default-cost=100 wds-cost-range=50-150 wds-ignore-ssid=no update-stats-interval=disabled bridge-mode=enabled default-authentication=yes default-forwarding=no default-ap-tx-limit=0 default-client-
tx-limit=0 wmm-support=enabled hide-ssid=no security-profile=profile-guest-wifi wps-mode=disabled station-roaming=disabled station-bridge-clone-mac=00:00:00:00:00:00 multicast-helper=default multicast-buffering=enabled keepalive-frames=enabled
2 R name=wlan2 mtu=1500 l2mtu=1600 mac-address=48:8F:5A:B4:2F:B7 arp=enabled disable-running-check=no interface-type=IPQ4019 radio-name=488F5AB42FB7 mode=ap-bridge ssid=dom.belingo.ru area= frequency-mode=regulatory-domain country=russia3 installati
on=any antenna-gain=6 frequency=auto band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX secondary-frequency= scan-list=default wireless-protocol=802.11 rate-set=default supported-rates-a/g=6Mbps,9Mbps,12Mbps,18Mbps,24Mbps,36Mbps,48Mbps,54Mbps basic-rat
es-a/g=6Mbps max-station-count=2007 distance=dynamic tx-power-mode=default vlan-mode=no-tag vlan-id=1 wds-mode=disabled wds-default-bridge=none wds-default-cost=100 wds-cost-range=50-150 wds-ignore-ssid=no update-stats-interval=disabled bridge-mode=
enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 wmm-support=enabled hide-ssid=no security-profile=default wps-mode=disabled station-roaming=disabled disconnect-timeout=10s on-fail-retry-time=
100ms preamble-mode=both compression=no allow-sharedkey=no station-bridge-clone-mac=00:00:00:00:00:00 ampdu-priorities=0 ampdu-subframes=default guard-interval=long ht-supported-mcs=mcs-0,mcs-1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7,mcs-8,mcs-9,mcs-10,
mcs-11,mcs-12,mcs-13,mcs-14,mcs-15,mcs-16,mcs-17,mcs-18,mcs-19,mcs-20,mcs-21,mcs-22,mcs-23 ht-basic-mcs=mcs-0,mcs-1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7 vht-supported-mcs=mcs0-9,mcs0-9,mcs0-9 vht-basic-mcs=mcs0-7 tx-chains=0,1 rx-chains=0,1 amsdu-lim
it=8192 amsdu-threshold=8192 tdma-debug=0 tdma-test-mode=0 tdma-hw-test-mode= tdma-override-rate=disabled tdma-override-size=0 tdma-period-size=2 nv2-queue-count=2 nv2-qos=default nv2-cell-radius=30 nv2-security=disabled nv2-preshared-key= nv2-mode=
dynamic-downlink nv2-downlink-ratio=50 nv2-sync-secret= hw-retries=9 frame-lifetime=0 adaptive-noise-immunity=ap-and-client-mode hw-fragmentation-threshold=disabled hw-protection-mode=rts-cts hw-protection-threshold=0 frequency-offset=0 rate-selecti
on=advanced multicast-helper=full multicast-buffering=enabled keepalive-frames=enabled skip-dfs-channels=disabled
3   name=wlan2_guest mtu=1500 l2mtu=1600 mac-address=4A:8F:5A:B4:2F:B7 arp=reply-only disable-running-check=no interface-type=virtual master-interface=wlan2 mode=ap-bridge ssid=guest_wlan area= max-station-count=2007 vlan-mode=no-tag vlan-id=1 wds-m
ode=disabled wds-default-bridge=bridge-guest-wifi wds-default-cost=100 wds-cost-range=50-150 wds-ignore-ssid=no update-stats-interval=disabled bridge-mode=enabled default-authentication=no default-forwarding=no default-ap-tx-limit=0 default-client-t
x-limit=0 wmm-support=enabled hide-ssid=no security-profile=profile-guest-wifi wps-mode=disabled station-roaming=disabled station-bridge-clone-mac=00:00:00:00:00:00 multicast-helper=default multicast-buffering=enabled keepalive-frames=enabled

Additional router:

0 R name=wlan1 mtu=1500 l2mtu=1600 mac-address=6C:3B:6B:51:0F:0F arp=enabled disable-running-check=no interface-type=Atheros AR9300 radio-name=RB951G-2HnD mode=ap-bridge ssid=dom.belingo.ru area= frequency-mode=regulatory-domain country=russia4 inst
allation=any antenna-gain=3 frequency=2437 band=2ghz-g/n channel-width=20/40mhz-XX secondary-frequency= scan-list=default wireless-protocol=any rate-set=default supported-rates-b=1Mbps,2Mbps,5.5Mbps,11Mbps supported-rates-a/g=6Mbps,9Mbps,12Mbps,18Mb
ps,24Mbps,36Mbps,48Mbps,54Mbps basic-rates-b=1Mbps basic-rates-a/g=6Mbps max-station-count=2007 distance=dynamic tx-power-mode=default noise-floor-threshold=default nv2-noise-floor-offset=default vlan-mode=no-tag vlan-id=1 wds-mode=static-mesh wds-d
efault-bridge=bridge1 wds-default-cost=100 wds-cost-range=50-150 wds-ignore-ssid=no update-stats-interval=disabled bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 wmm-support=enab
led hide-ssid=no security-profile=default wps-mode=disabled station-roaming=disabled disconnect-timeout=3s on-fail-retry-time=100ms preamble-mode=both compression=no allow-sharedkey=no station-bridge-clone-mac=00:00:00:00:00:00 ampdu-priorities=0 am
pdu-subframes=default guard-interval=long ht-supported-mcs=mcs-0,mcs-1,mcs-2,mcs-3,mcs-4,mcs-5,mcs-6,mcs-7,mcs-8,mcs-9,mcs-10,mcs-11,mcs-12,mcs-13,mcs-14,mcs-15,mcs-16,mcs-17,mcs-18,mcs-19,mcs-20,mcs-21,mcs-22,mcs-23 ht-basic-mcs=mcs-0,mcs-1,mcs-2,m
cs-3,mcs-4,mcs-5,mcs-6,mcs-7 tx-chains=0,1 rx-chains=0,1 amsdu-limit=8192 amsdu-threshold=8192 tdma-debug=0 tdma-test-mode=0 tdma-hw-test-mode= tdma-override-rate=disabled tdma-override-size=0 tdma-period-size=2 nv2-queue-count=2 nv2-qos=default nv2
-cell-radius=30 nv2-security=disabled nv2-preshared-key= nv2-mode=dynamic-downlink nv2-downlink-ratio=50 nv2-sync-secret= hw-retries=7 frame-lifetime=0 adaptive-noise-immunity=ap-and-client-mode hw-fragmentation-threshold=disabled hw-protection-mode
=rts-cts hw-protection-threshold=0 frequency-offset=0 rate-selection=advanced multicast-helper=full multicast-buffering=enabled keepalive-frames=enabled skip-dfs-channels=disabled
tomaae commented 1 year ago

Can you redo test 1. again using debug with master branch and check what source the entity reports in each step? Also run /interface/wireless/registration-table/print terse on main router in each step.

I can see how test 2. would work all the time. but looks like there still may be problem with interface switching.

gumileeev commented 1 year ago

Sorry for the delay in reply. As soon as I arrive on the spot, I will immediately test and give an answer. It will take some time. Tell me how to install the current "master" version? I do a downgrade, then do a "master" install again. Am I reaching the current version correctly?

tomaae commented 1 year ago

In HACS, chose the integration, click 3 dots and redownload: image Then choose master from the list and click download image You will need to restart HA of course.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

gumileeev commented 1 year ago

Unfortunately, I still haven't been to the house to check the full work. :( I have remote access to my router and home assistant . I updated the version to 2.1.1. Remotely I was able to do another check: All my wireless devices were connected to "router 1" (master). In the home assistant, in the sensor attributes appear as "Interface wlan1, Source wireless". In the router, in the "IP - DHCP Server - Leases" device attributes (bridge port) have the value "wlan1". I reboot "router 1" (master). After that, devices that were close to "router 2" (secondary) are connected to "router 2". In the home assistant, devices that are connected to "router 2" become "out of home". I go on "router 1" in "IP - DHCP Server - Leases" attributes of devices (bridge port) that connected to "router 2" have the value "wds1". I've been waiting for a while, but the devices continue to be "not at home". I go to home assistant, integrations, "Mikrotik Router", reload the integration. The result - devices connected to "router 2" are now "home", and the attributes of the sensor are "Interface bridge, Source dhcp". Is it possible to make it work without reloading the integration?

tomaae commented 1 year ago

did you installed master as mentioned above?

gumileeev commented 1 year ago

did you installed master as mentioned above?

I continue the experiment. I went to HACS - integrations, chose Mikrotik Router integration. I installed the "master" version (0af7bc1). Restarted home assistant. In a previous post, I indicated that half of my devices connected to router 2 (secondary).

I enter the command "/interface/wireless/registration-table/print terse"

Router 1 (master): [admin@MikroTik] > /interface/wireless/registration-table/print terse 0 interface=wlan1 mac-address=44:23:7C:71:D1:CC ap=no wds=no bridge=no 1 interface=wlan1 mac-address=4C:11:AE:00:31:4D ap=no wds=no bridge=no 2 interface=wlan1 mac-address=4C:11:AE:00:37:B4 ap=no wds=no bridge=no 3 interface=wlan1 mac-address=4C:11:AE:00:2B:55 ap=no wds=no bridge=no 4 interface=wlan1 mac-address=B4:E6:2D:7F:A9:6A ap=no wds=no bridge=no 5 interface=wlan1 mac-address=84:0D:8E:66:17:C0 ap=no wds=no bridge=no 6 interface=wlan1 mac-address=98:F4:AB:FB:44:A7 ap=no wds=no bridge=no 7 interface=wlan1 mac-address=B0:02:47:49:5C:96 ap=no wds=no bridge=no 8 interface=wlan1 mac-address=B8:87:6E:2A:06:40 ap=no wds=no bridge=no 9 interface=wlan1 mac-address=CC:50:E3:CA:D6:8E ap=no wds=no bridge=no 10 interface=wlan2 mac-address=04:CF:8C:A9:6C:A1 ap=no wds=no bridge=no 11 interface=wlan1 mac-address=28:6C:07:F7:6A:5A ap=no wds=no bridge=no 12 interface=wlan1 mac-address=6C:3B:6B:51:0F:0F ap=yes wds=yes bridge=no (this is a secondary router) 13 interface=wlan1 mac-address=CC:50:E3:CA:D5:8D ap=no wds=no bridge=no 14 interface=wlan1 mac-address=04:B1:67:65:EA:38 ap=no wds=no bridge=no

Router 2 (secondary): [admin@MikroTik2] > /interface/wireless/registration-table/print terse 0 interface=wlan1 mac-address=CC:50:E3:CA:E1:81 ap=no wds=no bridge=no 1 interface=wlan1 mac-address=CC:50:E3:CA:57:3D ap=no wds=no bridge=no 2 interface=wlan1 mac-address=CC:50:E3:CA:61:DC ap=no wds=no bridge=no 3 interface=wlan1 mac-address=84:CC:A8:90:75:F6 ap=no wds=no bridge=no 4 interface=wlan1 mac-address=84:CC:A8:91:6E:2A ap=no wds=no bridge=no 5 interface=wlan1 mac-address=84:CC:A8:91:71:59 ap=no wds=no bridge=no 6 interface=wlan1 mac-address=84:CC:A8:90:F9:A5 ap=no wds=no bridge=no 7 interface=wlan1 mac-address=C4:5B:BE:4A:51:26 ap=no wds=no bridge=no 8 interface=wlan1 mac-address=E0:98:06:85:79:32 ap=no wds=no bridge=no 9 interface=wlan1 mac-address=98:F4:AB:FB:B2:F7 ap=no wds=no bridge=no 10 interface=wlan1 mac-address=4C:11:AE:00:2A:8D ap=no wds=no bridge=no 11 interface=wlan1 mac-address=48:8F:5A:B4:2F:B6 ap=yes wds=yes bridge=no (this is the master router) 12 interface=wlan1 mac-address=9C:BC:F0:3E:5F:C9 ap=no wds=no bridge=no

I check device sensor in home assistant 98:F4:AB:FB:B2:F7 (Home): Source type: router IP: 192.168.4.8 MAC: 98:F4:AB:FB:B2:F7 Hostname: pzem004_v3 interface:bridge source: dhcp Last seen: Now

I reboot "router 2" (secondary). Devices are reconnected to "router 1" (master).

I enter the command "/interface/wireless/registration-table/print terse"

"Router 1" (master): [admin@MikroTik] > /interface/wireless/registration-table/print terse 0 interface=wlan1 mac-address=44:23:7C:71:D1:CC ap=no wds=no bridge=no 1 interface=wlan1 mac-address=4C:11:AE:00:31:4D ap=no wds=no bridge=no 2 interface=wlan1 mac-address=4C:11:AE:00:37:B4 ap=no wds=no bridge=no 3 interface=wlan1 mac-address=4C:11:AE:00:2B:55 ap=no wds=no bridge=no 4 interface=wlan1 mac-address=B4:E6:2D:7F:A9:6A ap=no wds=no bridge=no 5 interface=wlan1 mac-address=84:0D:8E:66:17:C0 ap=no wds=no bridge=no 6 interface=wlan1 mac-address=98:F4:AB:FB:44:A7 ap=no wds=no bridge=no 7 interface=wlan1 mac-address=B0:02:47:49:5C:96 ap=no wds=no bridge=no 8 interface=wlan1 mac-address=B8:87:6E:2A:06:40 ap=no wds=no bridge=no 9 interface=wlan1 mac-address=CC:50:E3:CA:D6:8E ap=no wds=no bridge=no 10 interface=wlan2 mac-address=04:CF:8C:A9:6C:A1 ap=no wds=no bridge=no 11 interface=wlan1 mac-address=28:6C:07:F7:6A:5A ap=no wds=no bridge=no 12 interface=wlan1 mac-address=CC:50:E3:CA:D5:8D ap=no wds=no bridge=no 13 interface=wlan1 mac-address=04:B1:67:65:EA:38 ap=no wds=no bridge=no 14 interface=wlan1 mac-address=CC:50:E3:CA:57:3D ap=no wds=no bridge=no 15 interface=wlan1 mac-address=84:CC:A8:90:75:F6 ap=no wds=no bridge=no 16 interface=wlan1 mac-address=84:CC:A8:90:F9:A5 ap=no wds=no bridge=no 17 interface=wlan1 mac-address=84:CC:A8:91:6E:2A ap=no wds=no bridge=no 18 interface=wlan1 mac-address=84:CC:A8:91:71:59 ap=no wds=no bridge=no 19 interface=wlan1 mac-address=4C:11:AE:00:2A:8D ap=no wds=no bridge=no 20 interface=wlan1 mac-address=E0:98:06:85:79:32 ap=no wds=no bridge=no 21 interface=wlan1 mac-address=C4:5B:BE:4A:51:26 ap=no wds=no bridge=no 22 interface=wlan1 mac-address=9C:BC:F0:3E:5F:C9 ap=no wds=no bridge=no 23 interface=wlan1 mac-address=CC:50:E3:CA:E1:81 ap=no wds=no bridge=no 24 interface=wlan1 mac-address=CC:50:E3:CA:61:DC ap=no wds=no bridge=no 25 interface=wlan1 mac-address=98:F4:AB:FB:B2:F7 ap=no wds=no bridge=no 26 interface=wlan1 mac-address=6C:3B:6B:51:0F:0F ap=yes wds=yes bridge=no (this is a secondary router) Router 2 (secondary): [admin@MikroTik2] > /interface/wireless/registration-table/print terse 0 interface=wlan1 mac-address=48:8F:5A:B4:2F:B6 ap=yes wds=yes bridge=no (This is "router 1" master)

I go to the "Router 1" interface, check the IP - DHCP server - Leases: All devices in the "bridge port" column show the value "wlan1"

I wait 10 minutes, hoping that the home assistant can update the data. But nothing is updated.

Checking device sensor 98:F4:AB:FB:B2:F7 (at home): Source type: router IP: 192.168.4.8 MAC: 98:F4:AB:FB:B2:F7 Hostname: pzem004_v3 interface:bridge source: dhcp Last seen: Now

the sensor says that the device is connected to "router 2", but it is not.

I restart the integration.

Checking device sensor 98:F4:AB:FB:B2:F7 (at home): Source type: router IP: 192.168.4.8 MAC: 98:F4:AB:FB:B2:F7 Hostname: pzem004_v3 Interface: wlan1 Source: wireless Last seen: Now

The sensor is now showing the correct information.

While I was experimenting - a gardener appeared in the house, at first I saw that he was connected to "router 1". The sensor became "at home". Then I saw that it reconnected to "router 2", in IP - DHCP server - Leases: Changed to "wds" in the "bridge port" column. The device sensor in the home assistant has become (not at home). I looked at "router 2": [admin@MikroTik2] > /interface/wireless/registration-table/print terse 0 interface=wlan1 mac-address=48:8F:5A:B4:2F:B6 ap=yes wds=yes bridge=no (this is a gardener) 1 interface=wlan1 mac-address=04:B1:67:65:EA:38 ap=no wds=no bridge=no (this is router 1) It turns out that when moving from one router to another, the status changes to "not at home". However, after some time, the status became "home" again and with the correct attributes "Interface: bridge, Source: dhcp). And after some time, the sensor again became "not at home", although the devices are still connected to "router 2". The gardener 100% did not disappear from the visibility zone of the routers during this time. I am attaching the history of the sensor. Maybe this will tell you something:

Not at home 12:43:01 - 3 minutes ago (connected to router 2 here) Houses 12:42:31 - 3 minutes ago (connected to router 2 here) Not at home 12:37:46 - 8 minutes ago (connected to router 2 here) Houses 12:33:31 - 12 minutes ago (connected to router 2 here) Not at home 12:22:15 - 23 minutes ago (connected to router 2 here) Unavailable 12:22:02 - 24 minutes ago (at this moment, I saw that the device connected to router 2) Houses 11:21:33 - 1 hour ago (here the device was connected to router 1)

tomaae commented 1 year ago

that is a strange behaviour. I will look into a code if I can figure out something.

gumileeev commented 1 year ago

Can I somehow help in solving this problem? For me this is a big problem. If I use only 1 router, some smart home devices do not catch the Wi-Fi signal well and sometimes disappear. If I use 2 routers - I can't work with home automation :( Because on the main router in the leases, the movements in the interface are displayed correctly, but for some reason the information is not updated in the integration.

tomaae commented 1 year ago

Sorry, I'm not able to work on this due to health issues. I'm spending all time I'm able to work on my IRL job. Once I'm fine, I will get back to it.

gumileeev commented 1 year ago

I hope you'll get better soon!