Add Android Auto notification extension #3642
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add an option to have notifications show up on Android Auto. This will allow users to show any notification they want by adding a single line. This can be used for anything, like critical alerts like the docs example or getting sensors updated (#3399, instead of forcing a notification this can be handled with an automation).
Notification icons aren't processed/changed as much in Android Auto as the status bar, so also two related minor changes to make them look good:
The setting is named
car_ui
as these changes may also benefit Android Automotive and maybe even iOS/CarPlay can use it in the future? Automotive is unclear and could depend on the manufacturer though so not mentioning it in the docs.Fixes #3520
Screenshots
Actions will show up with their icon, so I guess we need an option to specify the icon soon:
![Android Auto head unit with a Home Assistant notification on top of the screen, and a button with a Home Assistant icon on the right](https://private-user-images.githubusercontent.com/8148535/251713393-f2bd4f5d-9004-4a09-af60-f6729b37b72c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3NDE0NTgsIm5iZiI6MTcxODc0MTE1OCwicGF0aCI6Ii84MTQ4NTM1LzI1MTcxMzM5My1mMmJkNGY1ZC05MDA0LTRhMDktYWY2MC1mNjcyOWIzN2I3MmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MThUMjAwNTU4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjExMjVkNmNiYTc5YWI2ZDI3ZDNlNzM4MjE1MWJkNmM0ZTBmMTA4NjQ2OGNjZDIwNTNhYjkxZjZmNDg2M2U5MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.aFKoXl-C58_oMtbeppME1NV7uxLpYN6vy8D3sQYkPTo)
Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#951
Any other notes