home-assistant / iOS

:iphone: Home Assistant for Apple platforms
https://companion.home-assistant.io
Other
1.48k stars 283 forks source link

"Stack Error" while writing the NFC tag #2153

Closed marverix closed 2 years ago

marverix commented 2 years ago

iOS device model, version and app version Model Name: iPhone 12 Software Version: iOS 15.5 App version: 2022.3 (2022.358)

Home Assistant Core Version Docker-based Home Assistant 2022.7.2

Describe the bug Cannot write NFC tag with HA Companion. Error "Stack Error".

To Reproduce

  1. Open HA Companion
  2. Go to Settings > Tags
  3. Add tag
  4. I scan the tag with iPhone
  5. Get error

Expected behavior Should write tag properly.

Screenshots photo_2022-07-12_19-22-31

Additional context I tried it with 2 different tags: Mifare (ISO 14443-3 compliant) and Mifare Ultralight (ISO 14443-3A compliant). With iOS App "NFC Tools" are properly read and written without any issue.

zacwest commented 2 years ago

Does restarting the device fix it?

marverix commented 2 years ago

No. I have also reinstalled the app. Still same.

marverix commented 2 years ago

@zacwest I'm closing this bug... It seems that for some unknown for me reason, those tags both have broken. I tested those tags also on Huawei P30 and it gave an error in NFC Tools. For both of them. After trying with the third one (and, just in case, restarting the phone) I managed to get the success message. Well, I guess the lesson learned... don't buy cheap-o NFC tags...

eyeisystems commented 1 year ago

I had this issue with an iPhone and some NFC tags i bought, turns out it's a signal issue between NFC tag and device. Removing the case i had the iPhone in solved the problem and enabled me to write to them without issue.