Automoli Kicking in even if controlling Lamp already ON
😩 Describe the issue/bug
First of all, THANKS for this nice APP. But I am facing besides not working illuminance sensor being taken into account to block turning on the light that even if a light (I'd describe it as controlling light) the automoli would kick in (either the script or light configured)
😒 Expected behavior
I expect that automoli would NOT kick in if the controlling light is already tunred on? 🎛️ Configuration
living_room:
module: automoli
class: AutoMoLi
room: Living Room
debug_log: true
disable_switch_entities:
- input_boolean.automoli_living_room
- group.persons
- media_player.lg_tv_remote
disable_switch_states:
- "not_home"
- "playing"
delay: 1300
daytimes:
- { starttime: "05:30", name: morning, light: scene.night_light }
- { starttime: "07:30", name: day, light: scene.morning_light }
- { starttime: "07:00", name: day, light: scene.morning_light }
- { starttime: "17:30", name: more_day, light: scene.day_light }
- { starttime: "20:30", name: evening, light: scene.evening_light }
- { starttime: "23:30", name: night, light: scene.night_light }
- { starttime: "23:45", name: more_night, light: scene.night_light }
illuminance_threshold: 21 # NOT WORKING
illuminance:
- sensor.average_luminance_in_the_house # NOT WORKING
motion:
- binary_sensor.multisensor_downstairs_motion
- binary_sensor.multisensor_bedroom_motion_3
- binary_sensor.motion_sensor_158d000120a1bd
- binary_sensor.multisensor_dressing_motion
# - binary_sensor.camera_living_room_motion
motion_state_on: "on"
motion_state_off: "off"
lights:
- light.dining_room # CONTROLLONG LIGH? If on it should NOT kick in?
dim:
method: transition
seconds_before: 15```
🧠 **System**
- AppDaemon: **0378903 DEV EDGE version**
- running mode: ** hassio-plugin**
- Home-Assistant: **core-2021.1.2**
- running mode: **docker - supervised**
- Python: **3.8.6**
🗒️ **Logs** <!-- please use logs with "debug_log: true", thanks! -->
```log
2021-01-15 12:08:52.191937 INFO living_room: refresh_timer(..) off_handle = '9035540bd73343f2b403494428df75c1' -> {'9035540bd73343f2b403494428df75c1', '448e302684754a3db2041aa5d2b1339a'}
2021-01-15 12:08:52.178835 INFO living_room: refresh_timer(..) dim_handle = '448e302684754a3db2041aa5d2b1339a' -> {'448e302684754a3db2041aa5d2b1339a'}
2021-01-15 12:08:52.152878 INFO living_room: refresh_timer(..) self.dim = {'brightness_step_pct': None, 'seconds_before': 15, 'method': 1}, dimming in 1285
2021-01-15 12:08:52.146894 INFO living_room: refresh_timer(..) self.active = {'daytime': 'day', 'delay': 1300, 'starttime': '07:00:00', 'light_setting': 'scene.morning_light', 'is_hue_group': False}
2021-01-15 12:08:52.132696 INFO living_room: refresh_timer(..) handles cleared → self.handles = set()
2021-01-15 12:08:52.112471 INFO living_room: clear_handles(..) self.handles = set() cleared, canceling handles = set()
2021-01-15 12:08:51.937636 INFO living_room:
2021-01-15 12:08:51.930677 INFO living_room: · [1moff[0m
2021-01-15 12:08:51.919721 INFO living_room: · [1mnot_home[0m
2021-01-15 12:08:51.914048 INFO living_room: · [1mplaying[0m
2021-01-15 12:08:51.891337 INFO living_room: disable_switch_states:
2021-01-15 12:08:51.885573 INFO living_room: · [1minput_boolean.automoli_living_room[0m
2021-01-15 12:08:51.881585 INFO living_room: · [1mmedia_player.lg_tv_remote[0m
2021-01-15 12:08:51.869307 INFO living_room: · [1mgroup.persons[0m
2021-01-15 12:08:51.853514 INFO living_room: disable_switch_entities:
2021-01-15 12:08:51.844656 INFO living_room: loglevel: [1m10[0m
2021-01-15 12:08:51.837208 INFO living_room: only_own_events: [1mFalse[0m
2021-01-15 12:08:51.816795 INFO living_room: disable_hue_groups: [1mFalse[0m
2021-01-15 12:08:51.808907 INFO living_room: illuminance: [1m[][0m
2021-01-15 12:08:51.795278 INFO living_room: · [1mbinary_sensor.multisensor_downstairs_motion[0m
2021-01-15 12:08:51.791971 INFO living_room: · [1mbinary_sensor.motion_sensor_158d000120a1bd[0m
2021-01-15 12:08:51.774584 INFO living_room: · [1mbinary_sensor.multisensor_dressing_motion[0m
2021-01-15 12:08:51.770005 INFO living_room: motion:
2021-01-15 12:08:51.762022 INFO living_room: sensors:
2021-01-15 12:08:51.758689 INFO living_room: illuminance: [1m21[0m
2021-01-15 12:08:51.751440 INFO living_room: threshold:
2021-01-15 12:08:51.735888 INFO living_room: method: [1m1[0m
2021-01-15 12:08:51.731336 INFO living_room: seconds_before: [1m15[0m
2021-01-15 12:08:51.724415 INFO living_room: brightness_step_pct: [1mNone[0m
2021-01-15 12:08:51.718560 INFO living_room: dim:
2021-01-15 12:08:51.704621 INFO living_room: · [1mlight.dining_room[0m
2021-01-15 12:08:51.680062 INFO living_room: lights:
2021-01-15 12:08:51.673933 INFO living_room: light: [1mscene.night_light[0m
2021-01-15 12:08:51.668639 INFO living_room: starttime: [1m23:45[0m
2021-01-15 12:08:51.659917 INFO living_room: more_night:
2021-01-15 12:08:51.655037 INFO living_room: light: [1mscene.night_light[0m
2021-01-15 12:08:51.647137 INFO living_room: starttime: [1m23:30[0m
2021-01-15 12:08:51.626540 INFO living_room: night:
2021-01-15 12:08:51.623366 INFO living_room: light: [1mscene.evening_light[0m
2021-01-15 12:08:51.605415 INFO living_room: starttime: [1m20:30[0m
2021-01-15 12:08:51.601830 INFO living_room: evening:
2021-01-15 12:08:51.588271 INFO living_room: light: [1mscene.day_light[0m
2021-01-15 12:08:51.585112 INFO living_room: starttime: [1m17:30[0m
2021-01-15 12:08:51.580652 INFO living_room: more_day:
2021-01-15 12:08:51.564965 INFO living_room: light: [1mscene.morning_light[0m
2021-01-15 12:08:51.554651 INFO living_room: starttime: [1m07:00[0m
2021-01-15 12:08:51.539303 INFO living_room: day:
2021-01-15 12:08:51.536042 INFO living_room: light: [1mscene.morning_light[0m
2021-01-15 12:08:51.505127 INFO living_room: starttime: [1m07:30[0m
2021-01-15 12:08:51.501867 INFO living_room: day:
2021-01-15 12:08:51.496927 INFO living_room: light: [1mscene.night_light[0m
2021-01-15 12:08:51.491875 INFO living_room: starttime: [1m05:30[0m
2021-01-15 12:08:51.484365 INFO living_room: morning:
2021-01-15 12:08:51.480932 INFO living_room: daytimes:
2021-01-15 12:08:51.468092 INFO living_room: active_daytime: [1mday[0m
2021-01-15 12:08:51.464904 INFO living_room: delay: [1m21:40[0mmin ≈ [1m1300[0msec
2021-01-15 12:08:51.455440 INFO living_room: room: [1mLiving room[0m
2021-01-15 12:08:51.447607 INFO living_room: · [1msensor.average_luminance_in_the_house[0m
2021-01-15 12:08:51.443377 INFO living_room: illuminance:
2021-01-15 12:08:51.435929 INFO living_room: debug_log: [1mTrue[0m
2021-01-15 12:08:51.431491 INFO living_room:
2021-01-15 12:08:51.425572 INFO living_room: 💡 [1mAutoMoLi[0m v[1m0.9.1[0m · [1mLiving room[0m
2021-01-15 12:08:51.418017 INFO living_room:
2021-01-15 12:08:51.417400 INFO living_room: Previous message repeated 2 times
2021-01-15 12:08:51.403992 INFO living_room: both motion states configured - using state listener
2021-01-15 12:08:51.193606 INFO living_room: No humidity sensors → disabling features based on humidity - None.
2021-01-15 12:08:49.334578 INFO living_room: setting log level to DEBUG
2021-01-15 12:08:49.282326 INFO AppDaemon: Initializing app living_room using class AutoMoLi from module automoli
2021-01-15 12:08:49.276943 INFO AppDaemon: Terminating living_room
2021-01-15 12:08:48.759644 INFO AppDaemon: Found 26 total apps
2021-01-15 12:08:48.757803 INFO AppDaemon: App 'living_room' changed
🧁 Additional context Add any other context about the problem here.
could you please show the part of the log where the light is switched on while another is already on? Thanks!
Will make it later OK? I am just happy the illuminance works now :) But Am I right to say that if i configure a light and this light is aready on .. it should not turn on the light / scene?
Yeah no problem :D Yes absolutely, if a light is manually turned on (for example in BLUE because I'm crazy at the moment), automoli should not touch that blue shine until the light was switched off (by automoli or any other way)
for the moment i don't see the issue.. i will put this on ice for the moment ok?
@thundergreen should we close this issue now?
Yes please ..works flawlessly 😎🤟
evildad @.***> schrieb am Mo., 24. Apr. 2023, 15:30:
@thundergreen https://github.com/thundergreen should we close this issue now?
— Reply to this email directly, view it on GitHub https://github.com/benleb/ad-automoli/issues/64#issuecomment-1520165993, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFUA7ZBG4MYBYEEMJ5GDZTXCZ575ANCNFSM4WD2ADNA . You are receiving this because you were mentioned.Message ID: @.***>