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.
dljsjr committed Jan 2, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent f437fd1 commit c8e2d29
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
@@ -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")

0 comments on commit c8e2d29

Please sign in to comment.