After having a read through this thread I thought I’d make a simple lovelace card for the Xiaomi (Roborock) vacuums, as the examples in the thread included quite a lot of configuration and manual setup. To avoid having to set up a lot of scripts, template sensors and complicated picture-elements cards, this card displays by default most of the same data as many of the thread examples by using attribute data.
Features
Display basic status and information about your vacuum cleaner
Buttons for easy control of vacuum functions
Optional background image
Options
Name
Type
Default
Description
type
string
Required
custom:xiaomi-vacuum-card
entity
string
Required
vacuum.my_xiaomi_vacuum
name
string/bool
friendly_name
Override entity friendly name (set to false to hide title)
image
string/bool
/local/img/vacuum.png
Custom path/name of background image (set to false to disable background)
Hmm… it is working fine here both on mobile and desktop. Have you added the following to your ui-lovelace.yaml file (if in yaml mode) or in the raw config editor (UI mode)?
Seems like I was using some code syntax that is not supported by all browsers or something… Try updating the script with the new version in the GitHub repository.
Sorry for the late reply, I’m currently away on vacation. I cannot seem to reproduce the issue in Opera or any other browser. Have you tried updating your browser to the latest version? Are thereny more errors showing up in the browser console?