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
112 stars 29 forks source link

Light does not go off with 0.8.2 #50

Closed chbndrhnns closed 4 years ago

chbndrhnns commented 4 years ago

I cannot get my bathroom light to automatically power off after the configured period. Switching on works fine. It works for me with the 0.7 release, though. In the logs, I cannot see an indication that something is wrong.

Interestingly, the kitchen config also works fine for switching off.

Config kitchen ```yaml kitchen_automoli: module: automoli class: AutoMoLi room: Küche delay: 100 daytimes: - { starttime: "06:00", name: day, light: 100 } - { starttime: "20:30", name: evening, light: 90 } - { starttime: "23:30", name: night, light: 40 } illuminance: - sensor.lightlevel_43 illuminance_threshold: 40 motion_state_on: "on" motion_state_off: "off" lights: - light.strip_kitchen motion: - binary_sensor.motionkitchen ```
Config bathroom ```yaml bathroom_automoli: module: automoli class: AutoMoLi room: Bad delay: 100 daytimes: - { starttime: "05:30", name: day, light: 100 } - { starttime: "20:30", name: evening, light: 90 } - { starttime: "23:30", name: night, light: 40 } illuminance: - sensor.motion_bathroom illuminance_threshold: 40 motion_state_on: "on" motion_state_off: "off" lights: - light.bulb_bathroom motion: - binary_sensor.motion_bathroom humidity: - sensor.climate_bathroom_2 humidity_threshold: 65 ```
Logs ``` 2020-08-12 20:10:49.161074 INFO bathroom_automoli: 💡 Bad turned on → brightness: 100% | delay: 100sec 2020-08-12 20:10:54.640593 INFO kitchen_automoli: self.handles = {'a22cce78009346389c4424abdbad7848'} 2020-08-12 20:10:54.644697 INFO kitchen_automoli: handles = {'a22cce78009346389c4424abdbad7848'} 2020-08-12 20:10:54.654273 INFO kitchen_automoli: data = {'entity_id': 'binary_sensor.motionkitchen', 'new': 'on', 'old': 'off'} 2020-08-12 20:12:40.065584 INFO kitchen_automoli: 🌑 no motion in Küche since 100sec → turned off ```
benleb commented 4 years ago

got it, give me some minutes...

benleb commented 4 years ago

v0.8.3 includes the fix :)

if it should not fix it for you for whatever reason, tell me for reopening 👍