Set up Nightly Restarts. #307
This commit is contained in:
parent
bc81e50a6b
commit
e76821fd4e
|
@ -3,20 +3,24 @@
|
||||||
## Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0).
|
## Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0).
|
||||||
###################################
|
###################################
|
||||||
|
|
||||||
- alias: Heal ZWave Nightly
|
- alias: Heal Components Nightly
|
||||||
hide_entity: True
|
hide_entity: True
|
||||||
trigger:
|
trigger:
|
||||||
platform: time
|
platform: time
|
||||||
at: '2:31:00'
|
at: '2:31:00'
|
||||||
action:
|
action:
|
||||||
# - service: zwave.heal_network - Not needed anymore since I've migrated to Wink.
|
# - 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
|
- service: script.tweet_engine
|
||||||
data_template:
|
data_template:
|
||||||
tweet: >
|
tweet: >
|
||||||
{{ [
|
{{ [
|
||||||
"While they sleep, I self heal the Z-Wave network with Wink.",
|
"While they sleep, I self heal the #Z-Wave network with #Wink. (http://amzn.to/2E9Vax2)",
|
||||||
"Nightly Z-WAVE Self heals keep all the gear in check! (http://amzn.to/2q17R4S)",
|
"2:30am, Time to restart the #Amazon Alarm Panels for a fresh start in the morning. (http://www.vmwareinfo.com/2017/08/project-update-visualization-of-home.html)",
|
||||||
"Every night at 2:31am, I do my self-heal and rebuild the ZWAVE network.",
|
"Restarting the #Amazon Fire Tablets nightly to clear memory issues or any other bugs (http://www.vmwareinfo.com/2017/07/visualizing-smart-home-using-home.html)",
|
||||||
"Without my Nightly ZWave Self Heal, things get a little whackado."
|
"Nightly #Z-WAVE Self heals keep all the gear in check! (http://amzn.to/2q17R4S)",
|
||||||
] | random + " #SelfHeal #ZWave"}}
|
"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."
|
||||||
|
] | random + " #SelfHeal "}}
|
||||||
|
|
|
@ -6,16 +6,22 @@
|
||||||
homeassistant:
|
homeassistant:
|
||||||
customize_glob:
|
customize_glob:
|
||||||
"sensor.*_alarm_panel*":
|
"sensor.*_alarm_panel*":
|
||||||
|
|
||||||
hidden: False
|
hidden: False
|
||||||
"binary_sensor.*_alarm_panel*":
|
"binary_sensor.*_alarm_panel*":
|
||||||
|
|
||||||
hidden: False
|
hidden: False
|
||||||
|
|
||||||
media_player:
|
media_player:
|
||||||
- platform: floorplan_speaker
|
- platform: floorplan_speaker
|
||||||
name: Bedroom Alarm Panel
|
name: Bedroom Alarm Panel
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: command_line
|
||||||
|
switches:
|
||||||
|
bedroom_restart:
|
||||||
|
command_on: !secret bedroom_restart_on
|
||||||
|
friendly_name: Restart Bedroom Panel
|
||||||
|
# This restart switch is called from the Self_heal nightly Automation.
|
||||||
|
|
||||||
#---Sensors for Fire Tablet-----------------------------
|
#---Sensors for Fire Tablet-----------------------------
|
||||||
|
|
||||||
light:
|
light:
|
||||||
|
@ -33,12 +39,10 @@ binary_sensor:
|
||||||
name: Bedroom Motion
|
name: Bedroom Motion
|
||||||
device_class: motion
|
device_class: motion
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
hidden: False
|
hidden: False
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
state_topic: floorplan/bedroom_plugged
|
state_topic: floorplan/bedroom_plugged
|
||||||
name: Bedroom Plugged
|
name: Bedroom Plugged
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
hidden: False
|
hidden: False
|
||||||
|
|
|
@ -165,7 +165,7 @@ automation:
|
||||||
"{{states.sensor.doorbell_presses.state}} people came to the door today and pressed the bell.",
|
"{{states.sensor.doorbell_presses.state}} people came to the door today and pressed the bell.",
|
||||||
"The #Docker Host has been running for {{states.sensor.since_last_boot_templated.state}}",
|
"The #Docker Host has been running for {{states.sensor.since_last_boot_templated.state}}",
|
||||||
"The #Docker Host for Home Assistant is using {{states.sensor.disk_used_.state}}% of the hard drive currently. ",
|
"The #Docker Host for Home Assistant is using {{states.sensor.disk_used_.state}}% of the hard drive currently. ",
|
||||||
"My Home Assistant Database is currently using {{states.sensor.database_sensor.state}} MBs. To get this #Stat visit (https://github.com/robmarkcole/HASS-filesize-sensor)",
|
"My Home Assistant Database is currently using {{states.sensor.database_sensor.state}} MBs. To get this #Stat for your HA, visit (https://github.com/robmarkcole/HASS-filesize-sensor)",
|
||||||
"The {{states.media_player.living_room_ultra.attributes.friendly_name}} #Roku is playing #{{states.media_player.living_room_ultra.attributes.app_name}}.",
|
"The {{states.media_player.living_room_ultra.attributes.friendly_name}} #Roku is playing #{{states.media_player.living_room_ultra.attributes.app_name}}.",
|
||||||
"The {{states.media_player.upstairs_living_room.attributes.friendly_name}} #Roku is playing #{{states.media_player.upstairs_living_room.attributes.app_name}}. (http://amzn.to/2lYZEup)",
|
"The {{states.media_player.upstairs_living_room.attributes.friendly_name}} #Roku is playing #{{states.media_player.upstairs_living_room.attributes.app_name}}. (http://amzn.to/2lYZEup)",
|
||||||
"I am running Home Assistant version {{states.sensor.ha_installed_version.state}} (https://github.com/CCOSTAN/Home-AssistantConfig)",
|
"I am running Home Assistant version {{states.sensor.ha_installed_version.state}} (https://github.com/CCOSTAN/Home-AssistantConfig)",
|
||||||
|
|
|
@ -14,6 +14,7 @@ forecast_key: ForcastKeyphrase
|
||||||
fitbit_user: User@email.com
|
fitbit_user: User@email.com
|
||||||
fitbit_password: abcdefghijklmnopqrstuvwxyz0123456789
|
fitbit_password: abcdefghijklmnopqrstuvwxyz0123456789
|
||||||
juicenet_access_token: abcdefghijklmnopqrstuvwxyz0123456789
|
juicenet_access_token: abcdefghijklmnopqrstuvwxyz0123456789
|
||||||
|
bedroom_restart_on: "/usr/bin/curl -k 'http://192.168.10.127:2323/?cmd=restartApp&password=SecretPassWord'"
|
||||||
nest_client_id: secret_nest_client_id
|
nest_client_id: secret_nest_client_id
|
||||||
nest_client_secret: secretnestclientid
|
nest_client_secret: secretnestclientid
|
||||||
neato_username: user@email.com
|
neato_username: user@email.com
|
||||||
|
|
Loading…
Reference in New Issue