mirror of
				https://github.com/CCOSTAN/Home-AssistantConfig.git
				synced 2025-10-31 10:46:20 +00:00 
			
		
		
		
	Fixing a lot of stuff related to Spook! #1350
This commit is contained in:
		| @@ -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: | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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' | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
		Reference in New Issue
	
	Block a user