home-assistant / android

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

Wear OS - NFC tag read #1829

Closed hkusulja closed 1 year ago

hkusulja commented 2 years ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Please implement NFC read tag for Wear OS, so it can trigger action, like it persists for mobile app.

Describe alternatives you've considered, if any

Additional context

hkusulja commented 2 years ago

@dshokouhi can you please update status on this? Thank you

dshokouhi commented 2 years ago

@hkusulja it will be ready when its ready.

hkusulja commented 2 years ago

@dshokouhi of course, i just mean, is there some related git repo branch for this, does the team work on this, or is still pending etc. Thank you anyhow !!

dshokouhi commented 2 years ago

@hkusulja everybody is a volunteer. Unless you see a PR submitted assume people are working on whatever it is they want to work on. Volunteers dont need to give status updates.

With that said one thing we need to investigate is if this is even possible, we had a user on reddit mention that on Wear OS NFC is restricted to payments only. If that is the case then we cannot proceed with this change.

hkusulja commented 2 years ago

Let's wait and see - https://issuetracker.google.com/issues/213599626 Please vote on Wear OS feature request...

garv3 commented 2 years ago

We definitely need this!

TBSniller commented 2 years ago

Someone on Reddit says it's possible to read tags using his own app on WearOS with Galaxy Watch 4: https://www.reddit.com/r/homeassistant/comments/p7dis0/does_anyone_know_if_there_is_home_assistant_app/h9v0vyz?utm_medium=android_app&utm_source=share&context=3 Would be lucky if he reads the comment and give us a bit insight.

ShellAddicted commented 2 years ago

@TBSniller My mistake, Only the HCE stack is available. For a reference implementation (not mine) see: https://github.com/Lexycon/android-pn532-hce

TBSniller commented 2 years ago

@ShellAddicted: Thanks for making clear and sharing an example!

n00bcodr commented 2 years ago

Samsung Health App on my My Galaxy Watch 4 has the ability to read NFC tags, probably for scanning Gym equipment and to start appropriate workout.

That would mean there is an option for other apps to use NFC on the watch, probably?

dshokouhi commented 2 years ago

Samsung Health App on my My Galaxy Watch 4 has the ability to read NFC tags, probably for scanning Gym equipment and to start appropriate workout.

That would mean there is an option for other apps to use NFC on the watch, probably?

A Samsung app on a Samsung device might just be a special case. If it's supported on all wear OS devices then Google would have it documented.

They have yet to respond to the issue above.

augustodinizl commented 2 years ago

@dshokouhi , maybe that could help in the feature development: https://play.google.com/store/apps/details?id=com.contorra.golfpad I will dig a little in the next week to try...

dshokouhi commented 2 years ago

@dshokouhi , maybe that could help in the feature development: https://play.google.com/store/apps/details?id=com.contorra.golfpad I will dig a little in the next week to try...

Take a look at Google's update in the issue tracker

grossqx commented 1 year ago

I'd be happy to test this on wearos 3 on a pixel watch if this issue ever gets any development.

augustodinizl commented 1 year ago

@dshokouhi , it's possible to use the hce stack of wear os via the companion app (maybe with a new sort of "card" in the app) to simulate a nfc/rfid tag that already exists?

Californian commented 1 year ago

Yeah I'm not sure what would prevent the use of HCE. It would mean that one's phone still needed to be in range (or your watch connected to data in some way) in order for the scanning to work, but that would still cover some use cases.

I'm not sure why wearos devices either don't have secure elements (maybe power requirements), or why android requires one in the first place for basic NFC reads.

dshokouhi commented 1 year ago

Going to close this request as the Google issue was also closed as intended behavior. Until a watch comes out with the proper hardware and feature we won't be able to work on this. Happy to revisit once that is the case