Hi there,
I use the following flow in node red with the hue motion sensor.
Can you may help me with the issue:
The motion sensor just detects / reacts 2-3 times after I moved to the corridor…
I can walk to the corridor and it reacts or not - there is no behavior behind it (can walk after 5 mins in and it detects or not. or it works fine for 3 times and then not again…)
Is it possible to increase the detection rate?
[{"id":"af7416ee.37c178","type":"tab","label":"Deckenlampe Flur","disabled":false,"info":""},{"id":"33f1f5b79159a356","type":"server-state-changed","z":"af7416ee.37c178","name":"Flur motion on","server":"818794df.29c548","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.flur_bewegungsmeldung_occupancy","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"stop","valueType":"str"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":220,"wires":[["273b42d81198cd65","ce7cc05d05385d26"],[]]},{"id":"25298461157d0380","type":"server-state-changed","z":"af7416ee.37c178","name":"Flur motion off","server":"818794df.29c548","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.flur_bewegungsmeldung_occupancy","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"false","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"","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":120,"y":270,"wires":[["273b42d81198cd65"],[]]},{"id":"40a92498ca3d7c16","type":"api-call-service","z":"af7416ee.37c178","name":"Turn off light","server":"818794df.29c548","version":5,"debugenabled":true,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.deckenlampe_flur"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":570,"y":240,"wires":[[]]},{"id":"273b42d81198cd65","type":"stoptimer-varidelay","z":"af7416ee.37c178","duration":"30","durationType":"num","units":"Second","payloadtype":"num","payloadval":"0","name":"","reporting":"every_second","persist":true,"ignoretimerpass":false,"x":375,"y":250,"wires":[["40a92498ca3d7c16"],[],[]]},{"id":"ce7cc05d05385d26","type":"time-range-switch","z":"af7416ee.37c178","name":"Tag 6:00-22:00","lat":"50.11092","lon":"8.68213","startTime":"6:00","endTime":"22:00","startOffset":0,"endOffset":0,"x":420,"y":100,"wires":[["ee6aebfc07969573"],["5ee2e83b3f98b4d6"]]},{"id":"ee6aebfc07969573","type":"api-current-state","z":"af7416ee.37c178","name":"< 30 lx","server":"818794df.29c548","version":3,"outputs":2,"halt_if":"30","halt_if_type":"num","halt_if_compare":"lte","entity_id":"sensor.flur_bewegungsmeldung_illuminance","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":590,"y":80,"wires":[["1e0fbdcc212d6825"],[]]},{"id":"1e0fbdcc212d6825","type":"api-call-service","z":"af7416ee.37c178","name":"Tag 100%","server":"818794df.29c548","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":[],"data":"{\t \"entity_id\": \"light.deckenlampe_flur\",\t \"brightness_pct\": 100\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":720,"y":60,"wires":[[]]},{"id":"5ee2e83b3f98b4d6","type":"time-range-switch","z":"af7416ee.37c178","name":"Nacht 22:00-23:00","lat":"","lon":"","startTime":"22:00","endTime":"23:00","startOffset":0,"endOffset":0,"x":670,"y":160,"wires":[["ccc9804cdbea2533"],["d7e376aea2ccc8d2"]]},{"id":"d7e376aea2ccc8d2","type":"api-current-state","z":"af7416ee.37c178","name":"< 30 lx","server":"818794df.29c548","version":3,"outputs":2,"halt_if":"30","halt_if_type":"num","halt_if_compare":"lte","entity_id":"sensor.flur_bewegungsmeldung_illuminance","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":870,"y":240,"wires":[["e4b9d6f929e7261f"],[]]},{"id":"ccc9804cdbea2533","type":"api-call-service","z":"af7416ee.37c178","name":"Nacht 30%","server":"818794df.29c548","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":[],"data":"{\t \"entity_id\": \"light.deckenlampe_flur\",\t \"brightness_pct\": 30\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1010,"y":160,"wires":[[]]},{"id":"e4b9d6f929e7261f","type":"api-call-service","z":"af7416ee.37c178","name":"Nacht 10%","server":"818794df.29c548","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":[],"data":"{\t \"entity_id\": \"light.deckenlampe_flur\",\t \"brightness_pct\": 10\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1010,"y":260,"wires":[[]]},{"id":"818794df.29c548","type":"server","name":"Home Assistant","version":5,"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","enableGlobalContextStore":true}]
Regards
Timo