Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

car_ui triggers two notifications (one empty) when using group parameter #3667

Closed
syphernl opened this issue Jul 17, 2023 · 8 comments · Fixed by #3686
Closed

car_ui triggers two notifications (one empty) when using group parameter #3667

syphernl opened this issue Jul 17, 2023 · 8 comments · Fixed by #3686
Labels

Comments

@syphernl
Copy link

Home Assistant Android app version(s): 2023.7.5

Android version(s): 13

Device model(s): OnePlus 11

Home Assistant version: 2023.7.2

Last working Home Assistant release (if known): -

Description of problem, include YAML if issue is related to notifications:

When sending notifications with car_ui: true the message gets sent to the AA Display.
After showing the message, a new empty popup shows up (and triggers the same notification sound).

service: notify.iq_notify
data:
  title: 🔓 Alarm
  message: Alarm Turned Off ({{changed_by}})
  data:
    tag: alarm-disarmed
    mode: just_arrived
    notification_icon: mdi:shield-lock-open
    channel: Security - Alarm Status
    ttl: 0
    priority: high
    importance: high
    group: Security Alarm
    car_ui: true

Companion App Logs:


Screenshot or video of problem:

Additional information:

@syphernl syphernl added the bug Something isn't working label Jul 17, 2023
@dshokouhi
Copy link
Member

mode: just_arrived

Just a FYI this does nothing for the Android app. Not even documented on the site.

What car/device is this issue occurring on?

@syphernl
Copy link
Author

mode: just_arrived

Just a FYI this does nothing for the Android app. Not even documented on the site.

What car/device is this issue occurring on?

This is an argument for the iq_notify service. On my phone I never had any duplicated / empty content messages.

Car is a Mazda 2 with Mzd Connect.

@dshokouhi
Copy link
Member

ok can you try without the group parameter? It looks like the car may not support that properly. Testing without group does not show a duplicate and empty notification on my end.

@syphernl
Copy link
Author

ok can you try without the group parameter? It looks like the car may not support that properly. Testing without group does not show a duplicate and empty notification on my end.

Certainly, I will give it a go! Where you able to reproduce this issue with setting the group parameter?

@dshokouhi
Copy link
Member

Yes I am able to reproduce.

      message: Testing car UI notification
      data:
        ttl: 0
        priority: high
        channel: car
        car_ui: true
        group: test
        notification_icon: mdi:car

excuse the dust lol

image

@dshokouhi dshokouhi changed the title car_ui triggers two notifications (one empty) car_ui triggers two notifications (one empty) when using group parameter Jul 18, 2023
@garysargentpersonal
Copy link

I have also reproduced this issue. With "group" parameter you get an additional empty notification. Without that, you don't.

@jpelgrom
Copy link
Member

So it looks like Android Auto is actually showing the summary notification apps are supposed to send and is normally displayed when collapsed, and it's empty because HA doesn't set the 'compat' summary. See for example a group of two where I manually set the text for the summary notification to the group name 'Alarm':
image

I'm guessing this has something to do with the Android Auto implementation. Looking around I can only find messaging notifications with multiple 'items', which is not the same as a group. Messages from different persons actually show up individually while they would be grouped on a phone.

As it is technically the same notification as on your phone, we can't remove anything without impact elsewhere. The only 'fix' I see is just not marking the summary notification as available on Auto, so you only get the individual group notifications. What do you all think?

@dshokouhi
Copy link
Member

I think that should be fine, this way users don't need to modify their notifications for the car and can use the same one sent to the phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants