Updates related to handling Power Outages. #547

This commit is contained in:
ccostan 2020-07-21 17:20:00 -04:00
parent 047bfbface
commit 1dcd89f3a9
5 changed files with 36 additions and 9 deletions

View File

@ -1 +1 @@
0.113.0b1 0.113.0b3

View File

@ -32,6 +32,11 @@
topic: "garadget/GLarge/command" topic: "garadget/GLarge/command"
payload: "get-status" payload: "get-status"
- service: group.set
data_template:
object_id: "arriving"
entities: []
- condition: state - condition: state
entity_id: sun.sun entity_id: sun.sun
state: 'above_horizon' state: 'above_horizon'

View File

@ -8,6 +8,7 @@
automation: automation:
- alias: HACS Component Update Notification - alias: HACS Component Update Notification
id: e5266b0b-017f-4c69-83a3-357aaa03dbe2 id: e5266b0b-017f-4c69-83a3-357aaa03dbe2
mode: single
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.hacs entity_id: sensor.hacs
@ -19,8 +20,7 @@ automation:
action: action:
- service: ifttt.trigger - service: ifttt.trigger
data_template: {"event":"GitPost", "value1":"HACS Update - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}", "value2":"Update to HACS: There are {{ states.sensor.hacs.state }} updates."} data_template: {"event":"GitPost", "value2":"HACS - {{ as_timestamp(now()) | timestamp_custom('%I:%M:%S %p %d%b%Y', true) }}", "value1":"Update to HACS {{state_attr('sensor.hacs','repositories')}}: There is {{ states.sensor.hacs.state }} update."}
- service: script.tweet_engine_image - service: script.tweet_engine_image
data_template: data_template:
@ -39,3 +39,6 @@ automation:
] %} ] %}
{{ pictures|random }} {{ pictures|random }}
who: 'BearStoneHA' who: 'BearStoneHA'
- delay:
days: 1

View File

@ -86,17 +86,14 @@ automation:
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/779 # https://github.com/CCOSTAN/Home-AssistantConfig/issues/779
- alias: Shut Things down if running on PowerWall - alias: Shut Things down if running on PowerWall
mode: restart
id: 37288a96-5f49-46c2-85c8-7e8794d23612 id: 37288a96-5f49-46c2-85c8-7e8794d23612
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.grid_status entity_id: sensor.grid_status
from: 'True' from: 'True'
to: 'False' to: 'False'
for:
minutes: 1
condition:
- condition: template
value_template: "{{ states('sensor.grid_status') == 'False' }}"
action: action:
- service: homeassistant.turn_off - service: homeassistant.turn_off
entity_id: entity_id:
@ -109,6 +106,28 @@ automation:
who: 'family' who: 'family'
apns_id: 'information' apns_id: 'information'
- delay:
minutes: 1
- service: homeassistant.turn_off
entity_id:
- group.interior_lights
- group.exterior_lights
- service: script.speech_engine
data_template:
value1: "Because of the Power Outage, the Lights will be recycled for 3 minutes. Lights may turn on and off during this time."
- delay:
minutes: 3
- service: homeassistant.turn_off
entity_id:
- group.interior_lights
- group.exterior_lights
- service: script.speech_engine
data_template:
value1: "Automatic light recycling has been completed. Any abnormalities will have to be addressed in the Hue App most likely. "
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/547 # https://github.com/CCOSTAN/Home-AssistantConfig/issues/547
- alias: Turn off the Nest Thermostats during a Power Outage - alias: Turn off the Nest Thermostats during a Power Outage
id: 022bd9da-ab7c-4c1b-9e95-2ff4ffe5f9cc id: 022bd9da-ab7c-4c1b-9e95-2ff4ffe5f9cc

View File

@ -61,7 +61,7 @@ uv_mate_key: 933ecdfb-BurnBabyBurn-8237j2d
uv_mate_resource: https://uvimate.herokuapp.com/api/getUVI/82.6341/-83.0211 uv_mate_resource: https://uvimate.herokuapp.com/api/getUVI/82.6341/-83.0211
skybell_username: user@email.com skybell_username: user@email.com
skybell_password: password skybell_password: password
travisci_api: THISisTheMostSecureAPIKeyEva travisci_api: THISisreallyAGitHubAPIToken
twitter_consumer_key: LotsOfNumbers twitter_consumer_key: LotsOfNumbers
twitter_consumer_secret: LotsOfLetters twitter_consumer_secret: LotsOfLetters
twitter_access_token: Access-to-BearStoneHA twitter_access_token: Access-to-BearStoneHA