Not able to turn Vibrations off
See original GitHub issueHome Assistant Android version:
2022.3.0-full
Android version:
10
Phone model:
Huawei Mate 20 (HMA-L29)
Home Assistant version:
2022.3.8
Last working Home Assistant release (if known):
Description of problem:
I noticed this problem first with the Lovelace Mushroom Cards, which uses the
custom-card-helpers library. This in turn triggers vibrations with an haptic
event on the window
node and the success
type.
If the vibrations are activated in the profile these haptics will register as two very short bursts of vibrations, indicating that it is dispatched directly by the frontend through the navigator.vibrate
function.
If, however vibrations are turned off in the profile OR the do not disturb mode is activated the vibration still exists and is even longer and stronger. Because it is around half a second, I assume the responsible code is the one in the processHaptics
function in the web view activity.
Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):
Screenshot of problem:
Additional information:
Issue Analytics
- State:
- Created a year ago
- Comments:12 (7 by maintainers)
Top GitHub Comments
So according to your logs I see you clicked on 3 buttons (light, success and success feedback events)
and then a few seconds later (presumably after turning off HA User profile vibration setting) you had clicked on the same 3 items.
In both of these cases the app is responding to HA frontend sending the haptic request, so this is beginning to sound like a HA frontend if that is correct. All we do is respond to the HA frontend requests here.
Also you have a lot of errors not only about sensors but also in the HA frontend, you may want to look into getting those fixed by following the start fresh steps. The app seems to have issues registering sensors and some other webview error.
https://companion.home-assistant.io/docs/troubleshooting/faqs#starting-fresh-with-the-android-app
There is not much we can do here with custom cards, especially when default behavior works as expected.
I am not sure but that would not be app related as we just respond to events
The apps are responsible for reacting to the external bus messages for the haptic event, If an event is not supposed to be sent then that responsibility lies with the HA frontend.
could be how they implement one of the APIs used but I am not sure, its a guessing game at this point.
Given that default behavior works I am going to close this issue as the issue so far seems to be related to custom cards. If we determine it is an app issue we can revisit this.