Pebble smartwatches - sleep state

Apparently Pebble’s API allow checking if the user is awake/sleeping/deep sleeping at the moment. This would make a great and very helpful sensor for Home Assistant.

https://developer.rebble.io/developer.pebble.com/guides/events-and-services/health/index.html#detecting-activities