# Best way to set an 'awake' boolean, which is used for motion sensors light

**URL:** <https://community.homey.app/t/best-way-to-set-an-awake-boolean-which-is-used-for-motion-sensors-light/30460>\
**Category:** Flows\
**Created:** [May 26, 2020, 7:40pm UTC](https://community.homey.app/t/best-way-to-set-an-awake-boolean-which-is-used-for-motion-sensors-light/30460 "2020-05-26T19:40:49Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [July 17, 2020, 3:44pm UTC](https://community.homey.app/t/best-way-to-set-an-awake-boolean-which-is-used-for-motion-sensors-light/30460/9 "2020-07-17T15:44:16Z")

</div>

> [@Telling the house about day-, evening-, and night mode](https://community.homey.app/t/telling-the-house-about-day-evening-and-night-mode/10739/2):
>
> What you need to do is set up a set of ‘points’ which determine whether your awake or not. ie. movement in the bathroom between 12am and 5am may give you one point. Where as turning on the shower may give you 7 points. And turning on the radio give + 4 points Ideally you set as many of these up as possible, as well as setting up items which give negative points for things which would indicate your are not awake. -3 points if your electric blanket is on. etc. If points \> 10 - then its morning. …

Its called Bayesian Probability 🙂

---

_[View the full topic](https://community.homey.app/t/best-way-to-set-an-awake-boolean-which-is-used-for-motion-sensors-light/30460)._
