Good Morning,
I have the flow below which is to trigger on the status of the vacuum chaning to docked.
The Flow appears to trigger but the resulting task is not marked completed:
[{"id":"4501f74f750d3e9d","type":"debug","z":"99dc8ef930de5404","name":"debug 93","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1820,"y":3560,"wires":[]},{"id":"9f2fd633eae9fd16","type":"api-call-service","z":"99dc8ef930de5404","name":"Update Completed Item","server":"6e751b1b.8f17c4","version":5,"debugenabled":false,"domain":"todo","service":"update_item","areaId":[],"deviceId":[],"entityId":["todo.house"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"results"}],"queue":"none","x":1590,"y":3560,"wires":[["4501f74f750d3e9d"]]},{"id":"ac8f010273a36bea","type":"switch","z":"99dc8ef930de5404","name":"Found","property":"payload.data.item","propertyType":"msg","rules":[{"t":"nempty"},{"t":"empty"}],"checkall":"true","repair":false,"outputs":2,"x":1350,"y":3560,"wires":[["9f2fd633eae9fd16","eadd02636c1b3c70"],[]]},{"id":"c6c3b49ec427cda4","type":"change","z":"99dc8ef930de5404","name":"Get Item - House Vacuum Mop","rules":[{"t":"set","p":"payload","pt":"msg","to":"(\t $find:=payload.`todo.house`.items[summary=\"Fix The Downstairs Vaccum is unavailable, fixt it..\"];\t {\t \"data\": {\t \"item\": $find.summary,\t \"status\": \"completed\"\t }\t }\t \t)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":3520,"wires":[["ac8f010273a36bea","1ebabdf23518bae6"]]},{"id":"eadd02636c1b3c70","type":"debug","z":"99dc8ef930de5404","name":"debug 92","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1480,"y":3520,"wires":[]},{"id":"597358feb93badcc","type":"api-call-service","z":"99dc8ef930de5404","name":"Get all House Tasks","server":"6e751b1b.8f17c4","version":5,"debugenabled":false,"domain":"todo","service":"get_items","areaId":[],"deviceId":[],"entityId":["todo.house"],"data":"{\"status\":\"needs_action\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"results"}],"queue":"none","x":800,"y":3520,"wires":[["c6c3b49ec427cda4","2ebd3236d6a2b5f7"]]},{"id":"1ebabdf23518bae6","type":"debug","z":"99dc8ef930de5404","name":"debug 91","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1320,"y":3480,"wires":[]},{"id":"0a1b82db7b0e88fb","type":"server-state-changed","z":"99dc8ef930de5404","name":"House Vaccum Mop Is Docked","server":"6e751b1b.8f17c4","version":5,"outputs":2,"exposeAsEntityConfig":"","entityId":"vacuum.house_vacuum_mop","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"docked","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":510,"y":3520,"wires":[["597358feb93badcc"],[]]},{"id":"2ebd3236d6a2b5f7","type":"debug","z":"99dc8ef930de5404","name":"debug 89","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":960,"y":3600,"wires":[]},{"id":"6e751b1b.8f17c4","type":"server","name":"Home Assistant","version":5,"addon":true,"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}]