Thanks for the replys.
Here my actual flow:
[{"id":"aeb907cd.6f0168","type":"switch","z":"f431c46a.84ab58","name":"motion 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":360,"y":360,"wires":[["ecc8799d.9897a8","9e961e19.a9aa3"],["ecc8799d.9897a8"]]},{"id":"9e961e19.a9aa3","type":"api-current-state","z":"f431c46a.84ab58","name":"Dark?","server":"fefd8095.1f637","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.lichtsensor","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":690,"y":220,"wires":[["25c1c62c.b7cdca"]]},{"id":"25c1c62c.b7cdca","type":"switch","z":"f431c46a.84ab58","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"8","vt":"num"},{"t":"gt","v":"8","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":930,"y":220,"wires":[["e753feb8.21a25","236e49cf.56e9c6"],[]]},{"id":"e753feb8.21a25","type":"time-range-switch","z":"f431c46a.84ab58","name":"22:30 - Sunrise","lat":"52.207329","lon":"9.555720","startTime":"22:30","endTime":"09:30","startOffset":0,"endOffset":0,"x":1160,"y":200,"wires":[["ceebe219.248c1"],["aec6a70f.4e97d8"]]},{"id":"ceebe219.248c1","type":"api-call-service","z":"f431c46a.84ab58","name":"Dimm-lights 3%","server":"fefd8095.1f637","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.flur_unten_2","data":"{\"brightness\":3, \"transition\":1}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1380,"y":260,"wires":[["9adb6719.fe0d98"]]},{"id":"aec6a70f.4e97d8","type":"api-call-service","z":"f431c46a.84ab58","name":"Light","server":"fefd8095.1f637","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.flur_unten","data":"{\"brightness\":200, \"transition\":1}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1350,"y":340,"wires":[["9adb6719.fe0d98"]]},{"id":"b8d1bfb2.40c37","type":"server-state-changed","z":"f431c46a.84ab58","name":"Motion","server":"fefd8095.1f637","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.presence_manu","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":false,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":110,"y":360,"wires":[["aeb907cd.6f0168"]]},{"id":"9adb6719.fe0d98","type":"debug","z":"f431c46a.84ab58","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1640,"y":340,"wires":[]},{"id":"ecc8799d.9897a8","type":"stoptimer","z":"f431c46a.84ab58","duration":"30","units":"Second","payloadtype":"num","payloadval":"0","name":"","x":590,"y":400,"wires":[["a9b783bf.9f949"],[]]},{"id":"a9b783bf.9f949","type":"api-current-state","z":"f431c46a.84ab58","name":"motion?","server":"fefd8095.1f637","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.presence_manu","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":800,"y":400,"wires":[[],["9c00bbed.f6bb58"]]},{"id":"c37e530c.3f992","type":"api-call-service","z":"f431c46a.84ab58","name":"Off","server":"fefd8095.1f637","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.flur_unten","data":"","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1250,"y":420,"wires":[[]]},{"id":"9c00bbed.f6bb58","type":"api-current-state","z":"f431c46a.84ab58","name":"Lights On?","server":"fefd8095.1f637","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.flur_unten","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1010,"y":400,"wires":[[],["c37e530c.3f992"]]},{"id":"3fb18031.ab363","type":"comment","z":"f431c46a.84ab58","name":"Flur Licht bewegung","info":"","x":150,"y":260,"wires":[]},{"id":"236e49cf.56e9c6","type":"time-range-switch","z":"f431c46a.84ab58","name":"20:30 - Sunrise","lat":"52.207329","lon":"9.555720","startTime":"20:30","endTime":"22:30","startOffset":0,"endOffset":0,"x":1160,"y":120,"wires":[["333159c3.9d2146"],[]]},{"id":"333159c3.9d2146","type":"api-call-service","z":"f431c46a.84ab58","name":"Dimm-lights 10%","server":"fefd8095.1f637","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.flur_unten","data":"{\"brightness\":10, \"transition\":1}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1390,"y":180,"wires":[[]]},{"id":"fefd8095.1f637","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]