One of my first pistons.
Motion will save the current light settings (Brightness, On/Off)
Then the light will switch ON at 100%
When motion is inactive the light will be restored to saved settings.
Any advice on making this more efficient would be appreciated.