2024年11月21日星期四 下午8:22:12

Track Home/Away Status for Your Household Using Their Smart Phones and Home Assistant

2 年 前
#2452 引用
presence detection

Track Home/Away Status for Your Household Using Their Smart Phones and Home Assistant

What is home  away ?
https://www.home-assistant.io/integrations/person/

https://www.danielmartingonzalez.com/en/track-devices-in-home-assistant/

Gps  etc

https://philhawthorne.com/breaking-down-presence-detection-with-home-assistant/

Multiple device trackers can be used in parallel, such as Owntracks and Nmap. The state of the device will be determined by the source that reported last.


track who is home and when they come and go, also known as presence detection.

https://bbs.hassbian.com/thread-10824-1-1.html

https://bbs.hassbian.com/thread-10096-1-1.html

https://joshmccarty.com/track-homeaway-status-household-using-smart-phones-home-assistant/
0
2 年 前
#2453 引用
presence detection way

Home Assistant has a few built-in methods for doing presence detection. I just want to detect if someone is home or not.

presence detection way

based on whether their smart phone is at home or not.
with Bluetooth tracking,
door sensors,
iBeacons, etc.,

Home Assistant has a type of integrations called Device Tracker, these integrations are intended to control the location of the different devices that we linked to our server.


Bluetooth Tracker
Life360
OwnTracks
Google Maps
iCloud
Mobile App
Nmap
Ping

Bluetooth Tracker
Bluetooth LE Tracker

0
2 年 前
#2454 引用


presence detection way

Home Assistant has a few built-in methods for doing presence detection. I just want to detect if someone is home or not, give or take 20 minutes, based on whether their smart phone is at home or not.
0
2 年 前
#2455 引用

setting static IP addresses for all smart phones used by the family in my router.

Attaching devices to people
0
2 年 前
#3584 引用
  3. 已尝试的方案
    wifi类
    3.1. ping追踪

    效果:不理想
  
 原因:部分手机息屏时,就断了



    3.2. HA官方的openwrt追踪

    效果:不理想
    
原因:在线检测很迅速,离线检测,经常失效,需重启路由器或HA才能正常显示



    3.3. 第三方的openwrt追踪

    使用第三方的追踪,GitHub - rmoesbergen/openwrt: OpenWRT device tracker for Home Assistant that actually works
    效果:运行时出错,无法追踪
    原因:提示找不到python requests的库,但我明明安装了


    3.4. HA官方的asus追踪(AP模式)

    效果:不理想
    原因:AP模式下,无法检测无线设备,仅能检测出部分有线连接的设备


    蓝牙类
    3.1. esphome的蓝牙tracker

    效果:不理想
   原因:目前esphome的固件,仅能追踪有固定蓝牙mac的设备,但我的手机广播的蓝牙mac都是随机的;对于beacon类uuid的追踪,目前是bug,无法识别、追踪



    3.2. openmqttgateway的蓝牙tracker

    效果:不理想
    原因:能够正常追踪固定蓝牙mac的设备,能够识别;对于随机蓝牙mac的设备,能够识别uuid,但所发布的mqtt主题,是基于其mac地址的,而mac地址仍然是随机的……导致事实上无法追踪
0
2 年 前
#3585 引用
亲测,iphone、华为mate10很准,华为p30很不准
0
2 年 前
#3586 引用
亲测,iphone、华为mate10很准,华为p30很不准
0
2 年 前
#3587 引用


直接用手机上HASS app软件的wifi传感器,检测在不在我预设的IP段内,主要是不想绑定手机IP地址 


几个月用下来很稳定,我和我老婆的手机都基本没出现过问题

感觉华为更坑爹,设置了还不完美

I其中一个重要的原因就是手机为了节能,并不会频繁的搜索wifi信号、快速的恢复连接。

0
2 年 前
#3588 引用
iphone用APP gps  蛮准的
0
2 年 前
#3589 引用
magic area


現在用多個 esp32-BLE-MQTT
配合magic area做到多節點的藍牙檢測,反應非常快,到家門口幾秒就執行自動化


https://github.com/jseidl/hass-magic_areas

Uses multiple type of sensors for determining presence on an area.
0