From 1b478d4ec0b8c85657e5f8720d62c901d9e296ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Thu, 3 Jan 2019 00:42:49 +0100 Subject: [PATCH] Prepare for actionable notifications and add a few coffee automations --- packages/ios.yaml | 28 ++++++++++++++++++++++++++++ packages/reminders.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 packages/ios.yaml create mode 100644 packages/reminders.yaml diff --git a/packages/ios.yaml b/packages/ios.yaml new file mode 100644 index 0000000..515be01 --- /dev/null +++ b/packages/ios.yaml @@ -0,0 +1,28 @@ +ios: + push: + categories: + - name: YesNo + identifier: yesno + actions: + - identifier: 'YES' + title: 'Ja' + - identifier: 'NO' + title: 'Nej' + - name: YesLater + identifier: yeslater + actions: + - identifier: 'YES' + title: 'OK' + - identifier: 'LATER' + title: 'Vänta' + - name: YesLaterNo + identifier: yeslaterno + actions: + - identifier: 'YES' + title: 'Ja' + - identifier: 'LATER' + title: 'Vänta' + - identifier: 'NO' + title: 'Nej' +notify: + - platform: ios diff --git a/packages/reminders.yaml b/packages/reminders.yaml new file mode 100644 index 0000000..131cb82 --- /dev/null +++ b/packages/reminders.yaml @@ -0,0 +1,30 @@ +homeassistant: + customize: + package.node_anchors: + common: &common + package: 'reminders' + +automation: + - alias: REM - Kaffet är klart + trigger: + platform: state + entity_id: switch.kaffebryggare + to: 'on' + for: + minutes: 5 + action: + - service: notify.ios_thomas_iphone + data: + title: "Fikadax!" + message: "Kaffet är färdigt!" + - alias: REM - Stäng av kaffebryggaren + trigger: + platform: state + entity_id: switch.kaffebryggare + to: 'on' + for: + minutes: 15 + action: + - service: switch.turn_off + data: + entity_id: switch.kaffebryggare