[RELEASE] Multi-Place - Powered by Google Traffic

The sleepScore attribute is the numeric value.

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?

Yeah probably true. @rvrolyk, can you opine on the color schemes, even if it’s only very roughly parallel.?

I don' t really use that feature but based on digging at a few historical data points (and sampling the screen in photoshop) I think the colors are:

  • green = 65d6a2
  • blue = 56baf8
  • yellow = f8d86b
1 Like

I've put a beta version of Multi-Place with sleep number bed support here. Can you test to see how that works since I don't have a sleep number bed?

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.

Yes $200 free credits

Thanks @JustinL

@JustinL, I’ve been playing with Multi-Place and keep running into 2 things that have me stumped.

  1. The tracker tile shows what I presume to be a sleeping logo but the bed is unoccupied.
  2. 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.

TIA….

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.

Yup, can't compete with yourself haha!

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.

1 Like

will try it out. Exciting news!!!!!!!

Hi @JustinL
Quick question. Setting up the places do I have to link again a specific presence sensor within the place settings?
image
I'm not sure if I did before Life360 Tracker stopped working and the presence sensors were gone in Multi-Place as well.

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.

v1.1.9 - Add support for OwnTracks; Phase out Life360

2 Likes