NR - Can't get vacuums to start when we leave

I had this working with bigtimer, but it was triggering the vacuums to run multiple times a day.

Now, I can’t seem to get the trigger to occur when we leave the house. I think I have a conflicting message, but debug isn’t reporting properly and I can’t tell where the message is failing. Can someone please help guide me?

[{"id":"092a822f4b3d29f5","type":"switch","z":"50f9de41.a0701","d":true,"name":"Filter: Manual","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"Manual","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":360,"y":340,"wires":[["6f6c1768acb10388"]]},{"id":"3e1ad93603b1ab94","type":"server-state-changed","z":"50f9de41.a0701","d":true,"name":"Start Vacuums","server":"84a8d823.e15248","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"input_select.start_vacuums","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":140,"y":340,"wires":[["092a822f4b3d29f5","cb0b958991125e70"]]},{"id":"6f6c1768acb10388","type":"delay","z":"50f9de41.a0701","d":true,"name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":520,"y":340,"wires":[["4332bb6ff2c69f2f"]]},{"id":"cb0b958991125e70","type":"switch","z":"50f9de41.a0701","d":true,"name":"Filter: Auto","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"Auto","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":350,"y":380,"wires":[["a11a3710a6a394ba"]]},{"id":"4332bb6ff2c69f2f","type":"change","z":"50f9de41.a0701","d":true,"name":"Manual Override \\n Start","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"x":690,"y":340,"wires":[["0bcd0f4f8e5f9564"]]},{"id":"a11a3710a6a394ba","type":"change","z":"50f9de41.a0701","d":true,"name":"Stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":440,"wires":[["a584aca08ec5ccf8"]]},{"id":"0bcd0f4f8e5f9564","type":"api-call-service","z":"50f9de41.a0701","d":true,"name":"Turn on Vacuums","server":"84a8d823.e15248","version":5,"debugenabled":false,"domain":"vacuum","service":"start","areaId":[],"deviceId":[],"entityId":["vacuum.roborock_q5","vacuum.roborock_s8_pro_ultra"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"x":930,"y":340,"wires":[[]]},{"id":"39b1a3c2ee448d50","type":"api-current-state","z":"50f9de41.a0701","d":true,"name":"Check Vacuum Mode","server":"84a8d823.e15248","version":5,"outputs":2,"halt_if":"auto","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_select.start_vacuums","blockInputOverrides":false,"outputProperties":[],"for":"0","forType":"num","forUnits":"minutes","x":380,"y":480,"wires":[["7e2ec076c3d617a8"],["a11a3710a6a394ba"]]},{"id":"fbf36a7e0a9d1d80","type":"server-state-changed","z":"50f9de41.a0701","d":true,"name":"Someone came home","server":"84a8d823.e15248","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"group.peeps","entityIdType":"exact","outputInitially":true,"stateType":"str","ifState":"home","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":120,"y":520,"wires":[["a11a3710a6a394ba"],[]]},{"id":"a584aca08ec5ccf8","type":"api-call-service","z":"50f9de41.a0701","d":true,"name":"Turn off Vacuums","server":"84a8d823.e15248","version":5,"debugenabled":true,"domain":"vacuum","service":"return_to_base","areaId":[],"deviceId":[],"entityId":["vacuum.roborock_q5","vacuum.roborock_s8_pro_ultra"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":930,"y":400,"wires":[[]]},{"id":"7e2ec076c3d617a8","type":"change","z":"50f9de41.a0701","d":true,"name":"Start","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":400,"wires":[["0bcd0f4f8e5f9564"]]},{"id":"df7018ea726e9e65","type":"time-range-switch","z":"50f9de41.a0701","d":true,"name":"Within 0800-1500?","lat":"00.89654","lon":"-100.30287","startTime":"08:00","endTime":"15:00","x":370,"y":420,"wires":[["39b1a3c2ee448d50"],[]]},{"id":"c3e2e1591b883044","type":"inject","z":"50f9de41.a0701","d":true,"name":"We left before 0800","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"01 08 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":400,"wires":[["df7018ea726e9e65"]]},{"id":"74448f1fe5915653","type":"trigger-state","z":"50f9de41.a0701","d":true,"name":"All of us left ","server":"84a8d823.e15248","version":4,"inputs":0,"outputs":2,"exposeAsEntityConfig":"","entityId":"group.peeps","entityIdType":"exact","debugEnabled":true,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"not_home"}],"customOutputs":[],"outputInitially":true,"stateType":"str","enableInput":false,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":150,"y":460,"wires":[["df7018ea726e9e65"],[]]},{"id":"84a8d823.e15248","type":"server","name":"Home Assistant","version":5,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]

I see in the current state auto is lower case, In the switch nodes you have the first letter capitalized. It needs to match the state exactly, auto is not the same as Auto.

1 Like

Ahh…I should have known better, I wondered if it was case sensitive.

This looks like it resolved it, THANK YOU.

1 Like