It seems like this is the solution:
events.sendCommand('sensor1_MotionWhen', new Date().toISOString());
My rule ended looking like this:
I’ve also implemented the same rule in a NodeRED flow that watches for a change in my sensor1_motionAlarm Item. Works as well. Decided to keep my NodeRED rule and ditch the internal OH one, as NodeRED to me is almost self-documented given the visual aspect of it.
To be honest, I’m wondering why use a DateTime Item if I could just as well use a String Item.
Maybe my use cases are too simple, hence I’m not seeing the value? I don’t know…
Unless you particularly want a command, you’d normally use a postUpdate to set an Item state.
Thanks @rossko57 . I’ve been using sendCommand as I learned it from watching what code Blocky built.