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.
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 ```