Hello,
I don’t undestand why my light turn off.
[{"id":"64315577e4fbe873","type":"server-state-changed","z":"bc4f7c9d8e2d107c","name":"Luz-CDB-RDC","server":"778cd90d.9f3698","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"binary_sensor.hue_motion_sensor_1_motion_3","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":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":100,"y":80,"wires":[["df89a94e4d84e46f"]]},{"id":"313bde73a6901efc","type":"api-call-service","z":"bc4f7c9d8e2d107c","name":"","server":"778cd90d.9f3698","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":["cb66632e16537223769565331fa2d72e","19c3f13a3371f964cde8ed4b879d41a0","0181da74ad241443987364c638dbc25b","2a1666afb092f53b409818012c272f20"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":80,"wires":[[]]},{"id":"df89a94e4d84e46f","type":"switch","z":"bc4f7c9d8e2d107c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","outputs":2,"x":270,"y":80,"wires":[["313bde73a6901efc"],["9cca858025e0acbe"]]},{"id":"9cca858025e0acbe","type":"delay","z":"bc4f7c9d8e2d107c","name":"","pauseType":"delay","timeout":"20","timeoutUnits":"seconds","rate":"1","nbRateUnits":"30","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":420,"y":140,"wires":[["b84e258f25a9d20d"]]},{"id":"b84e258f25a9d20d","type":"api-call-service","z":"bc4f7c9d8e2d107c","name":"","server":"778cd90d.9f3698","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":["cb66632e16537223769565331fa2d72e","19c3f13a3371f964cde8ed4b879d41a0","0181da74ad241443987364c638dbc25b","2a1666afb092f53b409818012c272f20"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":570,"y":140,"wires":[[]]},{"id":"778cd90d.9f3698","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"","statusHourCycle":"h23","statusTimeFormat":"h:m:s","enableGlobalContextStore":true}]