hass-aarlo icon indicating copy to clipboard operation
hass-aarlo copied to clipboard

Battery symbol doesn't change, but it does when I create another entity

Open bbs2web opened this issue 1 year ago • 1 comments

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: image

If I however create a template sensor and store the state of the Aarlo integration in it, then it works perfectly: image

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: image

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

bbs2web avatar Dec 02 '24 20:12 bbs2web

I'll take a look at this.

twrecked avatar Dec 08 '24 20:12 twrecked