Some help please

Hi Guys hoping someone can help with something really basic that i can't get my head round lol
So I'm doing the Hookups motion lights.
I'm just wanting the light to come on with motion then dim then go off afterwards, and that does work great however i want to set a time limit so it only runs 30 minutes after sunset.
I've tried some Eztimer nodes i normally use in various flows but can't get it working.
Any help appreciated as I'm wanting to use this flow for my bedroom light as well but with extra conditions.
Thanks
(I'm using the Node red addon in Home assistant)

[{"id":"1e6b2fb618da75c5","type":"server-state-changed","z":"a6a11ae5.8e47f8","name":"Kitchen Motion","server":"8a3231e1.3f0e1","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.kitchen","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"15","forType":"num","forUnits":"seconds","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":1180,"wires":[["84f14951547f5cd5"],["8a30f97dcc7b24f8","84f14951547f5cd5"]]},{"id":"7bd265f4ed42615c","type":"api-call-service","z":"a6a11ae5.8e47f8","name":"Kitchen Lamp off","server":"8a3231e1.3f0e1","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.kitchen_lamp"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":650,"y":1200,"wires":[[]]},{"id":"8a30f97dcc7b24f8","type":"api-call-service","z":"a6a11ae5.8e47f8","name":"Kitchen Lamp on 80%","server":"8a3231e1.3f0e1","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kitchen_lamp"],"data":"{\"brightness_pct\":\"100\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":380,"y":1220,"wires":[[]]},{"id":"84f14951547f5cd5","type":"trigger","z":"a6a11ae5.8e47f8","name":"30 secs","op1":"Dim","op2":"off","op1type":"str","op2type":"str","duration":"30","extend":true,"overrideDelay":false,"units":"s","reset":"on","bytopic":"all","topic":"topic","outputs":2,"x":340,"y":1160,"wires":[["dbf5a64dc7a98d57"],["7bd265f4ed42615c"]]},{"id":"dbf5a64dc7a98d57","type":"api-call-service","z":"a6a11ae5.8e47f8","name":"Kitchen Lamp dimmed 50 %","server":"8a3231e1.3f0e1","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kitchen_lamp"],"data":"{\"brightness_pct\":\"50\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":680,"y":1140,"wires":[[]]},{"id":"8a3231e1.3f0e1","type":"server","name":"Hassio","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]

flow