Ok it work now! But, how can I choose to turn off light manually and won't be triggeredwhen a motion is detected? I want to turn on light only once for the next time period like next hour..
Unfortunately, that will not work. There is a command to loop/repeate commands and this is one way to stop those.
In your case, you will need to add something that will allow it to “remember” that the lights has been turned on in the last period of your choice.
One way to do this would be to add a Boolean variable that will be set to true when the rule is run, and then will be set to off after your timeframe (Ex.: 1 hour).
One way would be to extend the duration of the delay on “NePasAllumer”. If it is set to 8 hours, it would no longer turn on for that duration. Would that meet your usecase?
One last thing, I have a rule that turn off all light if no motion when mode switch to night. But if I watch tv, the sensor think he have no motion. It is possible to have a condition like '' no motion in the last 10 min''?