Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


davidcole

6099 posts

Uber Geek
+1 received by user: 1465

Trusted

#272532 30-Jun-2020 09:23
Send private message

Anyone seeing this?  On the community, or your own controller?

 

Have a device, (2 iphones and iPad), one has left the house, the other 2 Ive turned wifi off) they disconnect from the wireless but still show as on the lan.

 

Show up in their UI and in the api.

 

I'm trying to use it for presence detection.





Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


Create new topic
fearandloathing
537 posts

Ultimate Geek
+1 received by user: 206

ID Verified
Lifetime subscriber

  #2514907 30-Jun-2020 09:27
Send private message

I see this from time to time, not sure the last time I saw this but I haven’t been looking. I on the latest stable controller.



cyril7
9075 posts

Uber Geek
+1 received by user: 2499

ID Verified
Trusted
Subscriber

  #2514913 30-Jun-2020 09:42
Send private message

Hi, I presume its related to wireless is seen by wireless association, so when dis associated then its gone, where as wired will be taken from the arp table and waiting to age out.

 

Cyril


muppet
2644 posts

Uber Geek
+1 received by user: 1662

Trusted

  #2514915 30-Jun-2020 09:46
Send private message

It usually takes ~5 minutes for my Unifi controller to change a device into the disconnected state.  So there's usually a 5 minute delay before my home assistant will turn the alarm on when it sees all our devices have left the house.

 

I've not managed to figure out how to change this.  The main thing is though as soon as you connect, it updates, so you can use this to trigger turning the alarm off.




davidcole

6099 posts

Uber Geek
+1 received by user: 1465

Trusted

  #2514969 30-Jun-2020 11:48
Send private message

muppet:

 

It usually takes ~5 minutes for my Unifi controller to change a device into the disconnected state.  So there's usually a 5 minute delay before my home assistant will turn the alarm on when it sees all our devices have left the house.

 

I've not managed to figure out how to change this.  The main thing is though as soon as you connect, it updates, so you can use this to trigger turning the alarm off.

 

 

I'm sure I left it longer than that....and certainly the wife was away from the house longer than that this morning.

 

What controller version?

 

I was trying presence in openhab.  Not sure if HA has something else to figure out it's changed from wireless to wired and therefore says it's away

 

 





Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


Yoban
453 posts

Ultimate Geek
+1 received by user: 86


  #2514972 30-Jun-2020 11:53
Send private message

Have a read through this for HA...seems to be a bug as outlined in the post 12-Jan.

 

"The bug was that when the device connects to a Unifi AP it’s MAC gets written to the data file as “wireless”. As soon as the device roams off the Unifi AP and connects to the ASUS router it is then reported as wired so it stops being tracked and is always “not_home”."

 

edit: Just noted you are on openhab..


fearandloathing
537 posts

Ultimate Geek
+1 received by user: 206

ID Verified
Lifetime subscriber

  #2514976 30-Jun-2020 12:23
Send private message

Yoban:

Have a read through this for HA...seems to be a bug as outlined in the post 12-Jan.


"The bug was that when the device connects to a Unifi AP it’s MAC gets written to the data file as “wireless”. As soon as the device roams off the Unifi AP and connects to the ASUS router it is then reported as wired so it stops being tracked and is always “not_home”."


edit: Just noted you are on openhab..



That reads if the device is roaming to a SSID on the Asus router, so no surprise there is issues.

 
 
 

Shop now on AliExpress (affiliate link).
davidcole

6099 posts

Uber Geek
+1 received by user: 1465

Trusted

  #2515024 30-Jun-2020 13:02
Send private message

Yoban:

 

Have a read through this for HA...seems to be a bug as outlined in the post 12-Jan.

 

"The bug was that when the device connects to a Unifi AP it’s MAC gets written to the data file as “wireless”. As soon as the device roams off the Unifi AP and connects to the ASUS router it is then reported as wired so it stops being tracked and is always “not_home”."

 

edit: Just noted you are on openhab..

 

 

 

 

I have both (greedy).  HA didnt pick up my wife leaving after adding the unifi integration earlier.

 

Seems both are doing it.  When you look at the details of the off site device, is_wired is true





Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


davidcole

6099 posts

Uber Geek
+1 received by user: 1465

Trusted

  #2515037 30-Jun-2020 13:30
Send private message

Downstairs UAP-AC-Lite after turning off the wifi

 

```

 

Tue Jun 30 13:20:07 2020 daemon.info hostapd: ath4: STA d0:xx:xx:xx:xx:cc IEEE 802.11: sta_stats

 

Tue Jun 30 13:20:07 2020 daemon.info hostapd: ath4: STA d0:xx:xx:xx:xx:cc IEEE 802.11: disassociated

 

Tue Jun 30 13:20:07 2020 daemon.info hostapd: ath4: STA d0:xx:xx:xx:xx:cc IEEE 802.11: disassociated

 

Tue Jun 30 13:20:07 2020 user.info : stahtd[25775]: [STA-TRACKER].stahtd_dump_event(): {"event_id":"1","message_type":"STA_ASSOC_TRACKER","event_type":"sta_leave","mac":"d0:xx:xx:xx:xx:cc","vap":"ath4","assoc_status":"0"}

 

Tue Jun 30 13:20:08 2020 user.info libubnt[25774]: wevent[25774]: wevent.ubnt_custom_event(): EVENT_STA_LEAVE ath4: d0:xx:xx:xx:xx:cc / 2

 

```

 

 

 

And it's moved to a UAP and gone onto the LAN.

 

```

 

Tue Jun 30 13:19:10 2020 user.info : stahtd[1884]: [STA-TRACKER].stahtd_dump_event(): {"message_type":"STA_ASSOC_TRACKER","mac":"d0:xx:xx:xx:xx:cc,"auth_ts":"4574416.851959","vap":"ath0","event_type":"success","assoc_status":"0","assoc_delta":"10000","ip_delta":"4150000","ip_assign_type":"dhcp","wpa_auth_delta":"30000","arp_reply_gw_seen":"yes","auth_delta":"0","event_id":"1","dns_resp_seen":"yes"}

 

Tue Jun 30 13:19:54 2020 user.info : mcad[1878]: wireless_agg_stats.log_sta_anomalies(): bssid=00:xx:xx:xx:xx:b                        f radio=wifi0 vap=ath0 sta=d0:xx:xx:xx:xx:cc satisfaction_now=60 anomalies=wifi_retries wifi_latency

 

Tue Jun 30 13:20:00 2020 daemon.info snmpd[1873]: snmpd[1873]: wireless_agg_stats.log_sta_anomalies(): bssid=00:xx:xx:xx:xx:bf radio=wifi0 vap=ath0 sta=d0:xx:xx:xx:xx:cc satisfaction_now=60 anomalies=wifi_retries wifi_latency

 

```

 

 

 

So at 13:20 it "moved" to the roof, even though it's sitting here with the wifi turned off and I rebooted it.

 

 





Previously known as psycik

Home Assistant: Gigabyte AMD A8 Brix, Home Assistant with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Shelly Humidity and Temperature sensors
Media:Chromecast v2, ATV4 4k, ATV4, HDHomeRun Dual
Server
Host Plex Server 3x3TB, 4x4TB using MergerFS, Samsung 850 evo 512 GB SSD, Proxmox Server with 1xW10, 2xUbuntu 22.04 LTS, Backblaze Backups, usenetprime.com fastmail.com Sharesies Trakt.TV Sharesight 


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.