PLTS device doesnt seem to run/trigger

I tried to tweak a PLTs device the other day to add ‘!On’ to the trigger so that if the light was already on (someone had turned on manually) then it wouldnt trigger the device. It didnt seem to work so i subsequently removed that part of the trigger expression but for some reason the device doesnt work at all! Ive reloaded LUUP and also unplugged my Vera Plus.

I then thought it could be the motion sensor causing the problem as each of the three i have has disconnected from Vera Plus over the past week but a scene i have in my Vera (turns the light on from 9.30 at 20% brightness) triggers absolutely fine.

I also deleted the device and remade it from scratch last night but its still not running. Im all out of ideas?! (this comes from my other thread about things not working with daylight saving hence the addition of a schedule in PLEG was previously LUA code)

Report attached (Pressing do it now for On and Off, turns the light on and off accordingly)

EDIT: Bizarrely its now started working!! and i havent changed anything. These Veras are far from reliable.

Can i make the Trigger ‘ItsEvening AND Motion AND !On’ as per my original plan so that it only triggers if the light isnt already on?

Can i make the Trigger 'ItsEvening AND Motion AND !On' as per my original plan so that it only triggers if the light isnt already on?

!On only means the timer is not running. The light could have been manually turned on at the switch or via Vera.
!On is not needed here because if the timer is already running, triggering it again does NOTHING.

If you trigger RESTART and it’s !On it will not do anything.
If you trigger ReSTART and it’s On, it will restart the timer.

Ok, thanks Richard, i was hoping to be able to not trigger the timer (and subsequently turn the light off as the room is occupied) if the light had been manually turned. Would i need to move to PLEG to do this?

No, you need an Input for the light status and use IT in your condition.
But note, unless your switch has instant status there will be a delay of a couple minutes before Vera notices you have manually turned the light on (or off).

Thanks Richard, ive added ‘Status’ as a device property (noting off = 0) and added it to the condition as shown in the attached. Will see if it works in about two hours from now.