Fixing up Medicine notifications #780, #168

This commit is contained in:
ccostan 2020-06-23 13:22:59 -04:00
parent 5000a4ca13
commit e004abb16f
3 changed files with 10 additions and 12 deletions

View File

@ -1,7 +1,7 @@
family:
entities:
- device_tracker.carlo
- device_tracker.carlo_xsmax_3
- device_tracker.carlo_xsmax
- device_tracker.stacey
- device_tracker.stacey_6s

View File

@ -10,8 +10,8 @@ filter:
- climate
- cover
- lock
- camera
exclude_domains:
- camera
- media_player
- sensor
- script

View File

@ -2,12 +2,10 @@
# Realtime Debugging Related Packages
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# More information found here #780, #168
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/780
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/168
#-------------------------------------------
# homeassistant:
# customize_glob:
# "sensor.carlo_6*":
#
# "sensor.staceys_iphone_*":
notify:
- platform: ios
@ -73,16 +71,15 @@ automation:
title: 'Medicine Reminder'
value1: 'Ok. I will remind you when you get home.'
who: 'carlo'
apns_id: 'Medicine'
- wait_template: >-
{{ states.device_tracker.carlo.state == 'home' }}
- service: script.notify_engine
data_template:
title: 'Medicine Reminder'
value1: 'Ok. I will remind you when you get home.'
value1: 'Now that your home, please take your medicine!'
who: 'carlo'
- service: notify.ios_carloxsmax
data:
message: "Now that your home, please take your medicine!"
apns_id: 'Medicine'
- alias: Medicine Reminder
initial_state: true
@ -112,5 +109,6 @@ automation:
value1: 'Please take your Medicine!'
ios_category: "tablet"
who: "carlo"
apns_id: 'Medicine'
## Reminders to take my Medicine! - End.