[{"id":"1074987e.c027b8","type":"server-state-changed","z":"835ce675.3824c8","name":"Cykelställ PIR","server":"c293cfab.618ab","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.aqara_motion_cyklar_occupancy","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"on","halt_if_type":"str","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,"x":170,"y":1320,"wires":[["8c427945.b63538"],["8c427945.b63538"]]},{"id":"1849487e.9ff5a8","type":"api-call-service","z":"835ce675.3824c8","name":"Cykelställ Light on","server":"d5fcaec9.30db1","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.shelly_2_5_02_channel_2","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1050,"y":1360,"wires":[[]]},{"id":"38746a61.5b0886","type":"api-call-service","z":"835ce675.3824c8","name":"Cykelställ Light Off","server":"d5fcaec9.30db1","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.shelly_2_5_02_channel_2","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1050,"y":1420,"wires":[[]]},{"id":"b6495d2d.3294e","type":"time-range-switch","z":"835ce675.3824c8","name":"","lat":"55.77352","lon":"12.9887","startTime":"goldenHour","endTime":"sunriseEnd","startOffset":"","endOffset":0,"x":790,"y":1360,"wires":[["1849487e.9ff5a8"],[]]},{"id":"1eacbbf5.6db3c4","type":"delay","z":"835ce675.3824c8","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":800,"y":1420,"wires":[["38746a61.5b0886"]]},{"id":"af08b11d.8f207","type":"ha-api","z":"835ce675.3824c8","name":"Reset State to Off","server":"d5fcaec9.30db1","debugenabled":true,"protocol":"http","method":"post","path":"states/binary_sensor.aqara_motion_cyklar_occupancy","data":"{\"state\":\"off\"}","dataType":"json","location":"payload","locationType":"msg","responseType":"json","x":1050,"y":1300,"wires":[[]]},{"id":"802fbe9.ec03f4","type":"change","z":"835ce675.3824c8","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":1420,"wires":[["1eacbbf5.6db3c4"]]},{"id":"8fd20e3.e0884f","type":"delay","z":"835ce675.3824c8","name":"","pauseType":"delay","timeout":"6","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":740,"y":1300,"wires":[["af08b11d.8f207"]]},{"id":"8c427945.b63538","type":"delay","z":"835ce675.3824c8","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":320,"y":1320,"wires":[["c4e21c0d.94383"]]},{"id":"c4e21c0d.94383","type":"api-current-state","z":"835ce675.3824c8","name":"recheck","server":"d5fcaec9.30db1","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.aqara_motion_cyklar_occupancy","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":460,"y":1320,"wires":[["8fd20e3.e0884f","b6495d2d.3294e","802fbe9.ec03f4"],["1eacbbf5.6db3c4"]]},{"id":"c293cfab.618ab","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"d5fcaec9.30db1","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]