Open benchristian88 opened 2 years ago
Woah, that will be hard to reproduce on my side fridge 😃
Are you able to select anything on the map? What do you exactly mean that this button doesn't work? Does any popup appear?
By the way, I have seen that you have tried to add your config to MIoT configs list, but finally you have removed it, why? You can add it and I will adjust anything if necessary
yes, can select a room, by clicking the icon, can zoom the map, can select a custom zone, everything seems to work, from a selection perspective, just when I try then to press the start button on the right hand side of the card nothing happens. No confirmation message that the service was called etc. nothing. but works fine on browser or phone/ha app.
re config, I couldnt add as code, and I wasnt happy pasting like that. noob error. added again. thx
Can you try if anything works when you add run_immediately
to your config?
max_selections: 1
repeats_type: EXTERNAL
max_repeats: 3
run_immediately: true
service_call_schema:
...
No problem, I will sort everything out. Can you just provide "user-friendly name" of your vacuum as well?
will give that a go
No problem, I will sort everything out. Can you just provide "user-friendly name" of your vacuum as well?
Added to miot config now.
Added to miot config now.
Everything updated to look nice and consistent 👍
Gave it a whirl. Works fine on the phone or browser, but on the tizen browser on the fridge, get a message saying no selected items, so appears that the script isn’t passing the selection to the action. Didn’t realise that the zone selection is having the same issue too. Can create a manual zone, but when attempt to press go it says there is nothing selected. There aren’t any logs I can see so can’t really get any more info. Going to be tricky I get that
That's really, really weird... Can you check if template: vacuum_goto
has the same problem?
@benchristian88 can you check out if version from this build works?
absolutely will give it a go. except i dont know how.? sorry, I am a little inexperienced at github . any tips and i will try
Assuming that you have installed this card using HACS:
/config/www/community/lovelace-xiaomi-vacuum-map-card
(js and gz file)/config/www/community/lovelace-xiaomi-vacuum-map-card
?v=2.1.0-beta
(recommended)mdi:image-filter-center-focus
) or card's editor
@benchristian88 Have you managed to test it?
hi, have just tested now, and still doesnt work on the samsung fridge which has the tizen browser. all good elsewhere though.
i have the same issue with my old cellphone that stuck with android9. it seems to be a webview related problem
I think I'm seeing the same issue on an old fire tablet using fully kiosk. The play button in the icon list works, just the one next to the repetition selector doesn't. (the repetition button and plus button when in zone edit work fine)
@FHeilmann can try you to check if there are some errors in console? https://developer.chrome.com/docs/devtools/remote-debugging/
Unfortunately the error does not show in a reasonably up-to-date chrome (95.x), it only shows in fully-kiosk for me.
Nevermind, here's a log of the error that gets thrown when I click on the not-working play button:
(contents here:
xiaomi-vacuum-map-card.js?hacstag=193372044212:44 Uncaught (in promise) TypeError: JSON.stringify(...).replaceAll is not a function
at Function.getDefaultVariables (xiaomi-vacuum-map-card.js?hacstag=193372044212:44)
at vo.apply (xiaomi-vacuum-map-card.js?hacstag=193372044212:44)
at ho._applyData (xiaomi-vacuum-map-card.js?hacstag=193372044212:44)
at ho.getServiceCall (xiaomi-vacuum-map-card.js?hacstag=193372044212:44)
at HTMLElement._run (xiaomi-vacuum-map-card.js?hacstag=193372044212:1052)
at HTMLElement.<anonymous> (xiaomi-vacuum-map-card.js?hacstag=193372044212:1052)
at Z.handleEvent (xiaomi-vacuum-map-card.js?hacstag=193372044212:17)
at ce (xiaomi-vacuum-map-card.js?hacstag=193372044212:44)
at xiaomi-vacuum-map-card.js?hacstag=193372044212:294
getDefaultVariables @ xiaomi-vacuum-map-card.js?hacstag=193372044212:44
apply @ xiaomi-vacuum-map-card.js?hacstag=193372044212:44
_applyData @ xiaomi-vacuum-map-card.js?hacstag=193372044212:44
getServiceCall @ xiaomi-vacuum-map-card.js?hacstag=193372044212:44
_run @ xiaomi-vacuum-map-card.js?hacstag=193372044212:1052
(anonymous) @ xiaomi-vacuum-map-card.js?hacstag=193372044212:1052
handleEvent @ xiaomi-vacuum-map-card.js?hacstag=193372044212:17
ce @ xiaomi-vacuum-map-card.js?hacstag=193372044212:44
(anonymous) @ xiaomi-vacuum-map-card.js?hacstag=193372044212:294
async function (async)
(anonymous) @ xiaomi-vacuum-map-card.js?hacstag=193372044212:1052
handleEvent @ xiaomi-vacuum-map-card.js?hacstag=193372044212:17
ce @ xiaomi-vacuum-map-card.js?hacstag=193372044212:44
(anonymous) @ xiaomi-vacuum-map-card.js?hacstag=193372044212:294
setTimeout (async)
i @ xiaomi-vacuum-map-card.js?hacstag=193372044212:294
Seems like there's an easy fix for such issues:
https://www.designcise.com/web/tutorial/how-to-fix-replaceall-is-not-a-function-javascript-error
great, thank you
@PiotrMachowski Thank you for your work on this card. I had the same issue that others are describing on my wall mounted kiosk tablet, so I went ahead and fixed the issue and opened a PR. There should be no functional changes. Please take a look, and let me know if I can help with anything else.
@benchristian88 @snios can you check out if v2.2.0-beta.1 works on your device?
@benchristian88 @snios can you check out if v2.2.0-beta.1 works on your device?
its not working for me amazon fire hd with fully kiosk browser on android 5.1
Does the problem still exist in v2.2.0?
for me it is still present with the above device
@benchristian88 @snios can you check out if v2.2.0-beta.1 works on your device?
its not working for me amazon fire hd with fully kiosk browser on android 5.1
Sorry for the late Reply. I had a temporary fix for this issue locally (not a fix that would work for everyone). And then i dicided to take my Xiaomi off the cloud and flashed it with Valetudo instead so o can't actually test this anymore I'm sad to say.
Checklist
The problem
Vacuum Card installed, and working well on Xiaomi 1C, with call_actions, for both zone and room cleanup. Works well on browsers, phone, ha app, but unable to initiate Zone or Room cleaning on Samsung Home Hub fridge browser, running Tizen 6.0. first world problem I know, but would be good if I can somehow get it working. All other buttons work, just not the button to start zone or room cleanup. All other HA buttons work, using full mushroom cards, and standard cards. they all work fine.
What version of a card has described problem?
2.0.11
What was the last working version card?
No response
What vacuum model do you have problems with?
dreame_mb1808
Which integration do you use to control your vacuum (link)?
custom
What browser (browsers/apps) does have this problem?
tizen 6.0
What version of Home Assistant do you use?
core-2022.6.2
What type of installation are you running?
Home Assistant OS
Card's configuration
Javascript errors shown in the browser's console (if applicable)
Additional information
No response