start logging Rachio watering times (or at least the last one) to MQTT

pull/76/head
CCOSTAN 9 years ago
parent 302c910f68
commit 4aafa0d1c8

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.