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: family:
entities: entities:
- device_tracker.carlo - device_tracker.carlo
- device_tracker.carlo_xsmax_3 - device_tracker.carlo_xsmax
- device_tracker.stacey - device_tracker.stacey
- device_tracker.stacey_6s - device_tracker.stacey_6s

View File

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

View File

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