I want to make my lighting more advanced, and I want to ask if it is possible.
If its dark enough and there is movement I want to turn my lights to 100% but only for when there is movement. If there is no more movement I want to have the lights at 100% for 1 minute and then dim to ~40%, but I dont want any light when the light is switched off by an switch/dimmer, but only for that movement session or when its turned on with the switch again. and during the day only light when its manually turned on. I know that this is difficult but if I can get an API for php that is working well I could program it myself.
Thanks in advance,