According to several reports this only affects old versions of the card. Try upgrading to the latest version and/or reinstall the card.
Thanks a lot, solved my problem!
I cleaned up my resources, reinstalled the plugins and it works again.
I’m pulling my hair out.
I keep getting this error on the card:
Cannot read property ‘setConfig’ of undefined
Any help?
Bingo ! Thank you Ganfoud !
cant put picture
where to put picture and what is the path
sory for bad english
thank you
Hey @benct
at first, thank you for this nice Card.
I had a few Problem so get it to work. But now i was able to control my Roborock with this Card a few Min.
After this i tryed to customise your Card to view the Status, Brushes and so on in German.
After replacing the Labels it wont work any way.
So i delete the .js and copied the original one fresh from Github.
Now i got this Error:
Restarting the Server, installing the fresh .js a few time and waiting a few Days doesnt help me :-/
My HA:
resources:
- type: module
url: /local/xiaomi-vacuum-card.js?v=3.0.1
....
- entity: vacuum.xiaomi_vacuum_cleaner
image: /local/sauger.jpg
name: Minna
type: 'custom:xiaomi-vacuum-card'
xiaomi-vacuum-card.js is in the Dir /config/www
HA Version:
|arch |armv7l|
|---|---|
|dev |false|
|docker |true|
|hassio |true|
|os_name |Linux|
|python_version |3.7.5|
|timezone |Europe/Berlin|
|version |0.103.5|
|virtualenv |false|
Running on a Pi 4
Can you help me?
Edit:
The Error 2 with entity_id is solved. Had the Roborock deleted and forgot to change the Name after factoryreset. But the this.state Error isnt gone :-/
Did you get your vacuum token from the app and added it configuration.yaml as?
- platform: xiaomi_miio or miio2 (depending on your vacuum model)
host: 192.168.x.xx
token: xxxxxxxxxxxxxxxxxxxx
name: xiaomi_vacuum_cleaner
Yes:
vacuum:
- platform: xiaomi_miio
host: 192.168.2.33
token: **424E6E7937346E304F634D394A****
name: Roborock
change to:
- entity: vacuum.Roborock
Doesnt change anything.
But i found another strange Thing:
When i delete the Card, i can see the Roborock in the entity register, when i add a new card he is gone
Try other way around:
cards:
- type: custom:xiaomi-vacuum-card
entity: vacuum.Roborock
Did you try to type entity_id completely lowercase, without the capital R?
vacuum.roborock
Hey Sasha.
now i feel a little bit dump. Your Answer was the Key, now i can control it with the Card and can see the Status and so on
Loaded this via HACS and it works on the desktop and mobile web browsers but fails on iOS app. I had to manually hack the resource location to make it work the iOS app.
Posting this in case other come up again this.
Hello,
I have a problem with background.
I put the path in option “image” but the background is not displayed.
The same path in picture path works perfectly.
Anybody have an idea ?
Anyone using this card with roomba?How do i hide the “mode”?
Cause its not available for roomba
is there a way to have the label in black text?
edit:
I’m using the card with stack in card in vertical mode, and when loading its showing the background but it immediately disappears, any idea?
title: Testing
icon: mdi:test-tube
path: Test
theme: ios-dark-mode
cards:
- type: custom:stack-in-card
title: Zjef
mode: vertical
cards:
- type: custom:xiaomi-vacuum-card
entity: vacuum.zjef
name: Zjef
vendor: roomba
image: /local/roomba.png
Hi there,
Here is my version of the card if you are interested
How to translate to other language?