1
0
mirror of https://github.com/Adam-Ant/home-assistant synced 2024-11-14 15:36:22 +00:00
home-assistant/automation/pill_reminder.yaml

36 lines
702 B
YAML
Raw Normal View History

2016-11-29 17:15:25 +00:00
- alias: Pill Morning Reset
trigger:
platform: time
hours: 06
minutes: 0
seconds: 0
action:
- service: script.turn_on
entity_id: script.toggle_pill
- alias: Pill Notification Check
trigger:
platform: time
hours: 13
minutes: 0
seconds: 0
condition:
condition: numeric_state
entity_id: sensor.last_pill
above: 25000
action:
- service: notify.adams_android
data:
title: 'Take your pills!'
message: 'Take your pills you lazy shit!'
- alias: Pill Afternoon Reset
trigger:
platform: time
hours: 13
minutes: 0
seconds: 10
action:
- service: script.turn_on
entity_id: script.toggle_pill