Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect battery status #669

Open
almirus opened this issue Dec 11, 2023 · 6 comments
Open

Incorrect battery status #669

almirus opened this issue Dec 11, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@almirus
Copy link

almirus commented Dec 11, 2023

Before submitting a bug

[X ] I updated to the latest version available
[ X] I cleared the cache of my browser

Describe the bug

Empty battery status in main screen
image

Steps to reproduce

  1. Add widget

Expected behavior
In the main widget, the battery level is not displayed, but if you click it, the battery level is displayed in the second window.

Screenshots
image

Versions:

  • Release: 2.8.0
  • Browser: Chrome 120.0.6099.71
  • HomeAssistant version: core-2023.12.1
STATES

button.neatsvor_x600_empty_dustbin
Neatsvor X600 Empty dustbin
unknown	icon: mdi:delete-restore
friendly_name: Neatsvor X600 Empty dustbin
button.neatsvor_x600_filter_reset
Neatsvor X600 Filter reset
unknown	icon: mdi:autorenew
friendly_name: Neatsvor X600 Filter reset
button.neatsvor_x600_main_brush_reset
Neatsvor X600 Main brush reset
unknown	icon: mdi:autorenew
friendly_name: Neatsvor X600 Main brush reset
button.neatsvor_x600_mop_reset
Neatsvor X600 Mop reset
unknown	icon: mdi:autorenew
friendly_name: Neatsvor X600 Mop reset
button.neatsvor_x600_side_brush_reset
Neatsvor X600 Side brush reset
unknown	icon: mdi:autorenew
friendly_name: Neatsvor X600 Side brush reset
number.neatsvor_x600_volume
Neatsvor X600 Volume
7	min: 0
max: 10
step: 1
mode: auto
icon: mdi:volume-high
friendly_name: Neatsvor X600 Volume
select.neatsvor_x600_dust_collection_frequency
Neatsvor X600 Dust collection frequency
After 3 cleans	options: Never, After each clean, After 2 cleans, After 3 cleans
icon: mdi:numeric-3
friendly_name: Neatsvor X600 Dust collection frequency
select.neatsvor_x600_water_setting
Neatsvor X600 Water setting
Off	options: Off, Low, Medium, High
icon: mdi:water
friendly_name: Neatsvor X600 Water setting
sensor.neatsvor_x600_batareia
Neatsvor X600 Батарея
100	state_class: measurement
unit_of_measurement: %
device_class: battery
friendly_name: Neatsvor X600 Батарея
sensor.neatsvor_x600_cleaned_area
Neatsvor X600 Cleaned area
25	unit_of_measurement: m²
icon: mdi:vector-square-close
friendly_name: Neatsvor X600 Cleaned area
sensor.neatsvor_x600_cleaning_time
Neatsvor X600 Cleaning time
23	unit_of_measurement: min
device_class: duration
icon: mdi:timer-star
friendly_name: Neatsvor X600 Cleaning time
sensor.neatsvor_x600_filter_life
Neatsvor X600 Filter life
98	unit_of_measurement: min
device_class: duration
icon: mdi:timer-sand
friendly_name: Neatsvor X600 Filter life
sensor.neatsvor_x600_main_brush_life
Neatsvor X600 Main brush life
248	unit_of_measurement: min
device_class: duration
icon: mdi:timer-sand
friendly_name: Neatsvor X600 Main brush life
sensor.neatsvor_x600_mop_life
Neatsvor X600 Mop life
134	unit_of_measurement: min
device_class: duration
icon: mdi:timer-sand
friendly_name: Neatsvor X600 Mop life
sensor.neatsvor_x600_side_brush_life
Neatsvor X600 Side brush life
148	unit_of_measurement: min
device_class: duration
icon: mdi:timer-sand
friendly_name: Neatsvor X600 Side brush life
vacuum.neatsvor_x600
Neatsvor X600
docked	fan_speed_list: Off, Gentle, Normal, Strong
fan_speed: Normal
activate: true
command: return_to_base
status: charged
error: 0
friendly_name: Neatsvor X600
supported_features: 14260

@almirus almirus added the bug Something isn't working label Dec 11, 2023
@make-all
Copy link

I think this is caused by Home Assistant deprecating the battery_level attribute of the vacuum entity last July, and instead instructing integration authors to replace it with a sensor of class battery connected to the same device.
https://developers.home-assistant.io/blog/2023/07/10/vacuum-updates

But many integrations have not been updated, so I don't know if this can be implemented conditionally to show the battery from battery_level if available, otherwise using the linked battery sensor..

@shad0wca7
Copy link

Is there a way to hide the % in the top left or replace it with something else?

@antonio1475
Copy link

Also having this issue.

It's probably an easy change on this section of the card

const { battery_level, battery_icon } = this.getAttributes(this.entity);

but I don't have the knowledge 😓

@joeblackdandt
Copy link

Also seeing this issue:
image

Copy link

There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue.
Thank you for your contributions!

@github-actions github-actions bot added the stale label May 13, 2024
@make-all
Copy link

make-all commented May 17, 2024

Problem still exists in latest version with vacuums integrations that have been modified to follow https://developers.home-assistant.io/blog/2023/07/10/vacuum-updates

@github-actions github-actions bot removed the stale label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants