Closed kellermanns closed 3 years ago
It's working fine for me. Did you make sure to restart Homebridge after updating your config? If so, send a debug log and I will see if anything looks off.
Yes, I did - here is a snippet from the debug log (I have a feeling the alertDetailedMessage is the issue):
[9/21/2020, 23:30:03] [SleepIQ] Getting SleepIQ JSON Data... [9/21/2020, 23:30:04] [SleepIQ] Family Status GET results: {"beds":[{"status":1,"bedId":"-9223372035778278491","leftSide":{"isInBed":true,"alertDetailedMessage":"Bed needs to be baselined","sleepNumber":50,"alertId":2,"lastLink":"00:00:00","pressure":1977},"rightSide":{"isInBed":true,"alertDetailedMessage":"Bed needs to be baselined","sleepNumber":40,"alertId":2,"lastLink":"00:00:00","pressure":1596}}]} [9/21/2020, 23:30:04] [SleepIQ] SleepIQ JSON data successfully retrieved [9/21/2020, 23:30:04] [SleepIQ] Privacy mode GET results: {"accountId":"-9223372035778278495","bedId":"-9223372035778278491","pauseMode":"off"} [9/21/2020, 23:30:04] [SleepIQ] SleepIQ Privacy Mode: off [9/21/2020, 23:30:04] [SleepIQ] SleepIQ Occupancy Data: {leftSide:true} [9/21/2020, 23:30:04] [SleepIQ] SleepIQ Sleep Number: {leftSide:50} [9/21/2020, 23:30:04] [SleepIQ] SleepIQ Occupancy Data: {rightSide:true} [9/21/2020, 23:30:04] [SleepIQ] SleepIQ Sleep Number: {rightSide:40} [9/21/2020, 23:30:08] [SleepIQ] Getting SleepIQ JSON Data... [9/21/2020, 23:30:08] [SleepIQ] Family Status GET results: {"beds":[{"status":1,"bedId":"-9223372035778278491","leftSide":{"isInBed":true,"alertDetailedMessage":"Bed needs to be baselined","sleepNumber":50,"alertId":2,"lastLink":"00:00:01","pressure":1972},"rightSide":{"isInBed":true,"alertDetailedMessage":"Bed needs to be baselined","sleepNumber":40,"alertId":2,"lastLink":"00:00:00","pressure":1595}}]} [9/21/2020, 23:30:08] [SleepIQ] SleepIQ JSON data successfully retrieved [9/21/2020, 23:30:09] [SleepIQ] Privacy mode GET results: {"accountId":"-9223372035778278495","bedId":"-9223372035778278491","pauseMode":"off"} [9/21/2020, 23:30:09] [SleepIQ] SleepIQ Privacy Mode: off [9/21/2020, 23:30:09] [SleepIQ] SleepIQ Occupancy Data: {leftSide:true} [9/21/2020, 23:30:09] [SleepIQ] SleepIQ Sleep Number: {leftSide:50} [9/21/2020, 23:30:09] [SleepIQ] SleepIQ Occupancy Data: {rightSide:true} [9/21/2020, 23:30:09] [SleepIQ] SleepIQ Sleep Number: {rightSide:40} [9/21/2020, 23:30:13] [SleepIQ] Getting SleepIQ JSON Data... [9/21/2020, 23:30:13] [SleepIQ] Family Status GET results: {"beds":[{"status":1,"bedId":"-9223372035778278491","leftSide":{"isInBed":true,"alertDetailedMessage":"Bed needs to be baselined","sleepNumber":50,"alertId":2,"lastLink":"00:00:00","pressure":1973},"rightSide":{"isInBed":true,"alertDetailedMessage":"Bed needs to be baselined","sleepNumber":40,"alertId":2,"lastLink":"00:00:00","pressure":1594}}]} [9/21/2020, 23:30:13] [SleepIQ] SleepIQ JSON data successfully retrieved [9/21/2020, 23:30:14] [SleepIQ] Privacy mode GET results: {"accountId":"-9223372035778278495","bedId":"-9223372035778278491","pauseMode":"off"} [9/21/2020, 23:30:14] [SleepIQ] SleepIQ Privacy Mode: off [9/21/2020, 23:30:14] [SleepIQ] SleepIQ Occupancy Data: {leftSide:true} [9/21/2020, 23:30:14] [SleepIQ] SleepIQ Sleep Number: {leftSide:50} [9/21/2020, 23:30:14] [SleepIQ] SleepIQ Occupancy Data: {rightSide:true} [9/21/2020, 23:30:14] [SleepIQ] SleepIQ Sleep Number: {rightSide:40} [9/21/2020, 23:30:18] [SleepIQ] Getting SleepIQ JSON Data... [9/21/2020, 23:30:18] [SleepIQ] Family Status GET results: {"beds":[{"status":1,"bedId":"-9223372035778278491","leftSide":{"isInBed":true,"alertDetailedMessage":"Bed needs to be baselined","sleepNumber":50,"alertId":2,"lastLink":"00:00:01","pressure":1971},"rightSide":{"isInBed":true,"alertDetailedMessage":"Bed needs to be baselined","sleepNumber":40,"alertId":2,"lastLink":"00:00:01","pressure":1594}}]} [9/21/2020, 23:30:18] [SleepIQ] SleepIQ JSON data successfully retrieved [9/21/2020, 23:30:19] [SleepIQ] Privacy mode GET results: {"accountId":"-9223372035778278495","bedId":"-9223372035778278491","pauseMode":"off"} [9/21/2020, 23:30:19] [SleepIQ] SleepIQ Privacy Mode: off [9/21/2020, 23:30:19] [SleepIQ] SleepIQ Occupancy Data: {leftSide:true} [9/21/2020, 23:30:19] [SleepIQ] SleepIQ Sleep Number: {leftSide:50} [9/21/2020, 23:30:19] [SleepIQ] SleepIQ Occupancy Data: {rightSide:true} [9/21/2020, 23:30:19] [SleepIQ] SleepIQ Sleep Number: {rightSide:40}
The baseline comment is from sleep number, not me. You can do that in the sleepiq app. Regarding the refresh time, the code is pretty simple, the only thing I can think of is it must not be reading from the config correctly. Can you copy and paste the line exactly how you have it formatted from your config.json? Also, are you using Homebridge UI?
Ah, never mind. My local config.json I use for testing had the correct variable name, but the schema I created for Homebridge UI had the wrong name. v4.1.12 fixes it (you will need to set the number again in the plugin configuration settings).
Can someone check if the refresh timer is actually working? I set mine to 60 seconds and still see requests from home bridge to api.sleepiq.sleepnumber.com every 5 seconds.