Hello i'm new here,
Don't know how paste an exported flow here, stil got to figure that out.
I have a motion light that go on and off by motion in the bathroom. But i don't want the light go of when i manualy set the dimmer above a certain brightness and ofcourse stay's there until i manualy set the light to off. can anyone help me with this?
[{"id":"f287086532e02894","type":"switch","z":"24aaf87c7c99fa4c","name":"","property":"data.attributes.brightness","propertyType":"msg","rules":[{"t":"lt","v":"\"brightness:80\"","vt":"jsonata"}],"checkall":"false","repair":false,"outputs":1,"x":570,"y":480,"wires":[["a4d3c3d3b90a95da"]]},{"id":"8e5fcf27c4299107","type":"debug","z":"24aaf87c7c99fa4c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1030,"y":260,"wires":[]},{"id":"73e51a50a45f664d","type":"inject","z":"24aaf87c7c99fa4c","name":"","props":[{"p":"payload"},{"p":"payload.brightness","v":"81","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false","payloadType":"str","x":110,"y":400,"wires":[["d512bdd1adf4b32c"]]},{"id":"4688893d38f24c92","type":"api-call-service","z":"24aaf87c7c99fa4c","name":"","server":"9b99f28.437031","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.lampen_badkamer"],"data":"{\"brightness_pct\":33}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":850,"y":260,"wires":[["8e5fcf27c4299107"]]},{"id":"9da2ef218b8a8860","type":"api-call-service","z":"24aaf87c7c99fa4c","name":"","server":"9b99f28.437031","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.lampen_badkamer"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[{"property":"brightness_pct","propertyType":"msg","value":"35","valueType":"str"}],"queue":"none","x":910,"y":400,"wires":[["8e5fcf27c4299107"]]},{"id":"bf61ce35077eeb7e","type":"server-state-changed","z":"24aaf87c7c99fa4c","name":"badkamer beweging","server":"9b99f28.437031","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.bewegingsmelder_badkamer_occupancy","entityidfiltertype":"substring","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","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":110,"y":460,"wires":[["c86f745b4d555a37"],["c86f745b4d555a37"]]},{"id":"b9a1ad2dcecf0e64","type":"inject","z":"24aaf87c7c99fa4c","name":"","props":[{"p":"payload"},{"p":"payload.brightness","v":"79","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"str","x":110,"y":360,"wires":[["d512bdd1adf4b32c"]]},{"id":"c86f745b4d555a37","type":"time-range-switch","z":"24aaf87c7c99fa4c","name":"","lat":"53.13405","lon":"6.56995","startTime":"22:00","endTime":"sunrise","startOffset":0,"endOffset":0,"x":280,"y":260,"wires":[["d512bdd1adf4b32c"],[]]},{"id":"d512bdd1adf4b32c","type":"api-current-state","z":"24aaf87c7c99fa4c","name":"","server":"9b99f28.437031","version":3,"outputs":2,"halt_if":"payload","halt_if_type":"msg","halt_if_compare":"is","entity_id":"light.lampen_badkamer","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":510,"y":360,"wires":[["ddb2e8c872f5e90d"],["f287086532e02894"]]},{"id":"a4d3c3d3b90a95da","type":"delay","z":"24aaf87c7c99fa4c","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":760,"y":460,"wires":[["9da2ef218b8a8860"]]},{"id":"ddb2e8c872f5e90d","type":"switch","z":"24aaf87c7c99fa4c","name":"","property":"data.attributes.brightness","propertyType":"msg","rules":[{"t":"lt","v":"80","vt":"num"}],"checkall":"false","repair":false,"outputs":1,"x":710,"y":300,"wires":[["4688893d38f24c92"]]},{"id":"9b99f28.437031","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":true,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]