File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " homebridge-roomba2 " : minor
3
+ ---
4
+
5
+ Increase the frequency of Roomba status checks in order to support automations
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const CONNECT_TIMEOUT_MILLIS = 60_000;
9
9
/**
10
10
* When actively watching Roomba's status, how often to query Roomba and update HomeKit.
11
11
*/
12
- const WATCH_INTERVAL_MILLIS = 30_000 ;
12
+ const WATCH_INTERVAL_MILLIS = 5_000 ;
13
13
14
14
/**
15
15
* After starting to actively watch Roomba's status, how long should we watch for after
@@ -21,17 +21,17 @@ const WATCH_IDLE_TIMEOUT_MILLIS = 600_000;
21
21
/**
22
22
* How often to query Roomba and update HomeKit when not actively watching Roomba's status.
23
23
*/
24
- const LONG_WATCH_INTERVAL_MILLIS = 3600 * 1000 ; // 24 * 60 * 60 * 1000 ;
24
+ const LONG_WATCH_INTERVAL_MILLIS = 60_000 ;
25
25
26
26
/**
27
- * How old a cached status can be before we ignore it.
27
+ * How long will we wait for the Roomba to send status before giving up?
28
28
*/
29
- const MAX_CACHED_STATUS_AGE_MILLIS = LONG_WATCH_INTERVAL_MILLIS + 600_000 ;
29
+ const MAX_WAIT_FOR_STATUS_MILLIS = 60_000 ;
30
30
31
31
/**
32
- * How long will we wait for the Roomba to send status before giving up?
32
+ * How old a cached status can be before we ignore it.
33
33
*/
34
- const MAX_WAIT_FOR_STATUS_MILLIS = 60_000 ;
34
+ const MAX_CACHED_STATUS_AGE_MILLIS = LONG_WATCH_INTERVAL_MILLIS + MAX_WAIT_FOR_STATUS_MILLIS * 5 ;
35
35
36
36
/**
37
37
* Coalesce refreshState requests into one when they're less than this many millis apart.
You can’t perform that action at this time.
0 commit comments