Closed adrienvsj closed 11 months ago
I finally found the Home Assistant frontend file that defines how actions are handled. Here is how URLs are handled. I'll try refactoring my code to more closely follow what's done here and then test that it all works.
Should be fixed in v3.2.3. I tested it on an old iPhone and it opened the correct apps. I also added the assist
and more-info
commands using the information from the Home Assistant frontend repo.
Work fine thank you for your work !
Checklist:
Release with the issue: Start with 3.2.0 (introducing HA actions button)
Last working release (if known): No functional release
Browser and Operating System: HomeAssistant Companion iOS version : 2023.7 (2023.471) (latest version) HomeAssistant Core version : 2023.12.3 (latest version) android-tv-card version : 3.2.2 (latest version)
Description of problem: Since version 3.2.0 and the ability to use the HA actions button, I want to integrate a custom actions that opens an external application on my iPhone, which is the Apple TV remote control app. Code with the button card :
But using the same
tap_action
configuration in the android-tv-card does absolutely nothing. I get haptic feedback but nothing happens. I created another custom action that opens google.com and this one works but doesn't work exactly like HA's lovelace buton card. And I think that's where my problem comes from.With a url_path on an HA button card, when clicked it opens the google.com in my default browser. Whereas the same configuration but in the android-tv-card navigates directly to google.com but within the HA companion iOS app webview. I think that the integration of button URL actions is not implemented exactly as it is on HA's default cards. Opening a url externally (towards the iOS browser) allows iOS to evaluate the nature of the link and, in the case of a URL scheme, open the targeted application.
Attached is a demo video : https://youtube.com/shorts/JTlR0I0GGIU?si=_Jy8qiT_2vzKZ2bs
Javascript errors shown in the web inspector (if applicable):
Your Full Remote Config
Additional information: