From cbea31a8073e5c046a822d9b0b7a8e3de1aa0eea Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 25 Sep 2024 18:15:57 +0000 Subject: [PATCH] Fixing a lot of stuff related to Spook! #1350 --- config/automation/Speech/nest.yaml | 4 +- config/automation/away.yaml | 4 -- config/automation/late_night_helper.yaml | 3 -- config/automation/upstairs_motion_ifttt.yaml | 10 ----- config/group/weather.yaml | 3 -- config/packages/hacs.yaml | 43 -------------------- 6 files changed, 2 insertions(+), 65 deletions(-) delete mode 100755 config/packages/hacs.yaml diff --git a/config/automation/Speech/nest.yaml b/config/automation/Speech/nest.yaml index df56ae59..8439ddc9 100755 --- a/config/automation/Speech/nest.yaml +++ b/config/automation/Speech/nest.yaml @@ -8,8 +8,8 @@ - platform: state entity_id: - - sensor.downstairs_thermostat_hvac_state - - sensor.upstairs_thermostat_hvac_state + - climate.downstairs + - climate.upstairs from: 'off' action: diff --git a/config/automation/away.yaml b/config/automation/away.yaml index e98d73f2..886e0d9c 100755 --- a/config/automation/away.yaml +++ b/config/automation/away.yaml @@ -10,10 +10,6 @@ mode: single # Set the trigger for the automation 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" - platform: state entity_id: group.family diff --git a/config/automation/late_night_helper.yaml b/config/automation/late_night_helper.yaml index 15556752..fb5120a5 100755 --- a/config/automation/late_night_helper.yaml +++ b/config/automation/late_night_helper.yaml @@ -6,9 +6,6 @@ - alias: 'Late Night Helper' id: acacc9b4-b66d-46d2-bf6d-47b75afddb57 trigger: - - platform: state - entity_id: binary_sensor.downstairs_nest_away - to: 'off' - platform: state entity_id: group.family to: 'home' diff --git a/config/automation/upstairs_motion_ifttt.yaml b/config/automation/upstairs_motion_ifttt.yaml index d3b2d568..0b08d802 100755 --- a/config/automation/upstairs_motion_ifttt.yaml +++ b/config/automation/upstairs_motion_ifttt.yaml @@ -11,9 +11,6 @@ trigger: - platform: event event_type: upstairs_light_on - - platform: state - entity_id: binary_sensor.upstairs_nest_away - to: 'off' condition: - condition: state @@ -29,17 +26,10 @@ - alias: 'Upstairs Light Turn off' id: ee50f882-94b7-4cfc-bc2e-4a3e07ae08a8 trigger: - - platform: event - event_type: upstairs_light_off - - platform: state - entity_id: binary_sensor.upstairs_nest_away - to: 'on' - - platform: state entity_id: light.upstairs_lights to: 'on' for: '02:00:00' - action: service: light.turn_off entity_id: light.upstairs_lights diff --git a/config/group/weather.yaml b/config/group/weather.yaml index 4a6197c7..741d3bcd 100755 --- a/config/group/weather.yaml +++ b/config/group/weather.yaml @@ -2,10 +2,8 @@ Weather: entities: - climate.downstairs - sensor.downstairs_thermostat_humidity - - binary_sensor.downstairs_nest_away - climate.upstairs - sensor.upstairs_thermostat_humidity - - binary_sensor.upstairs_nest_away - sensor.pirateweather_cloud_coverage - sensor.pirateweather_minutely_summary # - sensor.pirateweather_nearest_storm_distance @@ -16,6 +14,5 @@ Weather: - sensor.pirateweather_temperature - sensor.pirateweather_uv_index - sensor.moon - - binary_sensor.iss - sensor.launch_window - sensor.next_launch diff --git a/config/packages/hacs.yaml b/config/packages/hacs.yaml deleted file mode 100755 index c129e204..00000000 --- a/config/packages/hacs.yaml +++ /dev/null @@ -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