Ariela - Home Assistant Android Client

You mean this?
http://ariela.surodev.com/2019/05/08/push-notifications-2/

No. The automation find my car allows you to track your car movements. This is about receiving notification on your smartphone.

Mobile_app sensors documentation is still under working. Hope to finish it soon

2 Likes

Hi Ionut,

I am still messing around with notifications. I have a OnePlus 5t running Android 9 and dont notice any difference between message_type when its data/or notifcation. Also, the notifications dont trigger my notification LED on the frot of my phone like other notifications - can we have support for this please?

EDIT: Also, whatapp displas a banner at the top of my phone while it is in active use when i recieve a notification - can this be added too?
Thanks

try check settings on your phone. LED and heads up display (pop up) can be customized via phone’s (per app) notification settings. exact details depending the rom you are running. a notification is just a notification. how it’s handled once it gets on the phone is normally not part of the app (Ariela) settings.

1 Like

Don’t have any andriod customisations that I can tinker with but did find the app specific page of whatapp that would be cool to have in Ariela

Ionut,

i have been missing a lot of notifications lately. seems like the notifications (both firebase and mobile_apps) are extremely unreliable unless the app is actively running (showing permanent notification). when it stops working i would not receive any notification from HA, not even short test messages sent via developer tools. things will start working again as soon as Ariela app is restarted.

I noticed there’s a new(er) setting “common->allow background running.” do we have to have that setting enabled in order to reliably receiver notifications?

any ideas how i can better debug this problem? randomly missing notifications is really a killer for day-to-day usage…

@hassmon Strange. I don’t have that setting enabled and I have been receiving them fine. I have noticed that if I have certain data options that conflict with each other then the notification doesn’t come through. Also, if I point a picture/icon to an internal http then there is a huge delay but if I use duckdns http it’s instant.

I’ve noticed that if my phone has not been used in some time (deep sleep?) notifications can take 10-15 minutes to arrive, or don’t arrive until I wake the screen.

yeah… all these things can be configured as long as the notifications support Notification Channels. how/if they can be customization depending on your ROM. app has the abilities to specify settings such as peeking/heads-up/sound/led but if they are disabled in rom they won’t work anyway.

i have no problem customize Ariela (or any app’s) notification with heads-up and led blinks. but ymmv depending on your phone/rom. for oneplus, you might be able to do some but maybe not everything: OnePlus Community

that could be some kind of battery saving feature kicking in on your phone.

in my case i would receive notification from other sources normally (email/text/camera motion notification) but nothing from HA. not even if i send test messages via developer tool on the phone itself with chrome browser connected to HA directly. the only way i could get HA notified again was to start Ariela app.

the annoying (and the worst) part is the problem is inconsistent. it would work fine for a while then just randomly stops working. the only way i would find out is when it was too late. :frowning:

hmm…
Just for reference, there are a few settings I have flagged you can check.

#1) Settings - Common - Start on boot (turned on)
#2) Settings - Common - Startup boot mode (I am using background service)
#3) Settings - Common - Start after update (turned on)
#4) Settings - Common - Allow background Running (turned on)
#5) Settings - Server Settings - Auto-reconnect (turn on)

Those appear to be all the relevant settings to keeping a connection to HA.
You can check each and see if by chance you have one of them turn off and maybe that could explain your lose of connection?

Something else you could try is to turn on the sensor for “Ariela Availability”. This would let you check HA to see if Ariela is failing to connect at times - could help with troubleshooting.

Cheers!
DeadEnd

yeah. the “allow background running” is the key question. i don’t want to keep a process running and draining battery all the time unless i have to. in theory notifications should come in even if the process is not running… unless it’s made to work otherwise, on purpose/by design.

for the same reason mqtt app availability sensor wasn’t helpful for me. as i go in/out cell coverage and switch to different wifi access points the app availability will change states. if the process isn’t running then obviously the app availability sensor would say it’s “offline.” but i expected notification to come in regardless.

If the messages arent marked as high priority for FCM they have to wait until the phone is next woken. This can lead to really large delays or lost messages. For that reason I would suggest turning off deep sleep completely. It was the only way I could guarantee I would receive messages.

This can be done with root access, ‘dumpsys deviceidle disable’. Need to apply as a script at every boot up.

Try this example please:

{
"message": "video streaming",
"title":"test",
"data": {
      "stream_source":"http://surodev.com/ariela/ariela-camera-streaming.mp4"
   }
}

This changes can be modified from Settings → Apps → Ariela → Notifications → Push Notifications.

Can you share a screenshot please?

Push notifications will be received even if Ariela is not currently running. But if you apply battery optimizations to the app, or for example your phone goes to sleep, its quite possible the notifications will be received next time you wake up the phone. This is something from the Android OS itself (expecially starting with Android O).

How do messaging apps and the phone app work with deep sleep? I guess when you have an incoming text or call, the phone wakes from deep sleep. Is this something only elevated apps can do or is this a setting in the Manifest?

So far I have rarely seen a notification coming late but now I’m curious :smiley:

Messaging and phone app works completely different and also those being system services. But other apps like Messenger , whatsapp could behave same like Ariela does.

1 Like

Hey,

New code worked thanks.

I dont seem to have the ability in my android setting. I have attached a screenshot of what I can do

Here is another screenshot of me using pushbullet to alert me when Hass shutdown/restarts. When using the phone the banner drops down from the top. This doesn’t happen with Ariela notifications.


This screenshot is the pushbullet setting I have - maybe important being the one that allows it to drop-down.

Ariela on my S9 does not report location anymore since few weeks, I think since See service has been introduced. But my wifes S8 works just fine. Our settings are identical and I tried to remove my S9 in known_devices, reset Ariela, allow location, starting over, etc. No chance.

Any ideas?

You need to also remove it from INTEGRATIONS