Hello, I wanted to ask for help please.
I have a motion sensor in the hallway that when detected, turns on four lights (hallway light 1, hallway light 2, hallway light 3 and hallway light 4) and then turns them off after 60 seconds.
I have a problem with “hallway light 3”. It turns on -by itself- and when I check the understanding in Zigbee2MQTT, it is off. I have to press the power switch (to the ‘on’ position) and when I press it again (to the ‘off’ position) it turns off. Then 4 or 6 hours can pass (random) and it turns on again.
1° I can’t think of why that would happen.
2° My ‘hypothesis’ to fix it would be: find a node that would check that when: light 1, light 2 and light 4 are off, it would send a kind of reset to light 3, or turn it ‘on’ (if it is on) and turn it off 2 times (on/off 2 times) in 5 milliseconds (so that it would be imperceptible).
- Can it be done?
- Is my approach to the solution correct or is it wrong and is there something better?
Thank you very much in advance
[{"id":"70a06478ef658bad","type":"group","z":"d5fb544abc8d71e2","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["1882f8af853ad389","53aa61e11ad930f5","8684de8177fc8f06","7f214025fa6d9965","ae911df8d29ef220","39640e1fd21e9411","4853e5b9a819ccc2","47970137a53795dd","2641fc2f021711c6","0fc019306560e882","403c4508cdb64e51"],"x":134,"y":239,"w":1012,"h":322},{"id":"1882f8af853ad389","type":"api-call-service","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"Encender","server":"e8cee7e1.415b08","version":7,"debugenabled":false,"action":"light.turn_on","floorId":[],"areaId":[],"deviceId":[],"entityId":["light.luces_pasillo"],"labelId":[],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":true,"domain":"light","service":"turn_on","output_location":"","output_location_type":"none","x":900,"y":280,"wires":[["2641fc2f021711c6"]]},{"id":"53aa61e11ad930f5","type":"api-call-service","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"Apagar","server":"e8cee7e1.415b08","version":7,"debugenabled":false,"action":"light.turn_off","floorId":[],"areaId":[],"deviceId":[],"entityId":["light.luces_pasillo"],"labelId":[],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":true,"domain":"light","service":"turn_off","output_location":"","output_location_type":"none","x":900,"y":380,"wires":[[]]},{"id":"8684de8177fc8f06","type":"server-state-changed","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"Sensor movimiento","server":"e8cee7e1.415b08","version":6,"outputs":2,"exposeAsEntityConfig":"","entities":{"entity":["binary_sensor.sensor_movimiento_1_pasillo_occupancy"],"substring":[],"regex":[]},"outputInitially":false,"stateType":"str","ifState":"on","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":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":250,"y":340,"wires":[["403c4508cdb64e51"],[]]},{"id":"7f214025fa6d9965","type":"api-call-service","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"Encender","server":"e8cee7e1.415b08","version":7,"debugenabled":false,"action":"light.turn_on","floorId":[],"areaId":[],"deviceId":[],"entityId":["light.luces_pasillo"],"labelId":[],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":false,"domain":"light","service":"turn_on","output_location":"","output_location_type":"none","x":780,"y":480,"wires":[[]]},{"id":"ae911df8d29ef220","type":"api-call-service","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"Apagar","server":"e8cee7e1.415b08","version":7,"debugenabled":false,"action":"light.turn_off","floorId":[],"areaId":[],"deviceId":[],"entityId":["light.luces_pasillo"],"labelId":[],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":false,"domain":"light","service":"turn_off","output_location":"","output_location_type":"none","x":780,"y":520,"wires":[[]]},{"id":"39640e1fd21e9411","type":"inject","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":600,"y":480,"wires":[["7f214025fa6d9965"]]},{"id":"4853e5b9a819ccc2","type":"inject","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":600,"y":520,"wires":[["ae911df8d29ef220"]]},{"id":"47970137a53795dd","type":"server-state-changed","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"Estado","server":"e8cee7e1.415b08","version":6,"outputs":1,"exposeAsEntityConfig":"","entities":{"entity":["light.luces_pasillo"],"substring":[],"regex":[]},"outputInitially":true,"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":390,"y":500,"wires":[[]]},{"id":"2641fc2f021711c6","type":"delay","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"","pauseType":"delay","timeout":"60","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1060,"y":280,"wires":[["0fc019306560e882"]]},{"id":"0fc019306560e882","type":"api-call-service","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"Apagar","server":"e8cee7e1.415b08","version":7,"debugenabled":false,"action":"light.turn_off","floorId":[],"areaId":[],"deviceId":[],"entityId":["light.luces_pasillo"],"labelId":[],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":true,"domain":"light","service":"turn_off","output_location":"","output_location_type":"none","x":1060,"y":340,"wires":[[]]},{"id":"403c4508cdb64e51","type":"time-range-switch","z":"d5fb544abc8d71e2","g":"70a06478ef658bad","name":"sunsetStart / sunrise","lat":"-33.42587298220097","lon":"-70.56343230175696","startTime":"sunsetStart","endTime":"sunrise","startOffset":0,"endOffset":0,"x":520,"y":340,"wires":[["1882f8af853ad389"],["53aa61e11ad930f5"]]},{"id":"e8cee7e1.415b08","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]