Home-AssistantConfig/config/packages/rachio.yaml

76 lines
2.6 KiB
YAML
Raw Normal View History

2018-07-07 14:23:46 +00:00
#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# Neato Support for D7 Connected Botvac - control my [Neato Vacuum](http://amzn.to/2kqnnqu) with Home Assistant.
#-------------------------------------------
######################################################################
## [Rachio Sprinkler system](http://amzn.to/2eoPKBW) - Smart Sprinkler controller
######################################################################
homeassistant:
2018-07-07 16:48:29 +00:00
customize_glob:
"*.rachio*":
homebridge_hidden: True
hidden: False
2018-07-07 14:23:46 +00:00
#-------------------------------------------
rachio:
api_key: !secret rachio_api
2018-07-07 16:48:29 +00:00
sensor:
- platform: mqtt
state_topic: "ifttt/rachio/watering_time"
name: "Rachio_watering_time"
group:
rachio:
entities:
- sensor.rachio_watering_time
- binary_sensor.carlorachio_online
- switch.carlorachio_in_standby_mode
- switch.backyard_shrubs
- switch.front_lawn
- switch.left_side_house
2019-02-23 19:27:23 +00:00
- switch.front_hedges_right_side_house
2018-10-15 23:23:53 +00:00
2018-07-07 16:48:29 +00:00
automation:
###################################
## LOG IFTTT Stuff - Rachio
###################################
- alias: 'Log Sprinkler Activity'
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: logbook.log
data:
name: "Rachio Sprinkler:"
message: "The Lawn was watered just now."
- service: mqtt.publish
data_template:
payload: '{{ states("sensor.date") }}'
topic: 'ifttt/rachio/watering_time'
retain: true
- service: script.tweet_engine_image
data_template:
tweet: >
{{ [
"Just finished watering the lawn with @_Rachio.",
"The lawn looked thirsty so I watered it.",
"My lawn looks great and we definately do not water it nearly as much as everyone else. (http://amzn.to/2eoPKBW)",
"No rain in the forecast? @_Rachio knows & chose to water the lawn.",
".@CCostan does not even think about watering the lawn. Me and @_Rachio take care of that."
] | 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 }}