I have made a basic light activation based on movement and switching off the light when movement is not detected for fixed amount of time.
Have been thinking how to make the fixed amount of time to more “dynamic” or actually making the time to adjust over time based on the movement at the room.
So my plans so far:
- The on-time of the light is always increased (for example by 10s) if the light is switched off and turned on again within 30s of the switching the light off by the timer. This meaning that light have been switched off when someone is in the room and has waved and activated the light again.
- The question is that how the on-time should be decreased? Or should it be decreased at all…
And I know, if I would make actual room presence detection none of this would not be needed. And all off this is somewhat pointless and not needed, but if you can do it, why not?