Hello guys!
[{"id":"7b1eae33.e8bbd","type":"api-call-service","z":"e85ca6ad.06b898","name":"Turn On Limpiador","server":"17f27332.cbbb3d","version":5,"debugenabled":false,"domain":"vacuum","service":"start","areaId":[],"deviceId":[],"entityId":["vacuum.limpiador"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":770,"y":60,"wires":[[]]},{"id":"44c73cf4.7786a4","type":"api-current-state","z":"e85ca6ad.06b898","name":"Guest Mode","server":"17f27332.cbbb3d","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.guest_mode","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":410,"y":100,"wires":[[],["3e1271c9.4f15de"]]},{"id":"3e1271c9.4f15de","type":"time-range-switch","z":"e85ca6ad.06b898","name":"","lat":"42.31343","lon":"-7.88249","startTime":"08:00","endTime":"21:00","startOffset":0,"endOffset":0,"x":590,"y":100,"wires":[["7b1eae33.e8bbd"],[]]},{"id":"7a6fc414.26a8ec","type":"api-current-state","z":"e85ca6ad.06b898","name":"Vacuum docked?","server":"17f27332.cbbb3d","version":3,"outputs":2,"halt_if":"docked","halt_if_type":"str","halt_if_compare":"is","entity_id":"vacuum.limpiador","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":390,"y":40,"wires":[["44c73cf4.7786a4"],[]]},{"id":"f6f2d29a.12c0f","type":"comment","z":"e85ca6ad.06b898","name":"Limpiador","info":"","x":80,"y":100,"wires":[]},{"id":"b8a86c15.b9fe4","type":"server-state-changed","z":"e85ca6ad.06b898","name":"Home Occupancy < 10","server":"17f27332.cbbb3d","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.home_occupancy_confidence","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"10","halt_if_type":"num","halt_if_compare":"lt","outputs":2,"output_only_on_state_change":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":140,"y":160,"wires":[["7a6fc414.26a8ec","32d591d.741ec6e"],["44d6caf1.fcbeb4"]]},{"id":"db432e5.2222bd","type":"inject","z":"e85ca6ad.06b898","name":"Start everyday at 10AM","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 10 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":280,"wires":[["d764f092.af3ca"]]},{"id":"d764f092.af3ca","type":"api-current-state","z":"e85ca6ad.06b898","name":"Vacation mode","server":"17f27332.cbbb3d","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.holiday_mode","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":380,"y":280,"wires":[["7a6fc414.26a8ec"],[]]},{"id":"e7fee426.60ca58","type":"comment","z":"e85ca6ad.06b898","name":"Limpiador on holidays","info":"","x":120,"y":240,"wires":[]},{"id":"32d591d.741ec6e","type":"api-call-service","z":"e85ca6ad.06b898","name":"Set fan speed Medium","server":"17f27332.cbbb3d","version":5,"debugenabled":false,"domain":"vacuum","service":"set_fan_speed","areaId":[],"deviceId":[],"entityId":["vacuum.limpiador"],"data":"{\"fan_speed\":\"Medium\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":660,"y":160,"wires":[[]]},{"id":"44d6caf1.fcbeb4","type":"api-call-service","z":"e85ca6ad.06b898","name":"Set fan speed Standard","server":"17f27332.cbbb3d","version":5,"debugenabled":false,"domain":"vacuum","service":"set_fan_speed","areaId":[],"deviceId":[],"entityId":["vacuum.limpiador"],"data":"{\"fan_speed\":\"Standard\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":670,"y":260,"wires":[[]]},{"id":"db64896e.450b68","type":"inject","z":"e85ca6ad.06b898","name":"manual speed set","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":930,"y":220,"wires":[["32d591d.741ec6e"]]},{"id":"76e787f2.b5cf08","type":"inject","z":"e85ca6ad.06b898","name":"manual speed set","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":890,"y":340,"wires":[["44d6caf1.fcbeb4"]]},{"id":"17f27332.cbbb3d","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]
I currently have a nodered automation that enables my vacuum when no one is at home, between certain hour range and it changes the fan speed as well.
I’m trying to add another level of complexity by adding a new condition, only allow the vacuum run after all the other conditions met BUT also if the vacuum wasn’t running for at least the previous 60 minutes. This way I avoid the vacuum do one run after the other if I leave the home 2 minutes after it finished cleaning up.
Any light on how I can ever start researching this? thanks a lot!