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.




4893 posts

Uber Geek

Trusted

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

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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


Create new topic
222 posts

Master Geek

Lifetime subscriber

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

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.

7615 posts

Uber Geek

Trusted
Subscriber

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

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


 
 
 
 


2254 posts

Uber Geek

Trusted

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

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.




4893 posts

Uber Geek

Trusted

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

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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


260 posts

Ultimate Geek


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

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..


222 posts

Master Geek

Lifetime subscriber

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

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.



4893 posts

Uber Geek

Trusted

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

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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


 
 
 
 




4893 posts

Uber Geek

Trusted

  #2515037 30-Jun-2020 13:30
Send private message quote this post

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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


Create new topic





Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Chorus completes the build and commissioning of two new core Ethernet switches
Posted 8-Jul-2020 09:48


National Institute for Health Innovation develops treatment app for gambling
Posted 6-Jul-2020 16:25


Nokia 2.3 to be available in New Zealand
Posted 6-Jul-2020 12:30


Menulog change colours as parent company merges with Dutch food delivery service
Posted 2-Jul-2020 07:53


Techweek2020 goes digital to make it easier for Kiwis to connect and learn
Posted 2-Jul-2020 07:48


Catalyst Cloud launches new Solutions Hub to support their kiwi Partners and Customers
Posted 2-Jul-2020 07:44


Microsoft to help New Zealand job seekers acquire new digital skills needed for the COVID-19 economy
Posted 2-Jul-2020 07:41


Hewlett Packard Enterprise introduces new HPE GreenLake cloud services
Posted 24-Jun-2020 08:07


New cloud data protection services from Hewlett Packard Enterprise
Posted 24-Jun-2020 07:58


Hewlett Packard Enterprise unveils HPE Ezmeral, new software portfolio and brand
Posted 24-Jun-2020 07:10


Apple reveals new developer technologies to foster the next generation of apps
Posted 23-Jun-2020 15:30


Poly introduces solutions for Microsoft Teams Rooms
Posted 23-Jun-2020 15:14


Lenovo launches new ThinkPad P Series mobile workstations
Posted 23-Jun-2020 09:17


Lenovo brings Linux certification to ThinkPad and ThinkStation Workstation portfolio
Posted 23-Jun-2020 08:56


Apple introduces new features for iPhone iOS14 and iPadOS 14
Posted 23-Jun-2020 08:28



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.