Android companion app widget 'forgets' Entity ID

I’ve had the Android Companion app on my phone (OnePlus) since it was released and I set up a widget to toggle a switch many months ago. It always worked fine.
Until a couple of weeks ago, it stopped working. Today I spent a bit more time investigating. I deleted it and try to recreate with a switch.toggle service call on a switch.garagepoort Entity ID (which is shown in a drop down list).
The widget is created but immediately shows a cross on a red background when it is clicked. Checking the widget setup I noticed that the Entity ID field is empty. I can add it again, but each time the widget ‘forgets’ the Entity ID.

I think this is the relevant part of the Companion app log :

05-10 19:34:33.795  7974  7974 D ButtonWidget: Saving service call config data:
05-10 19:34:33.795  7974  7974 D ButtonWidget: domain: switch
05-10 19:34:33.795  7974  7974 D ButtonWidget: service: toggle
05-10 19:34:33.795  7974  7974 D ButtonWidget: service_data: {"entity_id":["switch.garagepoort"]}
05-10 19:34:33.795  7974  7974 D ButtonWidget: require_authentication: false
05-10 19:34:33.795  7974  7974 D ButtonWidget: label: garage
05-10 19:34:33.808  7974  7974 D BufferQueueConsumer: [](id:1f2600000026,api:0,p:-1,c:7974) connect: controlledByApp=false
05-10 19:34:33.808  7974  7974 E IPCThreadState: attemptIncStrongHandle(81): Not supported
05-10 19:34:33.809  7974 14827 D BufferQueueProducer: [VRI[SettingsActivity]#38(BLAST Consumer)38](id:1f2600000026,api:1,p:7974,c:7974) connect: api=1 producerControlledByApp=true
05-10 19:34:33.809  7974  7974 D VRI[SettingsActivity]: registerCallbacksForSync syncBuffer=false
05-10 19:34:33.814  7974 14827 D VRI[SettingsActivity]: Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true syncBuffer=false
05-10 19:34:33.814  7974  7974 D VRI[SettingsActivity]: draw finished.
05-10 19:34:33.816  7974  7974 D VRI[ButtonWidgetConfigureActivity]: onFocusEvent false
05-10 19:34:34.044  7974  7974 D VRI[SettingsActivity]: onFocusEvent true
05-10 19:34:34.044  7974  7974 I Quality : Skipped: false 13 cost 219.31305 refreshRate 16658780 bit true processName io.homeassistant.companion.android
05-10 19:34:34.046  7974  7974 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1683740071335, currentMillis: 1683740074046)
05-10 19:34:34.046  7974  7974 D IntegrationRepository: setAppActive(): true
05-10 19:34:34.297  7974 16146 D VRI[ButtonWidgetConfigureActivity]: dispatchAppVisibility visible:false
05-10 19:34:34.311  7974 14827 D BufferQueueProducer: [VRI[ButtonWidgetConfigureActivity]#36(BLAST Consumer)36](id:1f2600000024,api:1,p:7974,c:7974) disconnect: api 1
05-10 19:34:34.326  7974  7974 D BufferQueueConsumer: [VRI[ButtonWidgetConfigureActivity]#36(BLAST Consumer)36](id:1f2600000024,api:0,p:-1,c:7974) disconnect
05-10 19:34:34.333  7974  7974 D VRI[ButtonWidgetConfigureActivity]: setWindowStopped stopped:true
05-10 19:34:34.337  7974  7974 D OplusScrollToTopManager: unregisterGuidePopupDismissReceiverInSystemUI
05-10 19:34:34.337  7974  7974 D OplusScrollToTopManager: Receiver not registered: android.view.OplusScrollToTopManager$1@6c85b8f
05-10 19:34:34.337  7974  7974 D OplusScrollToTopManager: unregisterSystemUIBroadcastReceiver 
05-10 19:34:34.337  7974  7974 D OplusScrollToTopManager: java.lang.IllegalArgumentException: Receiver not registered: android.view.OplusScrollToTopManager$2@ecebe1c
05-10 19:34:34.339  7974  7974 D CursorFeedback: editorDetachFromWindow android.widget.Editor@19baa25
05-10 19:34:34.339  7974  7974 D CursorFeedback: editorDetachFromWindow android.widget.Editor@abce7fa
05-10 19:34:34.339  7974  7974 D CursorFeedback: editorDetachFromWindow android.widget.Editor@67921ab
05-10 19:34:34.340  7974  7974 V ZoomWindowDecorView: removeZoomView

any ideas?

1 Like

Same is happening for me. I’ve deleted and re-setup, but continually drops the entity id.

Fixed in the latest beta. The data is actually saved just got displayed properly during the edit.