Thanks for the reply.
Here’s the code I’m struggling with. I want a light to come on for 10 seconds if motion is detected after sunset, and motion detection go off at dawn. It seems that the ‘eztimer’ settings are ignored, with the motion detected signal passing straight through, regardless as to whether it’s sunset or not.
[{"id":"16d45c1a.b3db7c","type":"tab","label":"Motion Detector Test","disabled":false,"info":""},{"id":"dca4a7e0.77f6d8","type":"api-call-service","z":"16d45c1a.b3db7c","name":"Lohas Bulb2 On","version":1,"debugenabled":true,"service_domain":"light","service":"turn_on","entityId":"light.lohas_bulb2","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":580,"y":220,"wires":[[]]},{"id":"6e898821.44b57","type":"server-state-changed","z":"16d45c1a.b3db7c","name":"Motion Sensor","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.hue_motion_sensor_2_motion","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":130,"y":240,"wires":[["d65e036d.9ac66"],["1511c8a0.11de87"]]},{"id":"536d60e0.64ba7","type":"api-call-service","z":"16d45c1a.b3db7c","name":"Lohas Bulb2 off","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.lohas_bulb2","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":580,"y":280,"wires":[[]]},{"id":"1511c8a0.11de87","type":"trigger","z":"16d45c1a.b3db7c","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"10","extend":false,"units":"s","reset":"","bytopic":"all","outputs":1,"x":370,"y":280,"wires":[["536d60e0.64ba7"]]},{"id":"d65e036d.9ac66","type":"eztimer","z":"16d45c1a.b3db7c","name":"Sunset","debug":false,"autoname":"sunsetStart - dawn","tag":"eztimer","suspended":false,"sendEventsOnSuspend":false,"timerType":"1","startupMessage":false,"ontype":"1","ontimesun":"sunsetStart","ontimetod":"17:00","onpropertytype":"msg","onproperty":"payload","onvaluetype":"str","onvalue":"on","onoffset":0,"onrandomoffset":0,"onsuppressrepeats":false,"offtype":"1","offtimesun":"dawn","offtimetod":"dusk","offduration":"00:01:00","offpropertytype":"msg","offproperty":"payload","offvaluetype":"str","offvalue":"off","offoffset":0,"offrandomoffset":0,"offsuppressrepeats":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":360,"y":220,"wires":[["dca4a7e0.77f6d8"]]}]
I’d be very grateful for any advice, please.
Jim