#No Notification Sound with Companion App
1 messages · Page 1 of 1 (latest)
does the channel have a sound selected?
in the companion app under settings/companion app/notification channels I have default rightone with pop on screen, a sound selected, vibration, show notification dot, and override DND. while the notification dot IN the companion app over the hamburger menu shows up and the notification shows up when i click the notification, no sound, no popup, nothing
Maybe somewhat related is when I click on the Notification channels selection in the app settings the only thing listed at the bottom is "sensor updates". I'd think there would be channels in here somewhere since it says "below is a list of notification channels" but there's nothing listed.
yea you should at least have the general channel show up, do you see the general channel in the main channel list for the app?
i don't know where the main channel list would be. where would i find that main channel list, none of the settings menu options mention channels
the only mention of channel i can find is under settings/companion app/notification channels, which is blank
this will be under the general device settings and not app specific
probaby settings > app and notifications?
the fact that the general channel is not there and you sent a notification to the app is a bit odd because thats the default channel. Can you share an example of teh notification you are sending too?
i've tried all send to device notification options in the home assistant automations menu via the browser, it will send a notification to the app on my phone, but it will only show up silently with an orange dot on the hamburger menu. I have ALL sounds enabled on my phone (been an android user for 20+ years so I'm sure sounds are on on phone, in app permissions, etc). If the app gets a persistent notification should there be a sound? Can I create a channel manually in configuration.yaml? i am pouring over the docs and it's really unclear how you make a new channel, so i can't really test that until i figure that out
make sure to use the mobile app notify service call. Sounds like you are using an incorect service call as the app will never add the notification to hte hamburger menu
to be clear you dont need to do anything to create a default channel, you just need to use the correct service call to the app.
also here are the docs you should be referencing for mobile app notifications https://companion.home-assistant.io/docs/notifications/notifications-basic/
I have used the mobile app notify service call. I have tried all notification options and the only one that ever gets to my phone is the "persistent notification" which doesn't specify a target device. when I specify my phone as target no notification gets there. I am using this:
action: notify.mobile_app_pixel_9_pro_xl
metadata: {}
data:
message: test message
title: test title
Here are my options, and no matter how I specify target device as the phone, nothing gets thru:
I also think it's strange that even though I don't have to create a notification channel manually and that General should exist, that it's not there. Even if I try to create a channel in yaml as part of a data: block channel: "name" that it doesn't get created. The only notification channel I seem to have in the app on my phone is "sensor updates". Seems like this might have something to do with the problem.
persistent notification is not related to the app at all, tahts completely different
you should be using the pixel 9 one
try to add the critical format to speed up delivery of the notification
metadata: {}
data:
message: test message
title: test title
data:
ttl: 0
priority: high
if that doesnt work we also have these troubleshooting steps https://companion.home-assistant.io/docs/troubleshooting/faqs#i-have-a-notifymobile_app_device_id-action-but-dont-receive-notifications
well that's a shame, yeah I've tried 6 ways till sunday to send a notification to notify.mobile_app_pixel_9_pro_xl, both both within and outside of developer options. Unfortunately while the notification goes to my iPad perfectly, no notification ever gets to my Android phone, regardless of ttl, priority, etc. Followed the troubleshooting section in the URL you provided and still nothing. Very frustrating but I guess maybe it doesn't want to play nice with my phone for some unknown reason.
Also cleared cache/uninstalled the app, rebooted HA, reinstalled the app and relogged in verifying the device disappeared then reappeared in HA after I logged in on the phone. The entity works because I can see phone details, battery, location, etc, in HA, just can't seem to send it a notification.
so you never get any notification on the phone? do you see any errors in the HA logs? are you running something that maybe blocking notifications from firebase?
also the steps you mentioned are not hte same steps we call out in teh start fresh steps
the start fresh steps are designed to avoid android auto backup feature....reinstalling teh app still restores some data we try to avoid
you can also try to enable local push notifications to see if the mesage is blocked elsewhere https://companion.home-assistant.io/docs/notifications/notification-local
definitely do all the testing with the mobile app notification call, thats the one the app uses solely....theres something funky going on somewhere if you get no notifications using it
understood, i really appreciate your help. interesting update, i have a pixel 9, my wife has a pixel 7, and she just got home. i installed HA and logged in to her user on her phone, and she doesn't get notifications either. so strange.
just checked the HA logs, no logs related to either phone, just a few errors with some cameras I have (though they work fine in HA)
are you potentially blocking the call to firebase somehow?
like adguard or something doing something it shouldnt?
if you turn on the persistent connection that may answer the question if it just works lol
that basically forces the server to send a message directly to the device instead of firebase
so set to always then resend the notification
i'm not sure how the notification process works tbh, or what firebase is.
ok can you tell me where persistent connection is?
the latest link i sent
its also called local push
rgr i'l read that now
by the way i realliy appreciate all the help, i've been staring at this for much of the day!
normally the app sends a notificaiton to google firebase which then sends the message to the device to be battery friendly
some of the details behind how it works
i see now. well it's VERY possible this is the issue then, though it's strange that it works on the ipad. I have a ubiquiti firewall that blocks my NAS (where HA is running) from talking to the outside world except for sites I explicitly allow
iOS probably has a different server its using that you may have whitelisted?
definitely a different one for android
if you can look at those logs search for android and you may see something HA related
hmm well i wouldn't have known to whitelist it which is strange. if i cant figure it out i can stream the NAS data to wireshark and look at what domains it's trying to talk to. i'm going to find that persistent connection setting and see if that works first
ummm
you are a freaking genius
it's my blocking the firebase server
which i didnt even know i was doing
persistent connection on and it works perfectly
ive seen it before, try searching those logs for firebase...maybe it was added to some list somehow?
persistent connection would drain battery so def want to unblock that 🙂
hmmm well as you said apparently apple uses apples push notification service outside of firebase.
ok well i can figure out what it's trying to connect to and add the specific domain or IP(s) to the whitelist
i didnt know it was trying to effect notifications by going outside the local network but i guess that makes sense for devices that are roaming
thank you very much for your help, i've been working on this for hours and you cracked it in no time.
https://mobile-apps.home-assistant.io/api/sendPush/android/v1 might be that one actually
well i'll check right now
that's the correct domain. whitelisted mobile-apps.home-assistant.io, disabled persistent connection, disconnected from the network (back to cellular) and the notification still arrived on my phone
thanks very much, i was never going to figure that out!