1
1
Derivar 0

Add battery overview

Este cometimento está contido em:
Florian Brinker 2021-03-21 21:41:34 +01:00
ascendente fb3af71fe3
cometimento 4b4a1af316
9 ficheiros modificados com 69 adições e 5 eliminações

2
.gitignore externo
Ver ficheiro

@ -29,3 +29,5 @@ google_assistant_service_keys.json
secrets.yaml
secrets.js
known_devices.yaml
/www/vacuums/*.png

Ver ficheiro

@ -70,6 +70,7 @@ I use the following software, running in docker containers, on my Raspberry Pi:
* https://github.com/thomasloven/lovelace-auto-entities
* https://github.com/bradcrc/Now-Playing-Card
* https://github.com/bradcrc/color-lite-card
* https://github.com/maxwroc/battery-state-card
## Packages
* https://github.com/Barma-lej/halandroid

Ver ficheiro

@ -43,4 +43,34 @@ cards:
entities:
- entity: switch.wallboard_display
name: Display
icon: mdi:tablet
icon: mdi:tablet
- type: custom:battery-state-card
title: "Batterie Übersicht"
sort_by_level: "asc"
#collapse: 4
filter:
include:
- name: entity_id
value: "*_battery_level"
- name: attributes.device_class
value: battery
- name: attributes.battery_level
operator: "exists"
exclude:
- name: state
operator: "matches"
value: "/charging|discharging/i"
- name: entity_id
operator: "matches"
value: "/samsung|pixel/i"
- name: state
operator: ">"
value: 99
- name: attributes.friendly_name # require a friendly_name
operator: "="
value:
bulk_rename:
- from: "Batterie"
- from: "Battery"
- from: "Power"

Ver ficheiro

@ -2,6 +2,35 @@ title: Übersicht
path: overview
icon: "mdi:tablet-dashboard"
cards:
- type: custom:battery-state-card
title: "Batterie Warnung"
sort_by_level: "asc"
filter:
include:
- name: entity_id
value: "*_battery_level"
- name: attributes.device_class
value: battery
- name: attributes.battery_level
operator: "exists"
exclude:
- name: state
operator: "matches"
value: "/charging|discharging/i"
- name: entity_id
operator: "matches"
value: "/samsung|pixel/i"
- name: state
operator: ">"
value: 5
- name: attributes.friendly_name # require a friendly_name
operator: "="
value:
bulk_rename:
- from: "Batterie"
- from: "Battery"
- from: "Power"
- type: conditional
conditions:
- entity: binary_sensor.openclose_10
@ -50,4 +79,4 @@ cards:
aspect_ratio: 60%
entities:
- device_tracker.sm_g985f
- device_tracker.pixel_4
- device_tracker.pixely

Ver ficheiro

@ -1,6 +1,5 @@
title: Roboter
path: robots
badges: []
icon: 'mdi:robot-vacuum-variant'
cards:
# Dobby

Ver ficheiro

@ -17,7 +17,7 @@ homeassistant:
- 192.168.0.0/16
- fd00::/8
# landroid
#packages: !include_dir_named packages
packages: !include_dir_named packages
config:
conversation:
@ -58,6 +58,8 @@ lovelace:
type: module
- url: /local/lovelace/custom/now-playing-card/now-playing-card.js
type: module
- url: /local/lovelace/custom/battery-state-card/battery-state-card.js
type: module
tts:
- platform: google_translate

Ver ficheiro

@ -8,7 +8,6 @@ views:
- !include config/views/media.yaml
- !include config/views/robots.yaml
- !include config/views/humidity.yaml
- !include config/views/floorplan.yaml
- !include config/views/instagram.yaml
- !include config/views/devices.yaml
- !include config/views/cctv.yaml

A apresentação das diferenças entre ficheiros foi suprimida porque há linhas demasiado longas

Ficheiro binário não mostrado.

Antes

Largura:  |  Altura:  |  Tamanho: 14 KiB