UI-Lovelace-Minimalist / UI

UI-Lovelace-Minimalist is a "theme" for HomeAssistant
https://ui-lovelace-minimalist.github.io/UI/
Other
1.63k stars 430 forks source link

ulm_battery_entity always shows NaN and full grren circle #1418

Open NeoFax75 opened 10 months ago

NeoFax75 commented 10 months ago

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
shogun160 commented 9 months ago

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?