2018-07-07 14:23:46 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
2020-05-23 20:22:46 +00:00
|
|
|
# Rachio Sprinkler system Support
|
2018-07-07 14:23:46 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
######################################################################
|
2020-05-23 20:22:46 +00:00
|
|
|
## [Rachio Sprinkler system](https://amzn.to/2eoPKBW) - Smart Sprinkler controller
|
2018-07-07 14:23:46 +00:00
|
|
|
######################################################################
|
2018-07-07 16:11:40 +00:00
|
|
|
|
2018-07-07 16:48:29 +00:00
|
|
|
sensor:
|
|
|
|
- platform: mqtt
|
|
|
|
state_topic: "ifttt/rachio/watering_time"
|
|
|
|
name: "Rachio_watering_time"
|
|
|
|
|
|
|
|
automation:
|
|
|
|
###################################
|
|
|
|
## LOG IFTTT Stuff - Rachio
|
|
|
|
###################################
|
|
|
|
- alias: 'Log Sprinkler Activity'
|
2020-07-20 18:33:03 +00:00
|
|
|
id: eab41723-231d-4db6-ab22-d1658665639a
|
2020-02-15 21:22:42 +00:00
|
|
|
|
2018-07-07 16:48:29 +00:00
|
|
|
trigger:
|
|
|
|
- platform: event
|
2020-02-15 21:22:42 +00:00
|
|
|
#Sent from IFTTT Webhooks : {"action":"IFTTT_Rachio", "water_time":" {{DurationInMinutes}}"}
|
|
|
|
event_type: ifttt_webhook_received
|
|
|
|
event_data:
|
|
|
|
action: IFTTT_Rachio
|
2018-07-07 16:48:29 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: mqtt.publish
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2018-07-07 16:48:29 +00:00
|
|
|
payload: '{{ states("sensor.date") }}'
|
|
|
|
topic: 'ifttt/rachio/watering_time'
|
|
|
|
retain: true
|
|
|
|
|
|
|
|
- service: script.tweet_engine_image
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2018-07-07 16:48:29 +00:00
|
|
|
tweet: >
|
|
|
|
{{ [
|
|
|
|
"Just finished watering the lawn with @_Rachio.",
|
|
|
|
"The lawn looked thirsty so I watered it.",
|
2020-07-02 18:50:39 +00:00
|
|
|
"My lawn looks great and we definately do not water it nearly as much as everyone else. (https://amzn.to/2eoPKBW)",
|
2018-07-07 16:48:29 +00:00
|
|
|
"No rain in the forecast? @_Rachio knows & chose to water the lawn.",
|
2020-05-29 15:07:22 +00:00
|
|
|
".@CCostan does not even think about watering the lawn. Me and @_Rachio take care of that.",
|
|
|
|
"Unfortunately, my Rachio Sprinkler system has cloud dependancies. Nimbus and Cumulus to be exact! Time to Water!"
|
2018-07-07 16:48:29 +00:00
|
|
|
] | random + " #SavingWater"}}
|
|
|
|
image: >-
|
|
|
|
{{ [
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/sprinkler.png",
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/sprinkler2.png",
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/sprinkler3.png"
|
|
|
|
] | random }}
|