WearOS: Add app activities to ShortcutsTile
Summary
This adds the option to add buttons to launch either the Companion app, or the Assist dialog to the ShortcutsTile. See #4550
Screenshots
Shortcut tile with newly added buttons;
Config for this example;
New button options are added at the bottom of the entity selection list under the shortcuts section;
Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
Any other notes
- This implementation has been tested only on an AndroidStudio emulator.
- It seems that the HA Icon included in the
CommunityMaterial.Iconlibrary has not yet been updated. - I'm not fluent in Kotlin / Android app development, so if there's any improvements to be made I'm happy to learn :)
- It seems that the HA Icon included in the
CommunityMaterial.Iconlibrary has not yet been updated.
Yea I am not sure it will be acceptable to include the old branding there 🤔
- It seems that the HA Icon included in the
CommunityMaterial.Iconlibrary has not yet been updated.Yea I am not sure it will be acceptable to include the old branding there 🤔
MDI is dropping brand icons in the next major release so probably not open to updating, so I think the way forward is to load the icon from the app's resources in this specific case.
Yea I am not sure it will be acceptable to include the old branding there 🤔
Well, any entities inside HA that have its icon set to mdi:home-assistant will still show the old icon too.
So this would best be addressed at the icon library side.
Yea I am not sure it will be acceptable to include the old branding there 🤔
Well, any entities inside HA that have its icon set to
mdi:home-assistantwill still show the old icon too. So this would best be addressed at the icon library side.
Yea for any entities a user has defined is fine, but since we are creating this entry it should use the appropriate icon
If you agree with this approach I'd prefer looking into creating a separate PR which would patch any use of mdi:home-assistant to be in line with what would be shown on the web version of the HA instance for consistency across platforms. That way any use of the HA icon would be using the new icon instead of the old one.
EDIT: See PR #4587
Changing this to draft while waiting for the other PR