Updated IOS actions to use the notification script engine as well : Code from #357
This commit is contained in:
parent
33c9fb52f9
commit
4e13836c94
|
@ -29,9 +29,10 @@
|
|||
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
value1: 'Took Medicine today.'
|
||||
who: "parents"
|
||||
title: 'Medicine Reminder Completed'
|
||||
value1: 'Carlo Took Medicine today.'
|
||||
who: 'parents'
|
||||
- delay:
|
||||
minutes: 1
|
||||
- service: automation.turn_on
|
||||
entity_id: automation.log_medicine_activity
|
||||
entity_id: automation.log_medicine_activity
|
||||
|
|
|
@ -63,9 +63,6 @@ automation:
|
|||
event_data:
|
||||
actionName: TABLET_TAKEN
|
||||
action:
|
||||
- service: notify.ios_carloxsmax
|
||||
data:
|
||||
message: "Great job!"
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.medicine
|
||||
|
||||
|
@ -76,11 +73,18 @@ automation:
|
|||
event_data:
|
||||
actionName: NOT_HOME
|
||||
action:
|
||||
- service: notify.ios_carloxsmax
|
||||
data:
|
||||
message: "Ok. I will remind you when you get home."
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
title: 'Medicine Reminder'
|
||||
value1: 'Ok. I will remind you when you get home.'
|
||||
who: 'carlo'
|
||||
- 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.'
|
||||
who: 'carlo'
|
||||
- service: notify.ios_carloxsmax
|
||||
data:
|
||||
message: "Now that your home, please take your medicine!"
|
||||
|
@ -107,15 +111,11 @@ automation:
|
|||
state: 'off'
|
||||
|
||||
action:
|
||||
- service: notify.ios_carloxsmax
|
||||
data:
|
||||
title: "Medicine Alert!"
|
||||
message: "Please take your Medicine!"
|
||||
data:
|
||||
push:
|
||||
category: "tablet"
|
||||
action_data:
|
||||
entity_id: light.test
|
||||
my_custom_data: foo_bar
|
||||
- service: script.notify_engine
|
||||
data_template:
|
||||
title: 'Medicine Alert!'
|
||||
value1: 'Please take your Medicine!'
|
||||
ios_category: "tablet"
|
||||
who: "carlo"
|
||||
|
||||
## Reminders to take my Medicine! - End.
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
group.outdoor_front_lights:
|
||||
state: 'on'
|
||||
#color_name: 'Dark Spring Green'
|
||||
rgb_color: [23,114,69]
|
||||
color_name: 'Green'
|
||||
|
||||
- name: month_pi_colors
|
||||
entities:
|
||||
|
|
Loading…
Reference in New Issue