I have recently installed Home Assistant on a Pi 4, and was hoping to add Tuya switches as widgets on my Galaxy S7’s home screen. I managed to set them up but when I press the widget, all I get is a spinning circle for just over 10 seconds before the switch is toggled.
I am using the switch.toggle service. I have tired the usual turn it off and on again, checked with the app open or closed, and cleared caches where I can - still no luck. My friend’s iPhone 6s toggles switches almost instantly.
Switching from inside the app is as quick as one could expect.
Is this a issue with how I have it setup or is this an unavoidable problem with how Android/Home Assistant handles widgets? Are there any alternative apps out there that can get the job done?
Had a look at the logs, and there are no errors appearing that I can see. It’s a bit quicker today, at around 3 seconds from button press to action. Seems like this time is taken up by the ‘Calling widget service’ step.
09-10 21:18:21.167 8854 8854 D ButtonWidget: Broadcast received:
09-10 21:18:21.167 8854 8854 D ButtonWidget: Broadcast action: io.homeassistant.companion.android.widgets.button.ButtonWidget.CALL_SERVICE
09-10 21:18:21.167 8854 8854 D ButtonWidget: AppWidgetId: 81
09-10 21:18:21.169 8854 8854 D ButtonWidget: Calling widget service
09-10 21:18:24.001 8854 8854 D ButtonWidget: Service Call Data loaded:
09-10 21:18:24.001 8854 8854 D ButtonWidget: domain: switch
09-10 21:18:24.001 8854 8854 D ButtonWidget: service: toggle
09-10 21:18:24.001 8854 8854 D ButtonWidget: service_data: {“entity_id”:[“switch.84651456tjstr49tj4t5”,“switch.21456844thjdf97fj6r1”]}
09-10 21:18:24.005 8854 8854 D ButtonWidget: Sending service call to Home Assistant
09-10 21:18:24.007 8854 8854 D UrlRepository: localUrl is: false and usesInternalSsid is: true
09-10 21:18:24.915 8854 8854 D ButtonWidget: Service call sent successfully
I tried Ariela for comparison and I get instantaneous responses from that app’s widgets.