bangali
bangali copied to clipboard
Fix Issue33 and asleep state improvements
Fix bug in nightSwitchesOff() - Issue #33 Add ability to choose which switches to turn off when leaving asleep Turn on (instead of off) night switches if motion is active when entering asleep state
Change around line 3093 needs improvement. Intent is to stop lights from going off if someone is in the room when we change to sleep, but found it is also causing lights to turn on unexpectedly in some situations. I think we need to include check on oldState (or switches state) to see if we need dimNightLights()