Add battery overview
This commit is contained in:
vanhempi
fb3af71fe3
commit
4b4a1af316
2
.gitignore
vendored
2
.gitignore
vendored
@ -29,3 +29,5 @@ google_assistant_service_keys.json
|
|||||||
secrets.yaml
|
secrets.yaml
|
||||||
secrets.js
|
secrets.js
|
||||||
known_devices.yaml
|
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/thomasloven/lovelace-auto-entities
|
||||||
* https://github.com/bradcrc/Now-Playing-Card
|
* https://github.com/bradcrc/Now-Playing-Card
|
||||||
* https://github.com/bradcrc/color-lite-card
|
* https://github.com/bradcrc/color-lite-card
|
||||||
|
* https://github.com/maxwroc/battery-state-card
|
||||||
|
|
||||||
## Packages
|
## Packages
|
||||||
* https://github.com/Barma-lej/halandroid
|
* https://github.com/Barma-lej/halandroid
|
||||||
|
@ -43,4 +43,34 @@ cards:
|
|||||||
entities:
|
entities:
|
||||||
- entity: switch.wallboard_display
|
- entity: switch.wallboard_display
|
||||||
name: 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
|
path: overview
|
||||||
icon: "mdi:tablet-dashboard"
|
icon: "mdi:tablet-dashboard"
|
||||||
cards:
|
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
|
- type: conditional
|
||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.openclose_10
|
- entity: binary_sensor.openclose_10
|
||||||
@ -50,4 +79,4 @@ cards:
|
|||||||
aspect_ratio: 60%
|
aspect_ratio: 60%
|
||||||
entities:
|
entities:
|
||||||
- device_tracker.sm_g985f
|
- device_tracker.sm_g985f
|
||||||
- device_tracker.pixel_4
|
- device_tracker.pixely
|
@ -1,6 +1,5 @@
|
|||||||
title: Roboter
|
title: Roboter
|
||||||
path: robots
|
path: robots
|
||||||
badges: []
|
|
||||||
icon: 'mdi:robot-vacuum-variant'
|
icon: 'mdi:robot-vacuum-variant'
|
||||||
cards:
|
cards:
|
||||||
# Dobby
|
# Dobby
|
||||||
|
@ -17,7 +17,7 @@ homeassistant:
|
|||||||
- 192.168.0.0/16
|
- 192.168.0.0/16
|
||||||
- fd00::/8
|
- fd00::/8
|
||||||
# landroid
|
# landroid
|
||||||
#packages: !include_dir_named packages
|
packages: !include_dir_named packages
|
||||||
|
|
||||||
config:
|
config:
|
||||||
conversation:
|
conversation:
|
||||||
@ -58,6 +58,8 @@ lovelace:
|
|||||||
type: module
|
type: module
|
||||||
- url: /local/lovelace/custom/now-playing-card/now-playing-card.js
|
- url: /local/lovelace/custom/now-playing-card/now-playing-card.js
|
||||||
type: module
|
type: module
|
||||||
|
- url: /local/lovelace/custom/battery-state-card/battery-state-card.js
|
||||||
|
type: module
|
||||||
|
|
||||||
tts:
|
tts:
|
||||||
- platform: google_translate
|
- platform: google_translate
|
||||||
|
@ -8,7 +8,6 @@ views:
|
|||||||
- !include config/views/media.yaml
|
- !include config/views/media.yaml
|
||||||
- !include config/views/robots.yaml
|
- !include config/views/robots.yaml
|
||||||
- !include config/views/humidity.yaml
|
- !include config/views/humidity.yaml
|
||||||
- !include config/views/floorplan.yaml
|
|
||||||
- !include config/views/instagram.yaml
|
- !include config/views/instagram.yaml
|
||||||
- !include config/views/devices.yaml
|
- !include config/views/devices.yaml
|
||||||
- !include config/views/cctv.yaml
|
- !include config/views/cctv.yaml
|
||||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Leveys: | Korkeus: | Koko: 14 KiB |
Ladataan…
Viittaa uudesa ongelmassa
Block a user