Remember that a trigger node can be set to send one message , wait 3 minutes and send a different message.
So send your night light ON message via the trigger node. It sends OFF after 3 minutes if no further movement is detected
And your dusk to 22:30 can be made to send ON every 2.5 minutes between those hours, routed through the same trigger node.
An example using inject and debug nodes rather than your bright blue and green nodes, whatever they are.
[{"id":"1635d0258fe0f082","type":"inject","z":"eb8a7d385ac37efe","name":"At dusk send ON","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":120,"y":440,"wires":[["061be24778af07f1"]]},{"id":"061be24778af07f1","type":"trigger","z":"eb8a7d385ac37efe","name":"","op1":"ON","op2":"0","op1type":"str","op2type":"str","duration":"-150","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":390,"y":440,"wires":[["dfd0e959fd823424"]]},{"id":"cea752d0195976a7","type":"inject","z":"eb8a7d385ac37efe","name":"At 22:27 send msg.reset","props":[{"p":"reset","v":"","vt":"date"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":150,"y":480,"wires":[["061be24778af07f1"]]},{"id":"dfd0e959fd823424","type":"trigger","z":"eb8a7d385ac37efe","name":"On for 3 min. Extend delay on new msg","op1":"ON","op2":"OFF","op1type":"str","op2type":"str","duration":"3","extend":true,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":520,"y":520,"wires":[["0c4660db1f31d736"]]},{"id":"7bfc632f7aec76a0","type":"inject","z":"eb8a7d385ac37efe","name":"Motion detection logic","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ON","payloadType":"str","x":140,"y":580,"wires":[["dfd0e959fd823424"]]},{"id":"0c4660db1f31d736","type":"debug","z":"eb8a7d385ac37efe","name":"Switch lamp","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":690,"y":580,"wires":[]}]