diff --git a/config/.HA_VERSION b/config/.HA_VERSION index 7b61a1bc..26ed8f1b 100755 --- a/config/.HA_VERSION +++ b/config/.HA_VERSION @@ -1 +1 @@ -2025.2.4 \ No newline at end of file +2025.2.5 \ No newline at end of file diff --git a/config/UI YAML/Overview/Light_Stack.yaml b/config/UI YAML/Overview/Light_Stack.yaml new file mode 100755 index 00000000..6368497b --- /dev/null +++ b/config/UI YAML/Overview/Light_Stack.yaml @@ -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 diff --git a/config/configuration.yaml b/config/configuration.yaml index 11141043..53eed32a 100755 --- a/config/configuration.yaml +++ b/config/configuration.yaml @@ -95,10 +95,6 @@ logbook: logger: !include logger.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: homekit: !include homekit.yaml diff --git a/config/recorder.yaml b/config/recorder.yaml index 174c7dd1..75452a91 100755 --- a/config/recorder.yaml +++ b/config/recorder.yaml @@ -25,11 +25,9 @@ exclude: - sensor.*_last_connection* - binary_sensor.*_motion - binary_sensor.*is_present + - binary_sensor.*_motion_* entities: - automation.update_garage_get_status - - binary_sensor.camera1_motion_sensor - - binary_sensor.camera2_motion_sensor - - binary_sensor.camera3_motion_sensor - binary_sensor.powerwall_charging - media_player.carlo_s_4th_fire - media_player.alarm_panel_2 diff --git a/config/script/speech_processing.yaml b/config/script/speech_processing.yaml index 1cd98581..c83be1ce 100755 --- a/config/script/speech_processing.yaml +++ b/config/script/speech_processing.yaml @@ -83,7 +83,7 @@ speech_processing: voice: JennyNeural message: >- {{ agent.response.speech.plain.speech }} - cache: true + cache: false - event: openai_response event_data: diff --git a/config/shell_scripts/HAUpdate.sh b/config/shell_scripts/HAUpdate.sh index 925ba7a6..374a324a 100755 --- a/config/shell_scripts/HAUpdate.sh +++ b/config/shell_scripts/HAUpdate.sh @@ -1,18 +1,48 @@ -# ## These scripts are run from /home/pi -# -# #!/bin/bash -# -# cd /home/hass/.homeassistant -# source /srv/hass/hass_venv/bin/activate -# -# echo "Processing update" -# pip3 install --upgrade homeassistant -# -# hass --script check_config -# exit +# - 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 +# - It will also cleanup unused resources after the update + +# Original Repo: https://github.com/CCOSTAN/Home-AssistantConfig +# Follow me on https://www.vcloudinfo.com/click-here #!/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 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 diff --git a/config/shell_scripts/HAUpdateDev.sh b/config/shell_scripts/HAUpdateDev.sh deleted file mode 100755 index d3e86a43..00000000 --- a/config/shell_scripts/HAUpdateDev.sh +++ /dev/null @@ -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