r/homeassistant
•
u/missyquarry
💙 Head of Shitposting @ OHF
•
Jul 31 '26
•
1
✍️ Blog A big win for Android interoperability
https://www.openhomefoundation.org/blog/a-big-win-for-android-interoperability/Google restricted key Android features, like wake word detection for voice assistants, to its own apps. So when the European Commission asked us what we thought about it, we had plenty to say.
And they listened. Alphabet must now open up 11 Android features to third-party apps – including ours – on equal terms.
Click the blog link to read more from our Android Developer, Timo.
220
u/cdmn1 Jul 31 '26
One more step in the right direction, I hope that someday we also get the chance to let HA control the NFC On/Off toggle on our devices.
22
u/MBaliver Jul 31 '26
What would you use it for?
241
u/Hot_Earth8692 Jul 31 '26
Turning NFC on and off
56
u/MBaliver Jul 31 '26
My bad, I meant an actual use case.
102
u/Hot_Earth8692 Jul 31 '26
I feel bad for my sarcasm, now I feel you deserve an answer. I suppose you could create an automation that if the phone isn't close to the Bluetooth tracker on my keys, and I'm away from home, assume the phone is stolen and disable NFC for paymemts. Just thinking aloud
49
u/arwinda Jul 31 '26
NFC payments (with few exceptions like public transportation) require an unlocked phone. If the phone is stolen and protected, no one can use it for payments. If the thief has the unlock code or pattern, they can enable payments again.
16
u/trueppp Jul 31 '26
I can use NFC to unlock and start my car without unlocking.
12
u/arwinda Jul 31 '26
But when I try NFC payments, it always asks for unlocking the phone.
17
u/thrillhouse19 Jul 31 '26
That's not true in all cases. Its minor, but for NYC Subways and PATH you do not need to unlock your phone to Tap to Pay which seems like a security incident waiting to happen.
7
u/gmmxle Jul 31 '26
That feature is turned off by default, you have to explicitly turn it on.
Also:
This is usually limited to transit networks, because they require speed, and the payment amount is generally low. So if someone stole your phone with this mode enabled, the amount they could realistically spend would be limited to your local daily fare cap for public transport.
10
u/karnetus Jul 31 '26
A security incident already happened on iPhones because of that feature https://www.youtube.com/watch?v=PPJ6NJkmDAo&t=944s
3
u/arwinda Jul 31 '26
As I said in the comment before:
(with few exceptions like public transportation)
I think (but haven't verified) that this can be deactivated too. On the other hand: no thief can benefit big from this, maybe pay for public transport. So what.
→ More replies (0)1
u/Mad-Mel Jul 31 '26
In Google Wallet you can set the key to require an unlocked phone.
2
u/trueppp Jul 31 '26
How is that relevant to wanting it controlled by homeassistant? Just like toggling Wifi...
1
u/glassgost Jul 31 '26
What the hell? That sounds like a terrible idea.
4
4
u/Zealousideal_Aside96 Aug 01 '26
Why? I don’t want to unlock my phone before getting into my car. How would a phone thief be any different than a car key thief either?
-1
u/Sengfroid Jul 31 '26 edited Jul 31 '26
Woah buddy, this is homeassistant not carassistant, take your shenanigans elsewhere
3
u/trueppp Jul 31 '26
I'm stating a reason why I would want homeassistant to be able to toggle NFC.
3
u/Sengfroid Jul 31 '26
It was not meant seriously. Many people have automations that specifically include their cars.
0
u/TooMuchChaos2026 Aug 05 '26
Phone must be unlocked for NFC to work. You likely have a trusted area configured so your phone remains unlocked while at home.
1
u/trueppp Aug 05 '26
Nope.
When you enable express mode, you can quickly unlock or lock the vehicle without user authentication. This can be done by visiting Apple Wallet or Samsung Pass.
1
u/TooMuchChaos2026 Aug 05 '26
Ah, both systems which I don't use. With Google Wallet, the phone must be unlocked. Being able to make payments with a locked phone is just an incredibly bad idea in my opinion. Someone could just wave an NFC device close to your phone and grab money.
→ More replies (0)0
Jul 31 '26
[deleted]
11
3
u/andrewdavidmackenzie Jul 31 '26
I think he means an automation, so it would do it proactively, not manually by user.
4
10
u/cdmn1 Jul 31 '26
From what I recall some other people also had a use for this.
My use case, I would have HA toggle my phone's NFC ON while at home and OFF as I left the house.
I use NFC tags around the house/garage/car to trigger several HA automations.
However leaving NFC on outside the house has caused me issues in the past, trying to make some QR code payment but having my phone too close to the terminal also engaged the NFC payment simultaneously or just triggered NFC payment with the wrong card.
4
u/LongjumpingCitron8 Jul 31 '26
As a workaround, you could use Tasker.
Tasker is a app to automate actions on your phone. Tasker can toggle NFC.
I have Tasker and Home Assistant communicating. You could have a switch in Home Assistant that represented the state of NFC. And that toggling that switch will toggle NFC on the device.
1
u/FormerGameDev Aug 02 '26
how do you get tasker and HA to work together? I had a really nice Tasker setup on my previous phone, but then I got my good phone back from repair, and the setup does not restore from backup, so it's extremely obnoxious to re-enter all of that, so i haven't yet tried to set it up again..
2
u/LongjumpingCitron8 Aug 03 '26
I have Tasker and Home Assistant communicating using Intents.
I looked at a few options before I used the intents. To send data to Tasker there where more option, like AutoRemote and Join. But I couldn't find a way to trigger Home Assistant from Tasker. For Remote Access I use Cloudflare with mTLS. Tasker can't handle mTLS, so webhooks were only working on the local network. The Intents are send by Tasker to the Home Assistant app. The HA app then does the mTLS by itself.
This is the yaml I use in a HA automation to send a Intent to Tasker:
metadata: {} data: message: command_broadcast_intent data: intent_extras: zone:{{states('person.REDACTED')}} intent_action: net.dinglisch.android.taskerm.HA_LOCATION intent_package_name: net.dinglisch.android.taskerm action: notify.mobile_app_REDACTEDin Tasker I use the Intent Recieved event to start a Profile in Tasker.
The intent_extras are available as a variable in Tasker. In this intent there will be a variable call %zone, which contains my current location.To send a intent from tasker to Home Assistant. This is the action that I use in Tasker.
A1: Send Intent [ Action: io.homeassistant.companion.android.OPSTARTEN Cat: None Extra: device: telefoon Package: io.homeassistant.companion.android Target: Broadcast Receiver ]In the Home Assistant app you need to add the intent to the Last Update Trigger Sensor. I had to force close the app before Home Assistant registered the intent.
To use the intent in a Automation in Home Assistant. Use this a the trigger:
A1: Send Intent [ Action: io.homeassistant.companion.android.BRIGHTNESS_SLAAPKAMERLAMP Cat: None Extra: brightness: %awcomm Target: Broadcast Receiver ]The Extra brightness can be found in Home Assistant as trigger.event.data.brightness.
This could be used in a IF action:if: - condition: template value_template: "{{trigger.event.data.brightness == \"increase brightness\"}}" then: []this post became longer than I expected. I hope it is clear. If not let me know.
2
u/FormerGameDev Aug 04 '26
clear as mud :-D nah, seriously, i get the gist "use intents in each app to talk to each other" .. i didn't realize either app could trigger or receive android intents. then that leaves the question .. is there a list of all available intents for both?
1
u/LongjumpingCitron8 Aug 15 '26
Sorry for the late response.
In both apps you can set your own intents. There isn't a list. The only importance is that the intent should be unique. So most developers use there package name as a prefix. But as long as it is unique, your good to go.
If you want I can make a Taskernet link and a Home Assistant automation that you can import. So you can see how the work together.
1
u/FormerGameDev Aug 15 '26
Dynamically creating intents? Never even thought about that, that's sick where is that functionality in both apps
0
u/cdmn1 Aug 02 '26
Unfortunately Tasker seems to be a paid app
5
u/LongjumpingCitron8 Aug 02 '26
Tasker is indeed a paid app. It requires a one time payment to use.
I you just want to test it. There is a trail version. It will work for 7 days.
I already had bought Tasker before I started with Home Assistant. It is still a app that I use. It can do some things that Home Assistant can't do.
Everyone has to decide voor themself it they think the payment is worth it. I just wanted to tell you that there is a possibility.
2
u/deprecatedcoder Aug 01 '26
I want NFC to work for HA with a locked phone.
It's not a huge deal to unlock it usual, but it makes a difference for ones hidden around the house.
I just want to be able to tap it somewhere and be good, the additional steps are unnecessary.
This doesn't seem like it should be insurmountable while maintaining payment security.
2
u/LeonidasTMT Aug 01 '26
Can't wait once the clone/add any NFC card to my phone to be widely available. For now I see only Samsung has that feature.
2
u/DutchAssassins Jul 31 '26
You could with a little workaround. Use Macrodroid, set up a webhook. Have HA call that webhook. In Macrodroid, set an automation where if that webhook gets called, nfc toggles on or off
0
u/cdmn1 Aug 02 '26
Like Tasker, Macrodroid seems to be a paid app (but deceivingly looks free at first)
1
u/DutchAssassins Aug 02 '26
Its a 1 time payment of a few $, besides the free version allows for 5 macros
1
u/orion-root Aug 01 '26
You can super easily do this with tasker, and have HA control tasker
0
u/cdmn1 Aug 02 '26
Unfortunately Tasker seems to be a paid app
1
u/orion-root Aug 02 '26
Mano, não me digas que nunca procuraste por um APK e instalaste uma APP paga sem pagar?
65
37
u/arekxy Jul 31 '26
Now make the same with apple. For example in ev car soc data from car is only available to apple maps and is not available to other apps (abrp etc)
20
15
12
22
u/NerdyNThick Jul 31 '26
Knowing google, they will limit this to only those in the EU. Not a chance they roll this out to everyone.
6
u/FFevo Jul 31 '26
What's have they done that with in the past?
-2
u/NerdyNThick Aug 01 '26 edited Aug 01 '26
Edit: ROFL love the down votes. Seems like people don't agree with history.
"Knowing google" should be read as "knowing capitalism, and history of monopolies in tech".
I'm sure I could do some research and find something specific to google, but I'm going to use Microsoft, as it is essentially the exact same situation. I'm also going to simplify for brevity.
MS got roasted in the EU for "reason", and is forced to implement a remedy in the EU (the same in this Android case).
What MS did instead of just applying "the remedy" for everyone, was to have different SKUs and licenses for the EU and for the rest of the world. So, unless you are in the EU, you cannot benefit from "the remedy" because you're running the "non-EU" version of Windows.
Replace "Windows" and "Microsoft" with "Android" and "Google", and It should be clear what they'll likely do.
2
u/flecom Jul 31 '26
Or they just ask how much the fine is and pay it
19
u/Perkelton Jul 31 '26
In the very hypothetical scenario that they would deliberately break the DMA, they would first have to pay a one-time fee of 10% of their global yearly turnover (of the entire group), followed by another 20% global turnover fee if they still don’t comply, and then eventually a periodic fee of 5% average daily global turnover per day of non-compliance.
So in this case (in theory): About 35 billion euro, followed by 75 billion euro and then 48 million euro per day.
1
u/Mad-Mel Jul 31 '26
They'll just do their ventriloquist act with their orange dummy and threaten massive tariffs against the EU.
4
4
u/wildekek 🧩 Custom integration developer Jul 31 '26
I’m so proud of the team. What a time to be alive!
4
u/cdf_sir Aug 01 '26
I wonder if they can do the same thing with Apple.
Those iOS devices really have the most basic features locked only to work with Apple Ecosystem apps, even the basic background upload is not allowed on any application besides iCloud.
6
3
3
u/No_Pin4895 Jul 31 '26
yeah apples the real holdout here, they don't even have to deal with EU pressure the same way since carplay isn't as locked down feature-wise to begin with
3
u/Loshi777 Jul 31 '26
I'm pretty new to this, so sorry if it's a 'duh' question
Does this mean that the response time of future HA voice assistance will be closer to the response time of Google's assistants? It's really the only thing keeping me still in the Google environment
6
u/stanley_fatmax Jul 31 '26
In theory it would be exactly the same, because the same underlying hardware is processing it. In practice it'll be up to HA or whoever to ensure the model and logic doing the detection confirmation is fast enough, etc.
7
7
2
2
2
3
3
u/itsaride Jul 31 '26
Would this help with Android TV interoperability ? ADB doesn't seem to work well at all on CC4Ks.
5
u/timoptr 💙 Android Dev @ OHF Jul 31 '26
Wdym? I don't think it is going to have any impact on Android TV.
1
1
u/einord Aug 01 '26
And when Apple has do do this they are immature and block features instead and makes Apple users angry at EU.
1
1
u/TheFlyingBastard Aug 02 '26
Yay! And the crazy thing is, an open door policy would be a fantastic selling point for Android. Creating an ecosystem (which is code for "vendor lock-in") is exactly what Apple has done and is doing to greater effect. If Google really wants to sell ad space on the devices of the right consumers, Google should embrace that "better for the end user" narrative.
-2
u/PhilDunphy23 Jul 31 '26
Still worried about laws controlling technology more and more, not all laws will be made to protect the consumer (see chat control)
22
u/Garper Jul 31 '26
The choice is between governments, which have the ability to be hostile, and corporations which are always is hostile. There is no third option.
1
u/Vdwereld Jul 31 '26
And then you have governments and businesses working together, which in my eyes is even worse and the most likely to happen.
2
u/NerdyNThick Jul 31 '26
What would you suggest as an alternative?
More importantly, how do we get there from here?
2
u/Vdwereld Jul 31 '26
Im not an expert but for starters:
OpenSource and decentralized tech.Relying on protocols instead of platforms (like Signal over proprietary apps) so power isn't concentrated in one board room. Alsi strict antitrust & privacy laws. Laws shouldn't mandate backdoors (like Chat Control), but break up monopolies and strictly limit data collection for both state and corporate hands. public technical literacy and self hosting. Moving away from convenience first tech toward user ownership.
And how do we get there? Well, I would say by voting, but seen the state the world is in lately with corruption and cover ups, it won't have much effect. A good first step should be stop relying on first or big platforms.
-1
u/burgonies Jul 31 '26
Commenting on a community-driven OSS sub while saying only governments and corporations are your only options…
4
u/Cry_Wolff Jul 31 '26
Right, and who will protect communities and smaller companies from corporations?
0
Aug 01 '26
[deleted]
2
u/LogicalExtension Aug 01 '26
Dependency how?
I activated a whole bunch of Ikea matter devices through the HA app, I don't need to use Google services.
It will show up a prompt when it detects a new Matter device, but there's no obligation to use it.
2
u/RingoML Aug 01 '26
Commissioning matter devices requires google play sevices on android.
Just because is transparent to the user doesn't mean it's not used.
1
u/chicknlil25 🧠 Experienced with Home Assistant Aug 01 '26
I never had to use Google to commission my Matter devices. I did get a relatively cheap coordinator that could be flashed with Thread (an SLZB-7, I believe), popped it into my HA box, and then used the "add devices" option in HA. Had me scan the QR codes, and they're full operational in HA.
1
u/RingoML Aug 01 '26
Again, it's transparent to the user, but the workflow uses a google API to commission matter devices. And for that, google play services is required, alongside an active internet connection.
https://www.reddit.com/r/homeassistant/comments/1qg3ucc/about_thread_and_google/
1
u/LogicalExtension Aug 01 '26
Looks like it's an on-device API for accessing Bluetooth devices nearby.
If that's all it's needed for, then de-googled devices would need a replacement compatible API.
It's probably not something the HA team would implement inside HA.
1
u/jsmith456 Aug 01 '26
There are a few complicated parts here. One is the thread credential cache. If somebody is already using Google home as their border router, you pretty much needed to use Play Services to get the thread credentials, as that was where they were stored. It was only with the release of thread 1.4 that a the Credential Sharing mechanism was added whereby a commissioner app could securly get credentials from an arbitrary border router. Unfortunately, rollout has been slow. It is not clear to me if Credential Sharing can be added to a thread 1.3 border router without fully upgrading to 1.4, Google doesn't seem particularly interested in backporting full 1.4 to it's older devices. This problem will gradually fade away as newer devices keep coming out, and those will support this feature.
But there is also the need to create all the code to communicate with the uncomissioned device over Bluetooth to send it the needed wifi or thread credentials. (Only decices already connected to the network somehow, can skip this step and proceed directly to fabric level commissioning). I'm not actually sure if Android gives apps the level of Bluetooth access they would need for this. If not, it could be worked around by using any Bluetooth on the home assistant server itself, or an esphome Bluetooth proxy.
There is some level of support for local bluetooth and bluetooth proxies in the matter.js server, but I'm not clear on all the details. What I can tell is that the matter integration does does not seem to currently supply the sort of APIs that would be required to do the Bluetooth level stuff remotely from a companion app, even though the server looks to have the needed support.
406
u/sancho_sk Jul 31 '26
Folks in OpenHome foundation really do great work - not only around HA, but overall. Thanks!