Home-AssistantConfig/automation/medicine_logger.yaml
2017-03-12 06:22:30 +00:00

25 lines
587 B
YAML
Executable File

###################################
## LOG IFTTT Stuff - Rachio
###################################
- alias: 'Log Medicine Activity'
hide_entity: True
trigger:
- platform: event
event_type: simplehuman_dash
action:
- service: input_boolean.turn_on
entity_id: input_boolean.medicine
- service: logbook.log
data:
name: "Medicine Push"
message: "Took Medicine today."
- service: mqtt.publish
data_template:
payload: '{{ states("sensor.date") }}'
topic: 'dash/simplehuman/medicine_time'
retain: true