Skip to content

Commit

Permalink
Starting to prep for #1072 - IOS refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ccostan committed Jul 8, 2021
1 parent 79819a0 commit 40a4913
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 38 deletions.
2 changes: 1 addition & 1 deletion config/.HA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.6.4
2021.7.1
1 change: 0 additions & 1 deletion config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
72 changes: 38 additions & 34 deletions config/packages/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
4 changes: 2 additions & 2 deletions config/packages/lightning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ automation:
call_garage_check: 1

- delay:
minutes: 20
minutes: 60

- service: script.tweet_engine_image
data:
Expand All @@ -95,4 +95,4 @@ automation:
] | random }}
- delay:
minutes: 20
minutes: 60

0 comments on commit 40a4913

Please sign in to comment.