Skip to content

Commit

Permalink
fix: Don't mDNS scan every minute
Browse files Browse the repository at this point in the history
We like a lower interval to be kinder to the LAN and the hub, and we like
10 minutes. This was done in Sonos already but we left Hue at 1 minute, which
was the development testing period.
  • Loading branch information
dljsjr authored Nov 9, 2023
1 parent 0f27ef4 commit 244440c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/SmartThings/philips-hue/src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ end
hue:call_with_delay(3, Discovery.do_mdns_scan, "Philips Hue mDNS Initial Scan")

-- re-scan every minute
local MDNS_SCAN_INTERVAL_SECONDS = 60
local MDNS_SCAN_INTERVAL_SECONDS = 600
hue:call_on_schedule(MDNS_SCAN_INTERVAL_SECONDS, Discovery.do_mdns_scan, "Philips Hue mDNS Scan Task")

log.info("Starting Hue driver")
Expand Down

0 comments on commit 244440c

Please sign in to comment.