Skip to content

Commit

Permalink
Merge pull request #478 from PiotrMachowski/dev
Browse files Browse the repository at this point in the history
v2.1.1
  • Loading branch information
PiotrMachowski authored Sep 14, 2022
2 parents d6cfa80 + 8289cd7 commit 52ce607
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "v2.1.0",
"version": "v2.1.1",
"tasks": [
{
"type": "npm",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xiaomi-vacuum-map-card",
"version": "v2.1.0",
"version": "v2.1.1",
"description": "Xiaomi Vacuum Map Card",
"keywords": [
"home-assistant",
Expand Down
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const CARD_VERSION = "v2.1.0";
export const CARD_VERSION = "v2.1.1";
export const CARD_CUSTOM_ELEMENT_NAME = "xiaomi-vacuum-map-card";
export const EDITOR_CUSTOM_ELEMENT_NAME = "xiaomi-vacuum-map-card-editor";
export const ACTION_HANDLER_CUSTOM_ELEMENT_NAME = "action-handler-xiaomi-vacuum-map-card";
Expand Down
8 changes: 4 additions & 4 deletions src/model/generators/platform_templates/hypfer_valetudo.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"evaluate_data_as_template": true,
"service_data": {
"topic": "[[topic]]/ZoneCleaningCapability/start/set",
"payload": "{\"zones\": [{%for s in ('[[selection]]')|from_json %}{ \"points\": {\"pA\": { \"x1\": {{s[0]}}, \"y1\": {{s[1]}} }, \"pB\": { \"x1\": {{s[2]}}, \"y1\": {{s[1]}} }, \"pC\": { \"x1\": {{s[2]}}, \"y1\": {{s[3]}} }, \"pD\": { \"x1\": {{s[0]}}, \"y1\": {{s[3]}} } }, \"iterations\": [[repeats]]}{%if not loop.last%},{%endif%}{%endfor%}]}"
"payload": "{\"zones\": [{%for s in ('[[selection]]')|from_json %}{ \"points\": {\"pA\": { \"x\": {{s[0]}}, \"y\": {{s[1]}} }, \"pB\": { \"x\": {{s[2]}}, \"y\": {{s[1]}} }, \"pC\": { \"x\": {{s[2]}}, \"y\": {{s[3]}} }, \"pD\": { \"x\": {{s[0]}}, \"y\": {{s[3]}} } }, \"iterations\": [[repeats]]}{%if not loop.last%},{%endif%}{%endfor%}]}"
}
}
},
Expand All @@ -44,7 +44,7 @@
"evaluate_data_as_template": true,
"service_data": {
"topic": "[[topic]]/ZoneCleaningCapability/start/set",
"payload": "{\"zones\": [{%for s in ('[[selection]]')|from_json %}{ \"points\": {\"pA\": { \"x1\": {{s[0]}}, \"y1\": {{s[1]}} }, \"pB\": { \"x1\": {{s[2]}}, \"y1\": {{s[1]}} }, \"pC\": { \"x1\": {{s[2]}}, \"y1\": {{s[3]}} }, \"pD\": { \"x1\": {{s[0]}}, \"y1\": {{s[3]}} } }, \"iterations\": [[repeats]]}{%if not loop.last%},{%endif%}{%endfor%}]}"
"payload": "{\"zones\": [{%for s in ('[[selection]]')|from_json %}{ \"points\": {\"pA\": { \"x\": {{s[0]}}, \"y\": {{s[1]}} }, \"pB\": { \"x\": {{s[2]}}, \"y\": {{s[1]}} }, \"pC\": { \"x\": {{s[2]}}, \"y\": {{s[3]}} }, \"pD\": { \"x\": {{s[0]}}, \"y\": {{s[3]}} } }, \"iterations\": [[repeats]]}{%if not loop.last%},{%endif%}{%endfor%}]}"
}
}
},
Expand All @@ -58,7 +58,7 @@
"service": "mqtt.publish",
"service_data": {
"topic": "[[topic]]/GoToLocationCapability/go/set",
"payload": "{ \"spot_coordinates\": { \"x\": [[point_x]], \"y\": [[point_y]] } }"
"payload": "{ \"coordinates\": { \"x\": [[point_x]], \"y\": [[point_y]] } }"
}
}
},
Expand All @@ -72,7 +72,7 @@
"service": "mqtt.publish",
"service_data": {
"topic": "[[topic]]/GoToLocationCapability/go/set",
"payload": "{ \"spot_coordinates\": { \"x\": \"[[point_x]]\", \"y\": \"[[point_y]]\" } }"
"payload": "{ \"coordinates\": { \"x\": \"[[point_x]]\", \"y\": \"[[point_y]]\" } }"
}
}
}
Expand Down

0 comments on commit 52ce607

Please sign in to comment.