In this video, I cover how to download and install the custom battery card, two required sensors for monitoring, as well as an automation to alert you when a device has a low battery.
If you'd like to support the channel, you can do so by becoming a Patron at / fasthowto
This episode's t-shirt: amzn.to/3JrZy9t
HACS: • Home Assistant startin...
Mushroom cards: • How to create a Home A...
IMPORTANT! KZitem does not allow the use of '<' or '>' in descriptions. The characters below LOOK like those, but they are NOT THE SAME. Wherever you see one of those characters below, delete them and replace them with the same character (above the period or the comma). Thank you!
battery card configuration code:
---
type: custom:battery-state-card
color_gradient:
- '#ff0000'
- '#ffff00'
- '#00ff00'
entities:
- entity: sensor.my_device_battery
name: My Sensor
---
Mushroom template card code:
Icon:
---
{% if is_state('binary_sensor.devices_with_low_battery', 'on') %}
mdi:battery-10
{% else %}
mdi:battery
{% endif %}
---
Icon Color:
---
{% if is_state('binary_sensor.devices_with_low_battery', 'on') %}
red
{% endif %}
---
sensor:
- platform: template
sensors:
devices_with_low_battery:
friendly_name: 'Devices with low battery'
unit_of_measurement: devices
value_template: >-
{% set ignore_entities = ['sensor.device1_battery_level','sensor.device2_battery_level'] %}
{{ states.sensor
| selectattr('attributes.device_class', 'eq', 'battery')
| rejectattr('entity_id', 'in', ignore_entities)
| map(attribute='state')
| map('int', -1) | select('le', 10)
| list | count
}}
icon_template: >-
{% if is_state('sensor.devices_with_low_battery', '0') %}
mdi:check-circle
{% else %}
mdi:battery-alert
{% endif %}
binary_sensor:
- platform: threshold
entity_id: sensor.devices_with_low_battery
name: Devices with low battery
upper: 0.5
Some of my favorite home automation things:
Aqara temperature and humidity sensor (zigbee): amzn.to/3X2ubr3
Aqara water leak sensor (zigbee): amzn.to/3JkWH3P
Aqara door & window sensor (zigbee): amzn.to/3Ril7N7
Aqara mini switch (zigbee): amzn.to/3HlmmGK
Aqara motion sensor (zigbee): amzn.to/3kV2eDS
Zigbee and Zwave coordinator: amzn.to/3yuqPTG
USB extension for Zigbee/Zwave sticks: amzn.to/3ySQGVL
Intel Nuc: amzn.to/3JcVivA
KASA outdoor outlet (wifi): amzn.to/3XOLoFl
KASA indoor outlet HS103 (wifi): amzn.to/3XOLVai
KASA single pole dimmer HS220 (wifi): amzn.to/3HgOaft
KASA single pole switch HS200 (wifi): amzn.to/3HHNEsC
KASA three way switch HS210(wifi): amzn.to/3kSZ0ks
KASA three way dimmer KS230 (wifi)" amzn.to/3kQm2s8
Shelly 2.5 relay switch (wifi): amzn.to/40drGon
Honeywell T9 thermostat (wifi, homekit): amzn.to/3WOVvsD
Honeywell T9 remote zone sensor: amzn.to/3jfr5Sw
Sonoff S31 Lite smart plug (zigbee): amzn.to/3HDsb3U
Sonoff S31 smart plug with power monitoring (zigbee): amzn.to/40fkvMk
Sengled bulbs (zigbee): amzn.to/3JH95vl
MyQ Homebridge for Chamberlain/Liftmaster MyQ garage door openers (wifi, homekit): amzn.to/3DrfxSW
MyQ Chamberlain/Liftmaster garage door controller for non-MyQ openers (wifi): amzn.to/3HIctVm
August 4th generation WiFi smart lock: amzn.to/3ksXZj3
Motorola MoCA Adapters: amzn.to/41h9LxI
My studio gear:
Canon 90D: amzn.to/3WOvmKz
Canon EF 28mm f/1.8 USM: amzn.to/3DkPvAH
Canon EF 50mm f/1.4 USM: amzn.to/3jinlQk
Canon EF-S 17-55 f/2.8 IS USM: amzn.to/3kRZgQK
Canon AC adapter: amzn.to/3RgogNC
Canon DC coupler: amzn.to/3HcmTuK
Lexar Pro 128GB SDXC cards: amzn.to/3Drg7jA
ProGrade SD card reader: amzn.to/3HmPRYQ
Lowepro ProTactic 450 camera bag: amzn.to/3DoJras
Manfrotto 055 CX Pro tripod: amzn.to/3XOaMei
Manfrotto 055LC leveling center column: amzn.to/40aYm1R
Manfrotto MVH502AH fluid head: amzn.to/40eyOkw
Rode NTG-3B mic: amzn.to/3kGEbIL
Rode SM4-R shockmount: amzn.to/3Y8zo1m
Shure SM7B mic: amzn.to/3wEnX5H
Zoom H4n pro 4-track digital recorder: amzn.to/3Y365x6
Zoom F6 digital field recorder: amzn.to/3ZWxjHa
Cloudlifter: amzn.to/3Z31tqO
GLS balanced XLR cables: amzn.to/3kXb97K
TASCAM DR-10 lav mic: amzn.to/3kRvGLb
windjammer for lav mics: amzn.to/3HFPDNM
Neewer boom arm mic stand: amzn.to/3WH8YCI
Samson MD5 mic stand: amzn.to/3HHP46q
Aputure Amaran 100x lights: amzn.to/40dJqQp
Aputure Light Dome SE: amzn.to/40dJBex
Light stands: amzn.to/3Rethq2
Green screen: amzn.to/3jcOjJ3
Rim light: amzn.to/3RkyzQW
Негізгі бет Monitoring Smart Home Device Battery Levels with Home Assistant
No video
Пікірлер: 41