Home-AssistantConfig/config/automation/System/Self_heal.yaml

34 lines
1.8 KiB
YAML
Executable File

###################################
## Self Healing Section -
## Home Assistant runs on my [Raspberry Pi 3](https://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](https://amzn.to/2eAiAP0).
###################################
- alias: Heal Components Nightly
id: fb8154d4-52b9-4cf1-9cd3-c9c3cf059992
trigger:
platform: time
at: '2:31:00'
action:
# - service: zwave.heal_network - Not needed anymore since I've migrated to Wink.
- service: homeassistant.turn_on
entity_id: switch.bedroom_restart_on
- service: script.tweet_engine_image
data_template:
tweet: >-
{{ [
"While they sleep, I self heal the #Z-Wave network with #Wink. (https://github.com/CCOSTAN/Home-AssistantConfig#hubs)",
"2:30am, Time to restart the #Amazon Alarm Panels for a fresh start in the morning. (https://www.vcloudinfo.com/2017/08/project-update-visualization-of-home.html)",
"Restarting the #Amazon Fire Tablets nightly to clear memory issues or any other bugs (https://www.vcloudinfo.com/2017/07/visualizing-smart-home-using-home.html)",
"Nightly #Z-WAVE Self heals keep all the gear in check! (https://github.com/CCOSTAN/Home-AssistantConfig#hubs)",
"Every night at 2:31am, I do my self-heal and rebuild the #ZWAVE network.",
"Without my Nightly #ZWave Self Heal, things get a little whackado.",
"Always working thanks to #homeassistant. Things are quiet, lets kick off a #ZWAVE heal.",
"We have come to the end of our broadcast day. Oh, who am I kidding. I will be up all night watching over the House."
] | random + " #SelfHeal "}}
image: >-
{{ [
"/config/www/custom_ui/floorplan/images/branding/dummie_book.png"
] | random }}