2018-01-02 00:00:45 +00:00
|
|
|
#-------------------------------------------
|
2020-06-23 17:22:59 +00:00
|
|
|
# Realtime Debugging Related Packages
|
2018-01-02 00:00:45 +00:00
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
2020-06-23 17:22:59 +00:00
|
|
|
# More information found here #780, #168
|
|
|
|
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/780
|
|
|
|
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/168
|
2018-01-02 00:00:45 +00:00
|
|
|
#-------------------------------------------
|
2018-01-06 18:59:10 +00:00
|
|
|
|
2018-02-09 19:33:55 +00:00
|
|
|
notify:
|
|
|
|
- platform: ios
|
|
|
|
- name: ios_family
|
|
|
|
platform: group
|
|
|
|
services:
|
2020-06-04 17:15:01 +00:00
|
|
|
- service: mobile_app_stacey_6s
|
|
|
|
- service: mobile_app_carlo_xsmax
|
|
|
|
- service: mobile_app_paige_6s
|
2018-02-09 19:33:55 +00:00
|
|
|
- name: ios_parents
|
|
|
|
platform: group
|
|
|
|
services:
|
2020-06-04 17:15:01 +00:00
|
|
|
- service: mobile_app_stacey_6s
|
|
|
|
- service: mobile_app_carlo_xsmax
|
2018-01-02 00:00:45 +00:00
|
|
|
|
2020-06-04 17:15:01 +00:00
|
|
|
mobile_app:
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
ios:
|
|
|
|
push:
|
|
|
|
categories:
|
|
|
|
- name: Medicine
|
|
|
|
identifier: 'tablet'
|
|
|
|
actions:
|
|
|
|
- identifier: 'TABLET_TAKEN'
|
|
|
|
title: 'Tablet Taken'
|
|
|
|
activationMode: 'background'
|
|
|
|
authenticationRequired: no
|
|
|
|
destructive: yes
|
|
|
|
|
|
|
|
- identifier: 'NOT_HOME'
|
|
|
|
title: 'I am not Home'
|
|
|
|
activationMode: 'background'
|
|
|
|
authenticationRequired: no
|
|
|
|
destructive: no
|
|
|
|
|
|
|
|
## - Reminders to take my medicine
|
|
|
|
input_boolean:
|
|
|
|
medicine:
|
|
|
|
name: Medicine Reminder
|
|
|
|
initial: off
|
|
|
|
icon: mdi:tablet
|
|
|
|
|
|
|
|
automation:
|
|
|
|
- alias: Tablet Already taken
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 1f295bb8-8925-4b22-8f75-9fe079b295a8
|
2018-01-02 00:00:45 +00:00
|
|
|
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
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 79b49c85-f832-47d7-b02d-bff099ef6fbc
|
2018-01-02 00:00:45 +00:00
|
|
|
trigger:
|
|
|
|
platform: event
|
|
|
|
event_type: ios.notification_action_fired
|
|
|
|
event_data:
|
|
|
|
actionName: NOT_HOME
|
|
|
|
action:
|
2019-03-18 01:43:55 +00:00
|
|
|
- service: script.notify_engine
|
|
|
|
data_template:
|
|
|
|
title: 'Medicine Reminder'
|
|
|
|
value1: 'Ok. I will remind you when you get home.'
|
|
|
|
who: 'carlo'
|
2020-06-23 17:22:59 +00:00
|
|
|
apns_id: 'Medicine'
|
2018-01-02 00:00:45 +00:00
|
|
|
- wait_template: >-
|
2020-08-08 23:10:36 +00:00
|
|
|
{{ states.person.carlo.state == 'home' }}
|
2019-03-18 01:43:55 +00:00
|
|
|
- service: script.notify_engine
|
|
|
|
data_template:
|
|
|
|
title: 'Medicine Reminder'
|
2020-06-23 17:22:59 +00:00
|
|
|
value1: 'Now that your home, please take your medicine!'
|
2019-03-18 01:43:55 +00:00
|
|
|
who: 'carlo'
|
2020-06-23 17:22:59 +00:00
|
|
|
apns_id: 'Medicine'
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
- alias: Medicine Reminder
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 78c47087-8242-470c-97d1-3dc5747ed576
|
2018-01-02 00:00:45 +00:00
|
|
|
initial_state: true
|
|
|
|
trigger:
|
2019-02-23 23:03:43 +00:00
|
|
|
- platform: time_pattern
|
|
|
|
minutes: '/45'
|
2018-01-02 00:00:45 +00:00
|
|
|
- platform: time
|
|
|
|
at: '21:30:00'
|
|
|
|
- platform: state
|
2020-08-08 23:10:36 +00:00
|
|
|
entity_id: person.carlo
|
2018-01-02 00:00:45 +00:00
|
|
|
to: 'home'
|
|
|
|
|
|
|
|
condition:
|
|
|
|
- condition: time
|
|
|
|
after: '21:30:00'
|
|
|
|
- condition: state
|
2020-08-08 23:10:36 +00:00
|
|
|
entity_id: person.carlo
|
2018-01-02 00:00:45 +00:00
|
|
|
state: 'home'
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.medicine
|
|
|
|
state: 'off'
|
|
|
|
|
|
|
|
action:
|
2019-03-18 01:43:55 +00:00
|
|
|
- service: script.notify_engine
|
|
|
|
data_template:
|
|
|
|
title: 'Medicine Alert!'
|
|
|
|
value1: 'Please take your Medicine!'
|
|
|
|
ios_category: "tablet"
|
|
|
|
who: "carlo"
|
2020-06-23 17:22:59 +00:00
|
|
|
apns_id: 'Medicine'
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
## Reminders to take my Medicine! - End.
|