From 4aafa0d1c8638ff6cac43a59494931e6cdd4ad0e Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 16 Feb 2017 02:17:10 +0000 Subject: [PATCH] start logging Rachio watering times (or at least the last one) to MQTT --- automation/ifttt_logger.yaml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/automation/ifttt_logger.yaml b/automation/ifttt_logger.yaml index a02d9333..c3d8cda8 100755 --- a/automation/ifttt_logger.yaml +++ b/automation/ifttt_logger.yaml @@ -1,15 +1,20 @@ -################################### -## LOG IFTTT Stuff - Rachio -################################### -- alias: 'Log Sprinkler Activity' - hide_entity: True - trigger: - - platform: event - event_type: rachio_water_stops - - action: - service: logbook.log - data: - name: "Rachio Sprinkler:" - message: "The Lawn was watered just now." - +################################### +## LOG IFTTT Stuff - Rachio +################################### +- alias: 'Log Sprinkler Activity' + hide_entity: True + trigger: + - platform: event + event_type: rachio_water_stops + + action: + - service: logbook.log + data: + name: "Rachio Sprinkler:" + message: "The Lawn was watered just now." + + - service: mqtt.publish + data_template: + payload: "The Lawn was watered on {{states('sensor.date')}}" + topic: 'ifttt/rachio/watering_time' + retain: true