Add battery overview
This commit is contained in:
parent
fb3af71fe3
commit
4b4a1af316
2
.gitignore
vendored
2
.gitignore
vendored
@ -29,3 +29,5 @@ google_assistant_service_keys.json
|
||||
secrets.yaml
|
||||
secrets.js
|
||||
known_devices.yaml
|
||||
|
||||
/www/vacuums/*.png
|
||||
|
@ -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
|
||||
|
@ -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"
|
@ -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
|
@ -1,6 +1,5 @@
|
||||
title: Roboter
|
||||
path: robots
|
||||
badges: []
|
||||
icon: 'mdi:robot-vacuum-variant'
|
||||
cards:
|
||||
# Dobby
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user