Now everything is in place but still does not working. I am pretty sure that the root cause is came from the custom mod on my Roborock S50 (I am using Valetudo).
I am still getting javascript errors unfortunately:
Now everything is in place but still does not working. I am pretty sure that the root cause is came from the custom mod on my Roborock S50 (I am using Valetudo).
I am still getting javascript errors unfortunately:
seems that that widget needs fan speed as attribute.
if your robot doesnt have that, the widget isnt working without changing the javascript.
you shouldnt need basevacuum.css at all.
seems like the robot has a fan_speed attribute, so i cant tell you what to change without going through the .js file thouroughly.
its better to ask @tjntomas if he wants to help you, because its his code.
Hello! Would you help me please with the Javascript error? I have posted the errors with my vacuum details.
The problem is that the fan speed list differs from model to model. I can change it to retreive the available fan speeds from the attributes. They are hard coded now. I will have a look.
Thank you!
in the basevacuum.js
file, locate these two lines:
self.fan_speeds = [0,"Quiet", "Balanced", "Turbo", "Max"]
self.fan_speeds = [105,101, 102, 103, 104]
and replace them with only this line:
self.fan_speeds = ["Silent", "Standard", "Medium", "Turbo", "Gentle"]
Then clear the browser cache and force a recompile by adding
?recompile=1
to the end of the url. If you are specifying a skin in your url, then instead add
&recompile=1
to the end of the url.
And if it works, I will adjust the widget to get the fan speeds from the attributes instead.
It is working now properly, thank you very much !!!