From b037c6df0ded1b5b49a3ca8cefa18bf9520646be Mon Sep 17 00:00:00 2001 From: theautomation Date: Mon, 4 Mar 2024 13:38:33 +0100 Subject: [PATCH] Add button to go to trash can for vacuum --- .../scene_vacuum_cleaner_goto_trash_can.json | 86 ++++++++++++++++++- 1 file changed, 84 insertions(+), 2 deletions(-) diff --git a/src/data/flows/scene_vacuum_cleaner_goto_trash_can.json b/src/data/flows/scene_vacuum_cleaner_goto_trash_can.json index eb269a8..6804b62 100644 --- a/src/data/flows/scene_vacuum_cleaner_goto_trash_can.json +++ b/src/data/flows/scene_vacuum_cleaner_goto_trash_can.json @@ -7,6 +7,18 @@ "info": "", "env": [] }, + { + "id": "d83a61d4c1fcbc34", + "type": "junction", + "z": "d75716f30ab50f51", + "x": 540, + "y": 160, + "wires": [ + [ + "d1271eec3942fa45" + ] + ] + }, { "id": "0a557caa506ed5ba", "type": "inject", @@ -94,13 +106,13 @@ "entityId": [ "vacuum.roborock_s6_pure" ], - "data": "{\"x_coord\":29235,\"y_coord\":26134}", + "data": "{\"x_coord\":29235,\"y_coord\":26534}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 640, + "x": 660, "y": 100, "wires": [ [] @@ -137,6 +149,43 @@ [] ] }, + { + "id": "0d644c89b4079f86", + "type": "ha-button", + "z": "d75716f30ab50f51", + "name": "vacuum_goto_trash_can", + "version": 0, + "debugenabled": false, + "outputs": 1, + "entityConfig": "0171b37ae30b230d", + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "", + "valueType": "triggerId" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "entity" + } + ], + "x": 130, + "y": 160, + "wires": [ + [ + "d83a61d4c1fcbc34" + ] + ] + }, { "id": "4ba92433.2478cc", "type": "server", @@ -159,5 +208,38 @@ "statusHourCycle": "h23", "statusTimeFormat": "h:m", "enableGlobalContextStore": true + }, + { + "id": "0171b37ae30b230d", + "type": "ha-entity-config", + "server": "4ba92433.2478cc", + "deviceConfig": "", + "name": "vacuum_goto_trash_can", + "version": "6", + "entityType": "button", + "haConfig": [ + { + "property": "name", + "value": "vacuum_goto_trash_can" + }, + { + "property": "icon", + "value": "" + }, + { + "property": "entity_picture", + "value": "" + }, + { + "property": "entity_category", + "value": "" + }, + { + "property": "device_class", + "value": "" + } + ], + "resend": false, + "debugEnabled": false } ] \ No newline at end of file