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

[Feature Request] Daytime setting for not turning lights on and to not turn the lights off. #63

Open gardar opened 3 years ago

gardar commented 3 years ago

šŸ™„ Is your feature request related to a problem? Please describe. This is a two-part feature request, I feel the features are somewhat related so I'm only opening one request for both, please let me know if you'd like them split into two issues for tracking purposes.

  1. Add a option to the daytime settings to disable the lights turning on at certain times.
    • Useful for disabling a certain light at nighttime in the bedroom that gets turned on by a movement in the bedroom. I know I can make time based switch in homeassistant for that specific purpose but it would be simpler if it was a inbuilt feature.
  2. Have the option of lowering the brightness of a light as a alternative action to turning the lights off when motion is not detected.
    • Useful for having certain lights as "nightlights" where you want the light to be lid up for the whole night at a low brightness but you want the light to turn on/off normally during the day. This could be combined with feature 1 and would then make sure the light would only be at a certain brightness during the nighttime and not get brighter by detection of motion.
adec commented 3 years ago

I can think of an enhancement (2) which would fix a use case that I have. The enhancement would allow a different scene (or brightness in @gardar's case) to be applied instead of turning the lights off. I'd use this to apply an ambient lighting scene to the outdoor lights during the evening but still come on to full when motion is detected before returning back to the ambient scene again.

benleb commented 3 years ago

@gardar regarding 2.... Just an untested idea... did you try to use the dim feature combined with a delay of 0 (to disable switching off the lights automatically)? Theoretically, this should work, but I never tried šŸ˜