hass-aarlo
hass-aarlo copied to clipboard
Battery symbol doesn't change, but it does when I create another entity
Really love the Arlo integration, please keep up the excellent work!
I have a tiny request though, in that the icon for the battery appears to statically be set to use mdi:battery-50.
For example:
If I however create a template sensor and store the state of the Aarlo integration in it, then it works perfectly:
I created this entity using the following entry in the configuration.yaml file:
template:
- sensor:
- name: 'Arlo - Main gate battery'
unit_of_measurement: '%'
device_class: battery
state: >
{{ states('sensor.aarlo_battery_level_main_gate') | int(0) }}
Result in the Home Assistant dashboard:
Entity card configuration:
type: entities
entities:
- entity: sensor.arlo_main_gate_battery
name: Main gate
- entity: sensor.arlo_stables_battery
name: Stables
- entity: sensor.arlo_cottage_battery
name: Cottage
- entity: sensor.arlo_front_door_battery
name: Front door
- entity: sensor.arlo_kitchen_battery
name: Kitchen
- entity: sensor.arlo_office_battery
name: Office
- entity: sensor.arlo_paddocks_battery
name: Paddocks
title: Camera battery levels
state_color: true
I'll take a look at this.