mirror of
				https://github.com/CCOSTAN/Home-AssistantConfig.git
				synced 2025-10-31 18:49:14 +00:00 
			
		
		
		
	Updated scripts and versions. Also adding in UI Yaml to help everyone. removed CACHE from TTS,
This commit is contained in:
		| @@ -1 +1 @@ | |||||||
| 2025.2.4 | 2025.2.5 | ||||||
							
								
								
									
										132
									
								
								config/UI YAML/Overview/Light_Stack.yaml
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										132
									
								
								config/UI YAML/Overview/Light_Stack.yaml
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,132 @@ | |||||||
|  | cards: | ||||||
|  |   - type: custom:mushroom-vacuum-card | ||||||
|  |     entity: vacuum.l10s_vacuum | ||||||
|  |     icon_animation: true | ||||||
|  |     commands: | ||||||
|  |       - return_home | ||||||
|  |       - start_pause | ||||||
|  |       - locate | ||||||
|  |     double_tap_action: | ||||||
|  |       action: none | ||||||
|  |     tap_action: | ||||||
|  |       action: navigate | ||||||
|  |       navigation_path: /lovelace/vacuum | ||||||
|  |     visibility: | ||||||
|  |       - condition: state | ||||||
|  |         entity: vacuum.l10s_vacuum | ||||||
|  |         state_not: docked | ||||||
|  |     primary_info: name | ||||||
|  |     fill_container: true | ||||||
|  |     grid_options: | ||||||
|  |       rows: 1 | ||||||
|  |       columns: full | ||||||
|  |     layout: horizontal | ||||||
|  |   - type: custom:search-card | ||||||
|  |     max_results: 10 | ||||||
|  |   - type: custom:bubble-card | ||||||
|  |     card_type: button | ||||||
|  |     button_type: slider | ||||||
|  |     entity: light.living_room_lights | ||||||
|  |     name: Living Room Lights | ||||||
|  |     icon: mdi:sofa | ||||||
|  |     show_state: true | ||||||
|  |     show_attribute: false | ||||||
|  |     show_last_changed: true | ||||||
|  |     tap_action: | ||||||
|  |       action: navigate | ||||||
|  |       navigation_path: "#living_room" | ||||||
|  |     grid_options: | ||||||
|  |       columns: 6 | ||||||
|  |       rows: 1 | ||||||
|  |     card_layout: large | ||||||
|  |   - type: vertical-stack | ||||||
|  |     cards: | ||||||
|  |       - type: custom:bubble-card | ||||||
|  |         card_type: pop-up | ||||||
|  |         hash: "#living_room" | ||||||
|  |         button_type: slider | ||||||
|  |         entity: light.living_room_lights | ||||||
|  |         name: Living Room Lights | ||||||
|  |         icon: mdi:sofa | ||||||
|  |         show_attribute: false | ||||||
|  |         slide_to_close_distance: "100000" | ||||||
|  |         trigger: [] | ||||||
|  |         bg_opacity: "35" | ||||||
|  |         show_state: true | ||||||
|  |         show_last_changed: true | ||||||
|  |         tap_action: | ||||||
|  |           action: toggle | ||||||
|  |       - type: custom:bubble-card | ||||||
|  |         card_type: button | ||||||
|  |         button_type: slider | ||||||
|  |         entity: light.m1_front_left | ||||||
|  |         name: Front Left | ||||||
|  |         icon: mdi:light-recessed | ||||||
|  |         show_state: true | ||||||
|  |         show_attribute: false | ||||||
|  |         show_last_changed: true | ||||||
|  |         sub_button: [] | ||||||
|  |         grid_options: | ||||||
|  |           columns: 6 | ||||||
|  |           rows: 1 | ||||||
|  |         columns: 2 | ||||||
|  |       - type: custom:bubble-card | ||||||
|  |         card_type: button | ||||||
|  |         button_type: slider | ||||||
|  |         entity: light.m1_front_right | ||||||
|  |         name: Front Right | ||||||
|  |         icon: mdi:light-recessed | ||||||
|  |         show_state: true | ||||||
|  |         show_attribute: false | ||||||
|  |         show_last_changed: true | ||||||
|  |         sub_button: [] | ||||||
|  |         grid_options: | ||||||
|  |           columns: 6 | ||||||
|  |           rows: 1 | ||||||
|  |       - type: custom:bubble-card | ||||||
|  |         card_type: button | ||||||
|  |         button_type: slider | ||||||
|  |         entity: light.m1_back_left | ||||||
|  |         name: Back Left | ||||||
|  |         icon: mdi:light-recessed | ||||||
|  |         show_state: true | ||||||
|  |         show_attribute: false | ||||||
|  |         show_last_changed: true | ||||||
|  |         sub_button: [] | ||||||
|  |         grid_options: | ||||||
|  |           columns: 6 | ||||||
|  |           rows: 1 | ||||||
|  |       - type: custom:bubble-card | ||||||
|  |         card_type: button | ||||||
|  |         button_type: slider | ||||||
|  |         entity: light.m1_back_right | ||||||
|  |         name: Back Right | ||||||
|  |         icon: mdi:light-recessed | ||||||
|  |         show_state: true | ||||||
|  |         show_attribute: false | ||||||
|  |         show_last_changed: true | ||||||
|  |         sub_button: [] | ||||||
|  |         grid_options: | ||||||
|  |           columns: 6 | ||||||
|  |           rows: 1 | ||||||
|  |     grid_options: | ||||||
|  |       columns: 12 | ||||||
|  |       rows: auto | ||||||
|  |   - type: custom:bubble-card | ||||||
|  |     card_type: button | ||||||
|  |     button_type: switch | ||||||
|  |     entity: group.interior_switches | ||||||
|  |     name: Interior Switches | ||||||
|  |     icon: mdi:lightning-bolt | ||||||
|  |     show_state: true | ||||||
|  |     show_attribute: false | ||||||
|  |     show_last_changed: false | ||||||
|  |     button_action: | ||||||
|  |       tap_action: | ||||||
|  |         action: more-info | ||||||
|  |     grid_options: | ||||||
|  |       columns: 6 | ||||||
|  |       rows: 1 | ||||||
|  |     tap_action: | ||||||
|  |       action: toggle | ||||||
|  |     card_layout: large | ||||||
| @@ -95,10 +95,6 @@ logbook: | |||||||
| logger: !include logger.yaml | logger: !include logger.yaml | ||||||
| recorder: !include recorder.yaml | recorder: !include recorder.yaml | ||||||
|  |  | ||||||
| # zwave: |  | ||||||
| #  usb_path: /dev/ttyACM0 |  | ||||||
| #  config_path: /srv/hass/hass_venv/lib/python3.4/site-packages/libopenzwave-0.3.1-py3.4-linux-armv7l.egg/config |  | ||||||
|  |  | ||||||
| tts: | tts: | ||||||
|  |  | ||||||
| homekit: !include homekit.yaml | homekit: !include homekit.yaml | ||||||
|   | |||||||
| @@ -25,11 +25,9 @@ exclude: | |||||||
|     - sensor.*_last_connection* |     - sensor.*_last_connection* | ||||||
|     - binary_sensor.*_motion |     - binary_sensor.*_motion | ||||||
|     - binary_sensor.*is_present |     - binary_sensor.*is_present | ||||||
|  |     - binary_sensor.*_motion_* | ||||||
|   entities: |   entities: | ||||||
|     - automation.update_garage_get_status |     - automation.update_garage_get_status | ||||||
|     - binary_sensor.camera1_motion_sensor |  | ||||||
|     - binary_sensor.camera2_motion_sensor |  | ||||||
|     - binary_sensor.camera3_motion_sensor |  | ||||||
|     - binary_sensor.powerwall_charging |     - binary_sensor.powerwall_charging | ||||||
|     - media_player.carlo_s_4th_fire |     - media_player.carlo_s_4th_fire | ||||||
|     - media_player.alarm_panel_2 |     - media_player.alarm_panel_2 | ||||||
|   | |||||||
| @@ -83,7 +83,7 @@ speech_processing: | |||||||
|           voice: JennyNeural |           voice: JennyNeural | ||||||
|         message: >- |         message: >- | ||||||
|               {{ agent.response.speech.plain.speech }} |               {{ agent.response.speech.plain.speech }} | ||||||
|         cache: true |         cache: false | ||||||
|  |  | ||||||
|     - event: openai_response |     - event: openai_response | ||||||
|       event_data: |       event_data: | ||||||
|   | |||||||
| @@ -1,18 +1,48 @@ | |||||||
| # ##  These scripts are run from /home/pi | #   - This script is used to update the Home Assistant Docker containers | ||||||
| # | #   - It will pull the latest images, check if the image ID has changed, and restart the container if needed | ||||||
| # #!/bin/bash | #   - It will also cleanup unused resources after the update     | ||||||
| # |  | ||||||
| # cd /home/hass/.homeassistant | # Original Repo: https://github.com/CCOSTAN/Home-AssistantConfig | ||||||
| # source /srv/hass/hass_venv/bin/activate | # Follow me on https://www.vcloudinfo.com/click-here | ||||||
| # |  | ||||||
| # echo "Processing update" |  | ||||||
| # pip3 install --upgrade homeassistant |  | ||||||
| # |  | ||||||
| # hass --script check_config |  | ||||||
| # exit |  | ||||||
|  |  | ||||||
| #!/bin/bash | #!/bin/bash | ||||||
| cd /home/hass/docker_files |  | ||||||
| docker-compose down | # Update system packages | ||||||
|  | sudo apt-get update && sudo apt-get upgrade -y | ||||||
|  |  | ||||||
|  | # Pull the latest images | ||||||
| docker-compose pull | docker-compose pull | ||||||
| docker-compose up -d |  | ||||||
|  | # Get list of services from docker-compose.yml | ||||||
|  | EXISTING_SERVICES=$(docker-compose config --services) | ||||||
|  |  | ||||||
|  | # Get list of running service containers | ||||||
|  | RUNNING_CONTAINERS=$(docker-compose ps --services) | ||||||
|  |  | ||||||
|  | # Loop through each running service and check if its image has changed | ||||||
|  | for service in $RUNNING_CONTAINERS; do | ||||||
|  |     if echo "$EXISTING_SERVICES" | grep -qw "$service"; then | ||||||
|  |         # Get the current running image ID (remove sha256: prefix) | ||||||
|  |         CURRENT_IMAGE_ID=$(docker inspect --format='{{.Image}}' "$service" 2>/dev/null | sed 's/^sha256://') | ||||||
|  |  | ||||||
|  |         # Get the latest image ID from docker-compose | ||||||
|  |         LATEST_IMAGE_ID=$(docker-compose images -q "$service" 2>/dev/null) | ||||||
|  |  | ||||||
|  |         # If the image ID is different, restart the container | ||||||
|  |         if [ "$CURRENT_IMAGE_ID" != "$LATEST_IMAGE_ID" ] && [ -n "$LATEST_IMAGE_ID" ]; then | ||||||
|  |             echo "Updating container: $service" | ||||||
|  |             docker-compose stop "$service" | ||||||
|  |             docker-compose rm -f "$service" | ||||||
|  |             docker-compose up -d "$service" | ||||||
|  |         else | ||||||
|  |             echo "No update needed for: $service" | ||||||
|  |         fi | ||||||
|  |     else | ||||||
|  |         echo "Skipping non-existent service: $service" | ||||||
|  |     fi | ||||||
|  | done | ||||||
|  |  | ||||||
|  | # Cleanup unused resources | ||||||
|  | docker container prune -f | ||||||
|  | docker image prune -f | ||||||
|  | docker volume prune -f | ||||||
|   | |||||||
| @@ -1,14 +0,0 @@ | |||||||
| ##  These scripts are run from /home/pi  |  | ||||||
|  |  | ||||||
| #!/bin/bash |  | ||||||
|  |  | ||||||
| echo "Setting up Environment" |  | ||||||
| cd /home/hass/.homeassistant |  | ||||||
| source /srv/hass/hass_venv/bin/activate |  | ||||||
|  |  | ||||||
| echo "Processing update" |  | ||||||
| pip3 install --upgrade git+git://github.com/balloob/home-assistant.git@dev |  | ||||||
|  |  | ||||||
| echo "Code Check" |  | ||||||
| hass --script check_config |  | ||||||
| exit |  | ||||||
		Reference in New Issue
	
	Block a user