Open mswiege opened 5 years ago
I just looked into the APK file and have seen that the app uses an outdated widget html file, so most likely all that needs to be done to fix this is rebuild the app with the current version. Sadly I didn't manage to build the app by myself.
The main button to start/pause the vacuum is not working in the app. Instead of triggering the action it updates the "state" to "true" (which of course doesn't do anything meaningful).
I tried to debug it myself in the mihome widget but as I can't get a new html into the app for testing I have to open an issue here.
Here is what I have seen so far: The widget has this onClick funktion:
The button that has the issue has the HTML attribute
data-type='state'
and nodata-value
attribute. That should mean that the onClick function should go into the else branch ofif(val)
because there is no data-value and after that into the true part of the 'state' check. But instead it eather executesvis.setValue(oid, parseInt(val));
orvis.setValue(oid, true);
but it's unclear to me how this could happen (if the app uses the most up-todate version of the widget).What also ist wrong (perhaps related) is that the app always shows the button blue highlighted which means that the widget assumes the vaccuum is running even if it doesn't. So there also seems to be an issue with the "isRunning()" function.
Both these issues only happen in the app, in a browser all works as expected.