From dd35ca8df33b5231c85df8bc6c50695e0f50f08a Mon Sep 17 00:00:00 2001 From: Kevin Eifinger Date: Sun, 2 May 2021 20:12:49 +0200 Subject: [PATCH] Add weenect automations --- packages/weenect.yaml | 32 ++++++++++++++++++++++++++++++++ travis_secrets.yaml | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 packages/weenect.yaml diff --git a/packages/weenect.yaml b/packages/weenect.yaml new file mode 100644 index 0000000..64e9f21 --- /dev/null +++ b/packages/weenect.yaml @@ -0,0 +1,32 @@ +--- +automation: + - id: 743b7e7d-ffa8-4fa3-9c1c-62d9ada9ced8 + alias: "Setze Nayas Tracker Updaterate auf 1M wenn wir unterwegs sind" + description: "Set Nayas tracker update rate to 1m when we are not at home" + mode: single + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.is_home + from: "on" + to: "off" + action: + - service: weenect.set_update_interval + data: + tracker_id: !secret naya_tracker_id + update_interval: "1M" + - id: 652b4b69-c951-4861-8b7d-3cbb15fc8b79 + alias: "Setze Nayas Tracker Updaterate auf 60M wenn wir zu Hause sind" + description: "Set Nayas tracker update rate to 60m when we are at home" + mode: single + initial_state: true + trigger: + - platform: state + entity_id: input_boolean.is_home + from: "off" + to: "on" + action: + - service: weenect.set_update_interval + data: + tracker_id: !secret naya_tracker_id + update_interval: "60M" \ No newline at end of file diff --git a/travis_secrets.yaml b/travis_secrets.yaml index c32ac4f..91796cc 100644 --- a/travis_secrets.yaml +++ b/travis_secrets.yaml @@ -195,3 +195,5 @@ room_assistant_livingroom_health_url: "http://192.168.0.36:6415/status" room_assistant_bedroom_health_url: "http://192.168.0.37:6415/status" room_assistant_studyroom_health_url: "http://192.168.0.38:6415/status" room_assistant_bathroom_health_url: "http://192.168.0.39:6415/status" + +naya_tracker_id: "131673"