The folowing command works perfect with the Companion App, the first time when the app is still closed.
When the app is already active it doesn’t seem to work. Do I need to perform some sort of close action first?
Thanks for the help
The folowing command works perfect with the Companion App, the first time when the app is still closed.
When the app is already active it doesn’t seem to work. Do I need to perform some sort of close action first?
Thanks for the help
Hi Bart, welcome to the forum!
It should work, tested it here with the app closed and open.
I have the same problem, HA companion app is 2023.12.5-full.
When the app is closed (running in background) it works fine, when it’s in foreground nothing happens. I tested it on three devices, all the same behavior. I know it worked in the past because i have a button using this command on my wall tablet.
Here are the logs of 2 tries:
01-07 10:38:40.854 16995 17608 D WebSocketRepository: Websocket: onMessage (text)
01-07 10:38:40.856 16995 17608 D WebSocketRepository: Message number 2346 received
01-07 10:38:40.861 16995 31310 D WebSocketRepository: Sending message 2628: {type=mobile_app/push_notification_confirm, webhook_id=76aec2367551a40026dc4e2df5bb471d9c6b3a41ad78f9cb89c4c83ced1c75b7, confirm_id=73907ba8c4fb4e8d3388ef41f71245b6, id=2628}
01-07 10:38:40.861 16995 31310 D WebSocketRepository: Message number 2628 sent
01-07 10:38:40.872 16995 17608 D WebSocketRepository: Websocket: onMessage (text)
01-07 10:38:40.874 16995 17608 D WebSocketRepository: Message number 2628 received
01-07 10:38:40.879 16995 16995 D MessagingService: Processing device command
01-07 10:38:40.933 16995 16995 I ViewRootImpl@df429de[WebViewActivity]: onDisplayChanged oldDisplayState=2 newDisplayState=2
01-07 10:38:40.933 16995 16995 I ViewRootImpl@b0d1f91[SettingsActivity]: onDisplayChanged oldDisplayState=2 newDisplayState=2
01-07 10:38:48.316 16995 24402 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
01-07 10:38:48.321 16995 24402 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
01-07 10:38:48.323 16995 24402 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
01-07 10:38:48.324 16995 24402 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
01-07 10:38:48.325 16995 24614 D WebSocketRepository: Sending message 2629: {type=ping, id=2629}
01-07 10:38:48.325 16995 24614 D WebSocketRepository: Message number 2629 sent
01-07 10:38:48.343 16995 17608 D WebSocketRepository: Websocket: onMessage (text)
01-07 10:38:48.345 16995 17608 D WebSocketRepository: Message number 2629 received
01-07 10:38:48.888 16995 17608 D WebSocketRepository: Websocket: onMessage (text)
01-07 10:38:48.890 16995 17608 D WebSocketRepository: Message number 2346 received
01-07 10:38:48.895 16995 24614 D WebSocketRepository: Sending message 2630: {type=mobile_app/push_notification_confirm, webhook_id=76aec2367551a40026dc4e2df5bb471d9c6b3a41ad78f9cb89c4c83ced1c75b7, confirm_id=18a91e22fc9881c7384fdba516149204, id=2630}
01-07 10:38:48.895 16995 24614 D WebSocketRepository: Message number 2630 sent
01-07 10:38:48.902 16995 17608 D WebSocketRepository: Websocket: onMessage (text)
01-07 10:38:48.903 16995 17608 D WebSocketRepository: Message number 2630 received
01-07 10:38:48.906 16995 16995 D MessagingService: Processing device command
01-07 10:38:50.377 16995 16995 I ViewRootImpl@b0d1f91[SettingsActivity]: ViewPostIme pointer 0
01-07 10:38:50.406 16995 16995 I ViewRootImpl@df429de[WebViewActivity]: onDisplayChanged oldDisplayState=2 newDisplayState=2
01-07 10:38:50.406 16995 16995 I ViewRootImpl@b0d1f91[SettingsActivity]: onDisplayChanged oldDisplayState=2 newDisplayState=2
01-07 10:38:50.440 16995 16995 I ViewRootImpl@b0d1f91[SettingsActivity]: ViewPostIme pointer 1
01-07 10:38:50.455 16995 16995 D ScrollView: initGoToTop
01-07 10:38:50.464 16995 16995 I BLASTBufferQueue_Java: update, w= 1080 h= 2400 mName = ViewRootImpl@b0d1f91[SettingsActivity] mNativeObject= 0xb400006ec92c9d90 sc.mNativeObject= 0xb400006ff9271950 format= -1 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2968 android.view.ViewRootImpl.relayoutWindow:9998 android.view.ViewRootImpl.performTraversals:4056 android.view.ViewRootImpl.doTraversal:3239 android.view.ViewRootImpl$TraversalRunnable.run:11197 android.view.Choreographer$CallbackRecord.run:1650
01-07 10:38:50.464 16995 16995 I ViewRootImpl@b0d1f91[SettingsActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=0 res=0x0 s={true 0xb400006e1934c690} ch=false seqId=0
01-07 10:38:50.464 16995 16995 D ScrollView: onsize change changed
01-07 10:38:50.467 16995 15772 D LogcatReader: Read logcat for pid 16995
01-07 10:38:50.472 16995 16995 I ViewRootImpl@b0d1f91[SettingsActivity]: registerCallbackForPendingTransactions
01-07 10:38:50.476 16995 10481 I ViewRootImpl@b0d1f91[SettingsActivity]: mWNT: t=0xb400006e8927e490 mBlastBufferQueue=0xb400006ec92c9d90 fn= 573 caller= android.view.ViewRootImpl$6.onFrameDraw:5539 android.view.ViewRootImpl$2.onFrameDraw:2103 android.view.ThreadedRenderer$1.onFrameDraw:788
01-07 10:38:50.535 16995 17004 D InputTransport: Input channel destroyed: 'ClientS', fd=256
01-07 10:38:50.536 16995 17004 D InputTransport: Input channel destroyed: 'ClientS', fd=321
Maybe anybody has an idea what could be wrong?