Hi, I’ve really been searching a lot and I can’t figure it out.
My old analog airco is automated with infrared device, and I get its status with a light sensor glue in front of the “on off” light. That works… most of the time.
So I need a babysitter that will resend the infrared call if it hasn’t started.
But if I click manually again to “switch it off” - I need the babysitter to stop its previous task. I can’t figure out how to switch this. Hope I make sense?
[{"id":"d852c9aff1378b7d","type":"server-state-changed","z":"696f8303.5ee06c","name":"Airco Switch","server":"a0eea9da.0fe1d8","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.airco","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":true,"ignorePrevStateUnknown":true,"ignorePrevStateUnavailable":true,"ignoreCurrentStateUnknown":true,"ignoreCurrentStateUnavailable":true,"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":360,"wires":[["25e16acf11b13660"],["284c2f68ee68075d"]]},{"id":"7c79186bbef6dac1","type":"delay","z":"696f8303.5ee06c","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":680,"y":340,"wires":[["32d2cbd5f81c8b11"]]},{"id":"a15dc5cd7b785f58","type":"api-current-state","z":"696f8303.5ee06c","name":"airco switch on","server":"a0eea9da.0fe1d8","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.airco","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":1080,"y":340,"wires":[[],["7442be41cdfcc832"]]},{"id":"7442be41cdfcc832","type":"api-call-service","z":"696f8303.5ee06c","name":"Turn on again","server":"a0eea9da.0fe1d8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.airco"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1260,"y":340,"wires":[[]]},{"id":"25e16acf11b13660","type":"debounce-leading-trailing","z":"696f8303.5ee06c","time":"3000","debouncetype":"trailing","name":"3sec","x":250,"y":340,"wires":[["5500e6d2d788c9ec","4a4d83c3620a8db5"]]},{"id":"661dca9a0946bc73","type":"delay","z":"696f8303.5ee06c","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":680,"y":400,"wires":[["b4a696f56b7040de"]]},{"id":"b3816d517e115305","type":"api-current-state","z":"696f8303.5ee06c","name":"airco switch on","server":"a0eea9da.0fe1d8","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.airco","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":1080,"y":400,"wires":[["f15f60bd0b3147f7"],[]]},{"id":"f15f60bd0b3147f7","type":"api-call-service","z":"696f8303.5ee06c","name":"Turn off again","server":"a0eea9da.0fe1d8","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.airco"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1260,"y":400,"wires":[[]]},{"id":"284c2f68ee68075d","type":"debounce-leading-trailing","z":"696f8303.5ee06c","time":"3000","debouncetype":"trailing","name":"3sec","x":250,"y":400,"wires":[["fd26054da2ee3750","1736c913f2cf5323"]]},{"id":"5500e6d2d788c9ec","type":"change","z":"696f8303.5ee06c","name":"set controloff","rules":[{"t":"set","p":"topic","pt":"msg","to":"controloff","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":340,"wires":[["661dca9a0946bc73"]]},{"id":"b4a696f56b7040de","type":"gate","z":"696f8303.5ee06c","name":"gate stop off","controlTopic":"controloff","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"storeName":"memory","x":870,"y":400,"wires":[["b3816d517e115305"]]},{"id":"32d2cbd5f81c8b11","type":"gate","z":"696f8303.5ee06c","name":"gate stop on","controlTopic":"controlon","defaultState":"open","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"storeName":"memory","x":870,"y":340,"wires":[["a15dc5cd7b785f58"]]},{"id":"1736c913f2cf5323","type":"change","z":"696f8303.5ee06c","name":"set controlon","rules":[{"t":"set","p":"topic","pt":"msg","to":"controlon","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"close","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":380,"wires":[["7c79186bbef6dac1"]]},{"id":"fd26054da2ee3750","type":"change","z":"696f8303.5ee06c","name":"set controloff","rules":[{"t":"set","p":"topic","pt":"msg","to":"controloff","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"open","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":420,"wires":[["661dca9a0946bc73"]]},{"id":"4a4d83c3620a8db5","type":"change","z":"696f8303.5ee06c","name":"set controlon","rules":[{"t":"set","p":"topic","pt":"msg","to":"controlon","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"open","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":300,"wires":[["7c79186bbef6dac1"]]},{"id":"a0eea9da.0fe1d8","type":"server","name":"GOOD Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30"}]