pull/1510/head
parent
bcee75652d
commit
4caff5def4
@ -1 +1 @@
|
||||
2025.2.4
|
||||
2025.2.5
|
||||
@ -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
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
Loading…
Reference in new issue