The sleepMessage is something SleepNumber creates and I'm not sure what adjectives they use. For example, my score last night was 78 and it says You had a GOOD nights sleep
How do you use this data? Depending on what the goal is I could see either using the numeric value only (and mapping that to your own string values so it's the same no matter the sleep sensor) or maybe trying to use the message and extracting the adjective from that.
I've got a first draft of this coded. Will check over the next day or so to make sure that it doesn't break the existing functionality. In the meantime, do you have either the hexadecimal colors that sleep number uses, or a screen shot of the different colors? I figure it would be nice to see the same colors that you're used to.
green = hexadecimal?
navy blue = hexadecimal?
yellow = hexadecimal?
Justin, sorry for the slow response—for some reason I didn’t get notified of your message as I normally do. Anyway yep I’ll definitely test and revert.
@JustinL Just received an email from Google that my trial period ends and I have to upgrade to a paid Google cloud platform. Does anyone know if there are free credits each month even after the upgrade? Does Google change anything in this regard? Haven't used a lot of my credits but am a bit confused about that. My understanding was to get this service free as long as I don't get over a certain number of requests.
@JustinL, I’ve been playing with Multi-Place and keep running into 2 things that have me stumped.
The tracker tile shows what I presume to be a sleeping logo but the bed is unoccupied.
I keep getting log warnings to make sure I have defined places in Life360. But I do. At least afaik.
Also a couple questions:
what triggers traffic notices? I have yet to receive one, so I’m thinking I didn’t set it up properly.
do the badges only happen when there is >1 person defined? I’ve only been testing with one person (me) but I haven’t seen anything on sleep quality so I can’t test the Sleepnumber functionality you built.
Happy to help figure that out. Will need to turn on debug logging and send me the log.
There's two places to check. One is in on the Trip page under the Configure Departure Automation section, specifying what to do when there is "bad" traffic.
The other place to check is the Tracker Settings page where you can define what "bad" traffic means to you.
Oh, well, by badges, do you mean the trophies? Or just the sleep score? I think the sleep scores should show up even with 1 person, but the trophies won't.
@jb1
v.1.1.8 Updated for Life360+ support in place of the depricated Life360 with States app
Note the Life360 selector populates with any presence device, but you must select some sort of Life360 device (with the 'address1' attribute) or else it won't work.
If you use the paid version of Life360, and name the places the same in both life360 and Hubitat, then the Life360 device will be sufficient. The free version reverse engineers the place via address lookup, just potentially more room for error perhaps. Mileage may vary.
Full list of options:
A) with the free version of Life360. Multi-Place will use the longitude and latitude reported by Life360 to detect whether you are at a certain address input into Multi-Place. I think this works pretty well, but may have to see how accurate it is for you.
(B) Use an app like Geofency for iOS on your phone and send webhooks to Rule Machine when you enter/exit a geofence configured for that place. Then just use rule machine to set a virtual presence sensor based on those webhooks
(C) Use dedicated beacons or other types of presence sensors at one or more places
(D) Use Life360 along with the Paid version of Life360. Name the places in Life360 the same as you name them in Multi-Place. Multi-Place will detect your presence at a Multi-Place when Life360 detects your presence at a Life360 place with the same name.