The automation is in Node Red as follows:
[{"id":"2915729bc4228121","type":"api-call-service","z":"bf99592ad8ae8c4d","name":"turn off bedleds","server":"3d53c477.b8ddbc","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":["e1a258db4ee870da986c3552e76ce044","0c26757869a54fa45d982761181c313c"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":770,"y":2415,"wires":[[]]},{"id":"b3ecd4135cfc72c3","type":"switch","z":"bf99592ad8ae8c4d","name":"on/off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":275,"y":2355,"wires":[["8e577ce7b40a527f","8f9a1a53fc640169"],["8f9a1a53fc640169"]]},{"id":"8e577ce7b40a527f","type":"rbe","z":"bf99592ad8ae8c4d","name":"value changed?","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":440,"y":2355,"wires":[["238b5614123c445c"]]},{"id":"238b5614123c445c","type":"switch","z":"bf99592ad8ae8c4d","name":"on/off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":605,"y":2355,"wires":[["eb567ce67cafc1d0"],["2915729bc4228121"]]},{"id":"8f9a1a53fc640169","type":"trigger","z":"bf99592ad8ae8c4d","name":"1m no motion","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"1","extend":false,"overrideDelay":false,"units":"min","reset":"on","bytopic":"all","topic":"topic","outputs":1,"x":445,"y":2415,"wires":[["8e577ce7b40a527f"]]},{"id":"e350c105484b3ea1","type":"trigger-state","z":"bf99592ad8ae8c4d","name":"bedside motion","server":"3d53c477.b8ddbc","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"binary_sensor.bedside_motion","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"targetType":"entity_id","targetValue":"input_boolean.night_time","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"on"}],"inputs":0,"outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","enableInput":false,"x":110,"y":2355,"wires":[["b3ecd4135cfc72c3"],[]]},{"id":"eb567ce67cafc1d0","type":"api-call-service","z":"bf99592ad8ae8c4d","name":"bedled night preset","server":"3d53c477.b8ddbc","version":5,"debugenabled":false,"domain":"select","service":"select_option","areaId":[],"deviceId":[],"entityId":["select.bedled1_preset","select.bedled2_preset"],"data":"{\"option\":\"Night\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":780,"y":2355,"wires":[[]]},{"id":"3d53c477.b8ddbc","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]