Skip to content

Commit

Permalink
update files on 05-12-2023 02:03:21
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocjohn committed Dec 5, 2023
1 parent cce8698 commit 7965a84
Show file tree
Hide file tree
Showing 9 changed files with 169 additions and 152 deletions.
2 changes: 1 addition & 1 deletion config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ stt:

# INCLUDES
automation ui: !include automations.yaml
script: !include_dir_merge_named /config/scripts
script: !include scripts.yaml
api:
48 changes: 41 additions & 7 deletions config/dashboards/shared/popup/footer/footer_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,21 +276,55 @@ browser_mod:
entities:
- entity: sensor.docker_portainer
name: Portainer
icon: si:portainer
secondary_info:
attribute: status
attribute: uptime
- entity: sensor.docker_homebridge
name: Hombridge
name: Homebridge
icon: si:homebridge
secondary_info:
attribute: status
attribute: uptime
- entity: sensor.docker_watchtower
name: Watchtower
icon: cil:docker-watchtower
secondary_info:
attribute: status
- entity: sensor.docker_unifi_controller
attribute: uptime
- entity: sensor.docker_unificontroller
name: Unifi Controller
icon: si:ubiquiti
secondary_info:
attribute: status
attribute: uptime
- entity: sensor.docker_hadockermon
name: HA-Dockermon
icon: si:docker
secondary_info:
attribute: uptime
- entity: sensor.docker_cloudflare
name: Cloudflare
icon: si:cloudflare
secondary_info:
attribute: status
attribute: uptime
# - type: custom:auto-entities
# filter:
# include:
# - entity_id: sensor.docker_*
# options:
# secondary_info:
# attribute: Uptime
# exclude: []
# card:
# type: entities
# view_layout:
# grid-area: containers
# title: Containers
# show_header_toggle: false
# card_mod:
# class: header
# # no border on last card
# style: |
# ha-card {
# border: none !important;
# }
# #states {
# text-transform: capitalize !important;
# }
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ extra_styles:
}
}
.marquee {
animation: marquee 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
animation: marquee 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes marquee {
from {
Expand Down
10 changes: 5 additions & 5 deletions config/dashboards/templates/button_card_templates/tpl_media.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,23 +325,23 @@ conditional_media:
blur_overlay:
- display: block
- position: absolute
- width: 118%
- height: 117%
- width: 122%
- height: 101%
- filter: var(--blur-intensity)
- clip-path: >
[[[
if (entity) {
if (variables.is_youtube) {
return `inset(73% 7% 3.45% 9% round 0 0 calc(var(--button-card-border-radius) / 2) calc(var(--button-card-border-radius) / 2))`;
return `inset(74% 7% 3.45% 9% round 0 0 calc(var(--button-card-border-radius) / 2) calc(var(--button-card-border-radius) / 2))`;
} else {
return `inset(80% 3.45% 3.45% 5.45% round 0 0 calc(var(--button-card-border-radius) / 2) calc(var(--button-card-border-radius) / 2))`;
}
}
]]]
- background: *media_background
- background-image: *media_background_image
- left: -10%
- bottom: -5%
# - left: -10%
# - bottom: -5%
custom_fields:
blur_overlay: >
[[[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ air_diffuser_circle:
- padding: 5%
- margin: -10%
- width: 15%
- top: "[[[return (states[variables.motion].state == 'on') ? '30%' : null;]]]"
- transition: top 250ms ease-out

# MACBOOK CIRCLE
Expand Down
168 changes: 84 additions & 84 deletions config/packages/docker_containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,94 +2,94 @@
# DOCKER RASPBERRY PI #
########################################

switch:
- platform: template
switches:
watchtower:
unique_id: watchtower_switch
friendly_name: Watchtower
value_template: >
{{ is_state('sensor.docker_watchtower', 'running') }}
turn_on:
- service: shell_command.unpause_watchtower
- service: homeassistant.update_entity
target:
entity_id: binary_sensor.container_watchtower
turn_off:
- service: shell_command.pause_watchtower
- service: homeassistant.update_entity
target:
entity_id: binary_sensor.container_watchtower
sensor:
- platform: rest ## UNIFI ##
unique_id: container_unifi_controller
name: Docker Unifi Controller
icon: si:ubiquiti
json_attributes:
- state
- status
- image
resource: http://192.168.0.146:8126/container/unifi-controller
value_template: >
{{ value_json.state }}
timeout: 60
scan_interval: 360
# switch:
# - platform: template
# switches:
# watchtower:
# unique_id: watchtower_switch
# friendly_name: Watchtower
# value_template: >
# {{ is_state('sensor.docker_watchtower', 'running') }}
# turn_on:
# - service: shell_command.unpause_watchtower
# - service: homeassistant.update_entity
# target:
# entity_id: binary_sensor.container_watchtower
# turn_off:
# - service: shell_command.pause_watchtower
# - service: homeassistant.update_entity
# target:
# entity_id: binary_sensor.container_watchtower
# sensor:
# - platform: rest ## UNIFI ##
# unique_id: container_unifi_controller
# name: Docker Unifi Controller
# icon: si:ubiquiti
# json_attributes:
# - state
# - status
# - image
# resource: http://192.168.0.146:8126/container/unifi-controller
# value_template: >
# {{ value_json.state }}
# timeout: 60
# scan_interval: 360

- platform: rest
unique_id: container_portainer
name: Docker Portainer
icon: si:portainer
json_attributes:
- state
- status
- image
resource: http://192.168.0.146:8126/container/portainer
value_template: >
{{ value_json.state }}
timeout: 60
scan_interval: 360
# - platform: rest
# unique_id: container_portainer
# name: Docker Portainer
# icon: si:portainer
# json_attributes:
# - state
# - status
# - image
# resource: http://192.168.0.146:8126/container/portainer
# value_template: >
# {{ value_json.state }}
# timeout: 60
# scan_interval: 360

- platform: rest
unique_id: container_homebridge
name: Docker Homebridge
icon: si:homebridge
json_attributes:
- state
- status
- image
resource: http://192.168.0.146:8126/container/homebridge
value_template: >
{{ value_json.state }}
timeout: 60
scan_interval: 360
# - platform: rest
# unique_id: container_homebridge
# name: Docker Homebridge
# icon: si:homebridge
# json_attributes:
# - state
# - status
# - image
# resource: http://192.168.0.146:8126/container/homebridge
# value_template: >
# {{ value_json.state }}
# timeout: 60
# scan_interval: 360

- platform: rest
unique_id: container_watchtower
name: Docker Watchtower
icon: cil:docker-watchtower
json_attributes:
- state
- status
- image
resource: http://192.168.0.146:8126/container/watchtower
value_template: >
{{ value_json.state }}
timeout: 60
scan_interval: 360
# - platform: rest
# unique_id: container_watchtower
# name: Docker Watchtower
# icon: cil:docker-watchtower
# json_attributes:
# - state
# - status
# - image
# resource: http://192.168.0.146:8126/container/watchtower
# value_template: >
# {{ value_json.state }}
# timeout: 60
# scan_interval: 360

- platform: rest ## PORTAINER ##
unique_id: container_hadockermon
name: Docker Hadockermon
icon: si:docker
json_attributes:
- state
- status
- image
resource: http://192.168.0.146:8126/container/ha-dockermon
value_template: >
{{ value_json.state }}
timeout: 60
scan_interval: 360
# - platform: rest ## PORTAINER ##
# unique_id: container_hadockermon
# name: Docker Hadockermon
# icon: si:docker
# json_attributes:
# - state
# - status
# - image
# resource: http://192.168.0.146:8126/container/ha-dockermon
# value_template: >
# {{ value_json.state }}
# timeout: 60
# scan_interval: 360

template:
- binary_sensor:
Expand Down
6 changes: 0 additions & 6 deletions config/packages/hass_sensors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ sensor:
- type: processor_use
- type: last_boot
- type: memory_free
- type: swap_use_percent
- type: swap_use
- type: swap_free
- type: load_1m
- type: load_5m
- type: load_15m

- platform: time_date
display_options:
Expand Down
Loading

0 comments on commit 7965a84

Please sign in to comment.