home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.21k stars 617 forks source link

NFC is not working #3554

Closed Nold360 closed 1 year ago

Nold360 commented 1 year ago

Home Assistant Android app version(s): 2023.3.0-minimal & latest beta-minimal [F-Droid]

Android version(s): Android 13 [LineageOS 20 / Without GApps]

Device model(s): Fairphone 3

Home Assistant version: 2023.5.4

Last working Home Assistant release (if known): Unknown

Description of problem, include YAML if issue is related to notifications: Neither Read nor Write Tag do anything, the phone is not even vibrating. NFC in general is working tho.

Companion App Logs:

--------- beginning of main
05-26 10:12:27.645  3847  4466 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:12:27.646  3847  4466 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:12:27.649  3847  4466 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:12:27.650  3847  4466 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:12:27.652  3847  4466 D WebSocketRepository: Sending message 4817: {type=ping, id=4817}
05-26 10:12:27.652  3847  4466 D WebSocketRepository: Message number 4817 sent
05-26 10:12:27.675  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:12:27.676  3847 30757 D WebSocketRepository: Message number 4817 received
05-26 10:12:36.394  3847  3883 E OpenGLRenderer: Unable to match the desired swap behavior.
05-26 10:12:57.660  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:12:57.662  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:12:57.664  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:12:57.664  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:12:57.666  3847  4459 D WebSocketRepository: Sending message 4818: {type=ping, id=4818}
05-26 10:12:57.667  3847  4459 D WebSocketRepository: Message number 4818 sent
05-26 10:12:57.686  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:12:57.688  3847 30757 D WebSocketRepository: Message number 4818 received
05-26 10:13:27.673  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:13:27.676  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:13:27.678  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:13:27.679  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:13:27.680  3847  4466 D WebSocketRepository: Sending message 4819: {type=ping, id=4819}
05-26 10:13:27.681  3847  4466 D WebSocketRepository: Message number 4819 sent
05-26 10:13:27.688  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:13:27.690  3847 30757 D WebSocketRepository: Message number 4819 received
05-26 10:13:57.685  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:13:57.687  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:13:57.689  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:13:57.690  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:13:57.692  3847  4459 D WebSocketRepository: Sending message 4820: {type=ping, id=4820}
05-26 10:13:57.694  3847  4459 D WebSocketRepository: Message number 4820 sent
05-26 10:13:57.714  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:13:57.716  3847 30757 D WebSocketRepository: Message number 4820 received
05-26 10:14:02.950  3847  3883 E OpenGLRenderer: Unable to match the desired swap behavior.
05-26 10:14:17.894  3847  3847 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1685088721971, currentMillis: 1685088857894)
05-26 10:14:17.915  3847  3883 E OpenGLRenderer: Unable to match the desired swap behavior.
05-26 10:14:17.995  3847  3847 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1685088721971, currentMillis: 1685088857995)
05-26 10:14:17.996  3847  3847 D IntegrationRepository: setAppActive(): true
05-26 10:14:24.793  3847  3847 D WebSocketRepository: Sending message 4821: {type=get_states, id=4821}
05-26 10:14:24.793  3847  3847 D WebSocketRepository: Message number 4821 sent
05-26 10:14:24.823  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:14:24.867  3847 30757 D WebSocketRepository: Message number 4821 received
05-26 10:14:26.532  3847  3865 I android.minimal: Background concurrent copying GC freed 813062(29MB) AllocSpace objects, 118(3364KB) LOS objects, 66% free, 18MB/55MB, paused 154us,76us total 301.106ms
05-26 10:14:26.554  3847  3867 W System  : A resource failed to call destroy. 
05-26 10:14:27.694  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:14:27.697  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:14:27.698  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:14:27.700  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:14:27.701  3847  4440 D WebSocketRepository: Sending message 4822: {type=ping, id=4822}
05-26 10:14:27.701  3847  4440 D WebSocketRepository: Message number 4822 sent
05-26 10:14:27.724  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:14:27.724  3847 30757 D WebSocketRepository: Message number 4822 received
05-26 10:14:34.458  3847  4466 D LogcatReader: Read logcat for pid 3847
05-26 10:14:34.521  3847  4466 D LogcatReader: Done reading logcat for pid 3847
05-26 10:14:57.704  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:14:57.705  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:14:57.706  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:14:57.708  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:14:57.709  3847  4459 D WebSocketRepository: Sending message 4823: {type=ping, id=4823}
05-26 10:14:57.709  3847  4459 D WebSocketRepository: Message number 4823 sent
05-26 10:14:57.731  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:14:57.731  3847 30757 D WebSocketRepository: Message number 4823 received
05-26 10:15:27.712  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:15:27.713  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:15:27.715  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:15:27.715  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:15:27.716  3847  4440 D WebSocketRepository: Sending message 4824: {type=ping, id=4824}
05-26 10:15:27.717  3847  4440 D WebSocketRepository: Message number 4824 sent
05-26 10:15:27.735  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:15:27.736  3847 30757 D WebSocketRepository: Message number 4824 received
05-26 10:15:42.719  3847  3847 D IntegrationRepository: setAppActive(): false
05-26 10:15:42.721  3847  3847 D IntegrationRepository: setAppActive(): false
05-26 10:15:42.829  3847  3883 E OpenGLRenderer: Unable to match the desired swap behavior.
05-26 10:15:42.900  3847  3883 W Parcel  : Expecting binder but got null!
05-26 10:15:43.437  3847  3883 D OpenGLRenderer: endAllActiveAnimators on 0x76dcb08fa0 (RippleDrawable) with handle 0x75eca85900
05-26 10:15:57.720  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:15:57.721  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:15:57.724  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:15:57.724  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:15:57.726  3847  4459 D WebSocketRepository: Sending message 4825: {type=ping, id=4825}
05-26 10:15:57.726  3847  4459 D WebSocketRepository: Message number 4825 sent
05-26 10:15:57.743  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:15:57.744  3847 30757 D WebSocketRepository: Message number 4825 received
05-26 10:16:27.730  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:16:27.732  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:16:27.734  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:16:27.735  3847  4440 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:16:27.736  3847  4440 D WebSocketRepository: Sending message 4826: {type=ping, id=4826}
05-26 10:16:27.736  3847  4440 D WebSocketRepository: Message number 4826 sent
05-26 10:16:27.757  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:16:27.759  3847 30757 D WebSocketRepository: Message number 4826 received
05-26 10:16:57.739  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:16:57.741  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:16:57.743  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:16:57.745  3847  4459 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
05-26 10:16:57.747  3847  4440 D WebSocketRepository: Sending message 4827: {type=ping, id=4827}
05-26 10:16:57.747  3847  4440 D WebSocketRepository: Message number 4827 sent
05-26 10:16:57.770  3847 30757 D WebSocketRepository: Websocket: onMessage (text)
05-26 10:16:57.771  3847 30757 D WebSocketRepository: Message number 4827 received
05-26 10:17:03.434  3847  3847 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1685088943721, currentMillis: 1685089023434)
05-26 10:17:03.460  3847  3883 E OpenGLRenderer: Unable to match the desired swap behavior.
05-26 10:17:03.546  3847  3847 D IntegrationRepository: isAppLocked(): false. (LockEnabled: false, appActive: false, expireMillis: 1685088943721, currentMillis: 1685089023546)
05-26 10:17:03.546  3847  3847 D IntegrationRepository: setAppActive(): true
05-26 10:17:06.195  3847  4459 D LogcatReader: Read logcat for pid 3847
05-26 10:17:06.236  3847  4459 D LogcatReader: Done reading logcat for pid 3847
05-26 10:17:08.359  3847  4440 D LogcatReader: Read logcat for pid 3847

Screenshot or video of problem:

Additional information:

jpelgrom commented 1 year ago

Have you verified that the tags you're trying to read/write are supported by your device? For example using an app like NFC Tools.

Nold360 commented 1 year ago

Have you verified that the tags you're trying to read/write are supported by your device? For example using an app like NFC Tools.

Yea, i just foundout that these are mifare tags which doesn't really work with my phone/are not writeable.. reading works tho

jpelgrom commented 1 year ago

Is there any Home Assistant data on the tag? Otherwise the app won't do much for reading.

(From a technical point of view, the app only looks for NDEF records. Anything else is ignored.)

jpelgrom commented 1 year ago

Closing due to no response. If you're still experiencing issues add a comment (and to help us, take a look at the question from two months ago).