benleb / ad-automoli

💡 Fully automatic light management based on conditions like motion, illuminance, humidity, and other clever features
https://github.com/benleb/ad-automoli
MIT License
110 stars 29 forks source link

adding sleep confidence feature #100

Open kriklivsky opened 2 years ago

kriklivsky commented 2 years ago

Add feature for disable automation when phone sensors (sensor.{{device}}_sleep_confidence) show that owner(s) is sleeping.

New config entries(optional): disable_by_sleep_confidence(list, default null) - list of sensors disable_by_sleep_confidence_states(int, default 90) - threshold.

If each sensor value greater than threshold - turn off automation.