From 40a4913effcf40e64753f90a70680179f8a0c70f Mon Sep 17 00:00:00 2001 From: ccostan Date: Thu, 8 Jul 2021 15:57:50 -0400 Subject: [PATCH] Starting to prep for #1072 - IOS refactor --- config/.HA_VERSION | 2 +- config/configuration.yaml | 1 - config/packages/ios.yaml | 72 ++++++++++++++++++---------------- config/packages/lightning.yaml | 4 +- 4 files changed, 41 insertions(+), 38 deletions(-) diff --git a/config/.HA_VERSION b/config/.HA_VERSION index 1dd0691e..fb449964 100755 --- a/config/.HA_VERSION +++ b/config/.HA_VERSION @@ -1 +1 @@ -2021.6.4 \ No newline at end of file +2021.7.1 \ No newline at end of file diff --git a/config/configuration.yaml b/config/configuration.yaml index cd74b283..42c18f7f 100755 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -29,7 +29,6 @@ homeassistant: # api_password: !secret http_password network: zeroconf: - ipv6: false system_health: #Note: The influxdb runs along side the HA DB. It does not replace it. influxdb is used to grab data for Grafana. diff --git a/config/packages/ios.yaml b/config/packages/ios.yaml index 5b01a751..435bad5c 100755 --- a/config/packages/ios.yaml +++ b/config/packages/ios.yaml @@ -49,40 +49,6 @@ input_boolean: icon: mdi:tablet automation: - - alias: Tablet Already taken - id: 1f295bb8-8925-4b22-8f75-9fe079b295a8 - trigger: - platform: event - event_type: ios.notification_action_fired - event_data: - actionName: TABLET_TAKEN - action: - - service: input_boolean.turn_on - entity_id: input_boolean.medicine - - - alias: Remind Me Later - id: 79b49c85-f832-47d7-b02d-bff099ef6fbc - trigger: - platform: event - event_type: ios.notification_action_fired - event_data: - actionName: NOT_HOME - action: - - service: script.notify_engine - data: - title: 'Medicine Reminder' - value1: 'Ok. I will remind you when you get home.' - who: 'carlo' - apns_id: 'Medicine' - - wait_template: >- - {{ states.person.carlo.state == 'home' }} - - service: script.notify_engine - data: - title: 'Medicine Reminder' - value1: 'Now that your home, please take your medicine!' - who: 'carlo' - apns_id: 'Medicine' - - alias: Medicine Reminder id: 78c47087-8242-470c-97d1-3dc5747ed576 initial_state: true @@ -114,4 +80,42 @@ automation: who: "carlo" apns_id: 'Medicine' + - alias: Remind Me Later + id: 79b49c85-f832-47d7-b02d-bff099ef6fbc + trigger: + platform: event + event_type: ios.notification_action_fired + event_data: + actionName: NOT_HOME + action: + - service: script.notify_engine + data: + title: 'Medicine Reminder' + value1: 'Ok. I will remind you when you get home.' + who: 'carlo' + apns_id: 'Medicine' + - wait_template: >- + {{ states.person.carlo.state == 'home' }} + - service: script.notify_engine + data: + title: 'Medicine Reminder' + value1: 'Now that your home, please take your medicine!' + who: 'carlo' + apns_id: 'Medicine' + + - alias: Tablet Already taken + id: 1f295bb8-8925-4b22-8f75-9fe079b295a8 + trigger: + platform: event + event_type: ios.notification_action_fired + event_data: + actionName: TABLET_TAKEN + action: + - service: input_boolean.turn_on + entity_id: input_boolean.medicine + + + + + ## Reminders to take my Medicine! - End. diff --git a/config/packages/lightning.yaml b/config/packages/lightning.yaml index f11bf5dd..303bda0c 100755 --- a/config/packages/lightning.yaml +++ b/config/packages/lightning.yaml @@ -72,7 +72,7 @@ automation: call_garage_check: 1 - delay: - minutes: 20 + minutes: 60 - service: script.tweet_engine_image data: @@ -95,4 +95,4 @@ automation: ] | random }} - delay: - minutes: 20 + minutes: 60