Fixing a lot of stuff related to Spook! #1350
This commit is contained in:
parent
9105e5fc12
commit
cbea31a807
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- sensor.downstairs_thermostat_hvac_state
|
- climate.downstairs
|
||||||
- sensor.upstairs_thermostat_hvac_state
|
- climate.upstairs
|
||||||
from: 'off'
|
from: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
|
|
@ -10,10 +10,6 @@
|
||||||
mode: single
|
mode: single
|
||||||
# Set the trigger for the automation
|
# Set the trigger for the automation
|
||||||
trigger:
|
trigger:
|
||||||
# The automation will be triggered when the state of the "binary_sensor.downstairs_nest_away" entity changes to "on"
|
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.downstairs_nest_away
|
|
||||||
to: 'on'
|
|
||||||
# The automation will also be triggered when the state of the "group.family" entity changes to "not_home"
|
# The automation will also be triggered when the state of the "group.family" entity changes to "not_home"
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
- alias: 'Late Night Helper'
|
- alias: 'Late Night Helper'
|
||||||
id: acacc9b4-b66d-46d2-bf6d-47b75afddb57
|
id: acacc9b4-b66d-46d2-bf6d-47b75afddb57
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.downstairs_nest_away
|
|
||||||
to: 'off'
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
to: 'home'
|
to: 'home'
|
||||||
|
|
|
@ -11,9 +11,6 @@
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
- platform: event
|
||||||
event_type: upstairs_light_on
|
event_type: upstairs_light_on
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.upstairs_nest_away
|
|
||||||
to: 'off'
|
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
@ -29,17 +26,10 @@
|
||||||
- alias: 'Upstairs Light Turn off'
|
- alias: 'Upstairs Light Turn off'
|
||||||
id: ee50f882-94b7-4cfc-bc2e-4a3e07ae08a8
|
id: ee50f882-94b7-4cfc-bc2e-4a3e07ae08a8
|
||||||
trigger:
|
trigger:
|
||||||
- platform: event
|
|
||||||
event_type: upstairs_light_off
|
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.upstairs_nest_away
|
|
||||||
to: 'on'
|
|
||||||
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: light.upstairs_lights
|
entity_id: light.upstairs_lights
|
||||||
to: 'on'
|
to: 'on'
|
||||||
for: '02:00:00'
|
for: '02:00:00'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
entity_id: light.upstairs_lights
|
entity_id: light.upstairs_lights
|
||||||
|
|
|
@ -2,10 +2,8 @@ Weather:
|
||||||
entities:
|
entities:
|
||||||
- climate.downstairs
|
- climate.downstairs
|
||||||
- sensor.downstairs_thermostat_humidity
|
- sensor.downstairs_thermostat_humidity
|
||||||
- binary_sensor.downstairs_nest_away
|
|
||||||
- climate.upstairs
|
- climate.upstairs
|
||||||
- sensor.upstairs_thermostat_humidity
|
- sensor.upstairs_thermostat_humidity
|
||||||
- binary_sensor.upstairs_nest_away
|
|
||||||
- sensor.pirateweather_cloud_coverage
|
- sensor.pirateweather_cloud_coverage
|
||||||
- sensor.pirateweather_minutely_summary
|
- sensor.pirateweather_minutely_summary
|
||||||
# - sensor.pirateweather_nearest_storm_distance
|
# - sensor.pirateweather_nearest_storm_distance
|
||||||
|
@ -16,6 +14,5 @@ Weather:
|
||||||
- sensor.pirateweather_temperature
|
- sensor.pirateweather_temperature
|
||||||
- sensor.pirateweather_uv_index
|
- sensor.pirateweather_uv_index
|
||||||
- sensor.moon
|
- sensor.moon
|
||||||
- binary_sensor.iss
|
|
||||||
- sensor.launch_window
|
- sensor.launch_window
|
||||||
- sensor.next_launch
|
- sensor.next_launch
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
#-------------------------------------------
|
|
||||||
# HACS Related Information
|
|
||||||
# @CCOSTAN
|
|
||||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
||||||
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/797
|
|
||||||
#-------------------------------------------
|
|
||||||
|
|
||||||
#-------------------------------------------
|
|
||||||
rest_command:
|
|
||||||
github_new_version_hacs:
|
|
||||||
url: https://api.github.com/repos/ccostan/Home-AssistantConfig/issues
|
|
||||||
method: POST
|
|
||||||
headers:
|
|
||||||
Authorization: !secret github_token
|
|
||||||
payload: '{"title":"HACS {{ repo }}","body":"{{ message }}"}'
|
|
||||||
#-------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
automation:
|
|
||||||
- alias: HACS Component Update Notification
|
|
||||||
id: e5266b0b-017f-4c69-83a3-357aaa03dbe2
|
|
||||||
mode: single
|
|
||||||
trigger:
|
|
||||||
- platform: state
|
|
||||||
entity_id: sensor.hacs
|
|
||||||
|
|
||||||
condition:
|
|
||||||
- condition: numeric_state
|
|
||||||
entity_id: sensor.hacs
|
|
||||||
above: 0
|
|
||||||
|
|
||||||
action:
|
|
||||||
|
|
||||||
- service: rest_command.github_new_version_hacs
|
|
||||||
data:
|
|
||||||
repo: 'There are {{ states.sensor.hacs.state }} updates to HACS components at {{ states("sensor.time") }}:'
|
|
||||||
message: >-
|
|
||||||
{%- for repo in state_attr("sensor.hacs","repositories") -%}
|
|
||||||
{{repo['display_name'] }} {{ repo['installed_version'] }} to {{ repo['available_version'] }}
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
- delay:
|
|
||||||
days: 1
|
|
Loading…
Reference in New Issue