mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
start logging Rachio watering times (or at least the last one) to MQTT
This commit is contained in:
@@ -1,15 +1,20 @@
|
|||||||
###################################
|
###################################
|
||||||
## LOG IFTTT Stuff - Rachio
|
## LOG IFTTT Stuff - Rachio
|
||||||
###################################
|
###################################
|
||||||
- alias: 'Log Sprinkler Activity'
|
- alias: 'Log Sprinkler Activity'
|
||||||
hide_entity: True
|
hide_entity: True
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: rachio_water_stops
|
event_type: rachio_water_stops
|
||||||
|
|
||||||
action:
|
action:
|
||||||
service: logbook.log
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
name: "Rachio Sprinkler:"
|
name: "Rachio Sprinkler:"
|
||||||
message: "The Lawn was watered just now."
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user