Mark old last_seen devices as "not responding"

Devices that have not received an update since a fixed timeout (24 hrs
for now), based on its last_seen time, will be marked as "not
responding" in the Home app. With this I can identify which devices are
unreachable or dead.

Also needed to upgrade hap with the fix for brutella/hap#30, or the
entire bridge will stop working.
This commit is contained in:
Darell Tan
2023-05-22 22:38:20 +08:00
parent edade53b06
commit 48eabc2342
3 changed files with 17 additions and 8 deletions

4
go.mod
View File

@@ -3,12 +3,12 @@ module hapz2m
go 1.20
require (
github.com/brutella/hap v0.0.26-0.20230424071335-4329b4fdc1c4
github.com/brutella/hap v0.0.27-0.20230522083132-4ea1de40019c
github.com/eclipse/paho.mqtt.golang v1.4.2
)
require (
github.com/brutella/dnssd v1.2.6 // indirect
github.com/brutella/dnssd v1.2.7 // indirect
github.com/go-chi/chi v1.5.4 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/miekg/dns v1.1.53 // indirect