UI-Lovelace-Minimalist/UI

ulm_battery_entity always shows NaN and full grren circle

NeoFax75 opened this issue · 2 comments

Describe the bug
Previously (prior to 2023.11) the ulm_battery_entity template worked fine. Now it shows NaN and a full green circle even if the battery is low.

Related Card Config

button_card_templates: !include_dir_merge_named "../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"

title: "Minimalist"
background: "var(--background-image)"
views:
  - !include views/home.yaml
  - !include views/living_room.yaml
  - !include views/kitchen.yaml
  - !include views/dining_room.yaml
  - !include views/bathroom.yaml
  - !include views/master_bedroom.yaml
  - !include views/guest_bedroom.yaml
  - !include views/hallway.yaml
  - !include views/front_porch.yaml
  - !include views/back_yard.yaml
  - !include views/lab.yaml
  - !include views/lights.yaml
  - !include views/security.yaml

resources:
  - url: /local/clock-weather-card/clock-weather-card.js
    type: module```

```yaml
      - type: grid
        square: false
        columns: 1
        cards:
          - type: "custom:button-card"
            template: card_title
            label: "Devices"
          - type: grid
            square: false
            columns: 1
            cards:
              - type: "custom:button-card"
                template:
                  - card_binary_sensor_alert
                  - battery_info
                entity: binary_sensor.bathroom_motion_occupancy
                variables:
                  - ulm_show_last_changed: true
                  - ulm_card_binary_sensor_alert: true
                  - ulm_card_binary_sensor_alert_name: "Bathroom Motion"
                  - ulm_card_binary_sensor_alert_icon: "mdi:motion-sensor"
                  - ulm_battery_entity: sensor.bathroom_motion_battery

It's still working as intended on my side. Did you check the battery entity/sensor if there was a change after updating to 2023.11?