Ariela - Home Assistant Android Client

I am using Android 10 and it seems that the app can only obtain the location when the app is open. I am only given the option of “Allow only while using the app” or “Deny”. I am pretty sure that at some point, I also had the third option of “Allow all the time”.

This limitation is making the device tracker capability useless for me. I shouldn’t have to have the application on the foreground in order to determine if I am home or not.

Is there some setting that I can configured or was this done on purpose?

This is referring as permission approval. This is something Android native and its required to be shown in order to give Ariela location permission.

You will need to give Ariela permission to run in background. If this setting is not set, then Ariela will simply close and will not send / receive any updates to HA.

If Ariela will be allowed to run in background then device tracker & other sensors will be updated.
You can find this setting in Ariela → Settings → Common → Allow background running.

Please let me know if works.

My wife and son’s Pixels both updated to Android 10 and I am having serious issues getting either of them to maintain any kind of device tracking, no matter the app used.

I do have the permission to run it in the background. It does not seem to work. I sat yesterday outside my house testing to see if the location would change from my work. The location didn’t change until I opened the app.

As I mentioned I am pretty sure Android at some point let me set to use the location at all times in a previous version. When this was available, I didn’t have problems with the device tracker.

Please send me the logs so i can check it out. Also, please check in Settings -> Apps -> Ariela -> battery (or something) if the app its allowed to run in background there too.

The battery configuration was set to optimizing. I will test this out and provide the logs.

1 Like

Ionut, first let me say thank you for created such an amazing app! This is everything I’ve wanted in a mobile app for HA :slight_smile:

I am having the same issue as gureyes. I cannot set location to “allow always” and the toggle for running as a background app does not do anything. I cannot find the debug log file but I am sending an email with screenshots of my settings and will follow up with a log file if/when I find it.

Thanks for all your hard work!

Thank you very much for kind words, i am glad to hear that.
Also, for everybody that has issues:

  1. Check that Ariela permission for location -> Settings -> Apps -> Ariela app permissions

  2. Go to Settings -> Apps -> Ariela -> Battery and allow background activity

  3. Open Ariela -> Settings -> Notifications -> Permanent notification (enable)

  4. Open Ariela -> Settings -> Common -> Allow background running

  5. If this do not work, send me Ariela logs so i can check it out :smiley:


1 Like

I changed the battery option to not optimize. I also have all the settings set except the permanent notification. With all these set my location does not update until I open the app.

Just to be clear, I previously had device tracking working until maybe a week ago.

BTW, I just emailed the logs you provided

I have set wifi zones in device tracking settings, but it seems that Ariela app cant pick SSID name and cant define the zone where am i. Wifi name is simple and it doesn’t have any special characters.
Anyone know how to fix this issue?

Usually i charge my phone every day when i go to bed. When i enable background running i have to charge my phone TWICE a day and even GPS setting is off. I have around 5 sensors set up using mobile app settings, not mqtt and device tracking, which i was hoping to rely on WIFI zones.
PS: Phone is Samsung galaxy S8

EDIT: Apparently when i enable phone GPS settings it picks up the wifi name correctly but not every time. This is very strange feature i personally don’t like how it is working. It makes pointless to have wifi zones set up in device tracking settings if i have GPS enabled.

I suppose you have Android O or later. If so, you will need to give Ariela location permission from Settings → Apps → Ariela → Permissions.
Please let me know if works.


Android version is 9

Its not that the case, please see edit/ update of my previous post, it is related to gps settings

That is very strange. Please restart Ariela and enable debug mode and send me the logs so i can check it out.

Hi Guys, @Ionut congratulations for yout great job, i bought another app to my daughter.
But now i have a doubt… On my home assistant i defined a zone…
escola

- name: escola
  latitude: !secret latitude_escola
  longitude: !secret longitude_escola
  radius: 20
  icon: mdi:school

But i dont know where i can adjust the values …
In App we have Accuracy and Distance between Locations

How can I avoid getting a fake warning that has left the zone if the child is playing near the school bars?
Yellow marks

1 Like

broaden your radius in HA.

The options in Ariela are for the GPS “tracking”, not for HA

1 Like

Hi,

A quick question regarding Notifications using the fcm-android component and Ariela.
At the moment I push notifications to my Android device every 30 second as long as my Motion Sensor is on. I Use DeepStack to process the pictture from my Cameras and that part works without a problem. I did also set a long delay, to make sure all the processing is done before sending the Notification with the Picture.

Quite often the picture i receive is the same, even though when I open the folder I see that there are different pictures for every 30 second.

Has anyone come across this (what info do you perhaps need to point me in the right direction)?

Ariela will show the image with the path provided. Its that path the same each time?

Yes it is the same path. This “deestack_latest_person.jpg” gets updated every 30 second, if there is a person detected of course. Otherwise the picture will remain the same. But I don’t trigger the notification unless a person is detected (exactly to prevent sending the same picture).

Condition before the Notification can be sent:

    - condition: numeric_state
      entity_id: image_processing.front_object
      above: 0

Notification:

    - service: notify.android
      data_template:
        message: >
          {% if (states.image_processing.front_person.attributes.total_matched_faces | int) > 0 %}
            Hey, {{ states.image_processing.front_person.attributes.matched_faces }} ! {{now().strftime("%H:%M:%S %d-%m-%Y")}}
          {% else %}
            Who is this!? {{now().strftime("%H:%M:%S %d-%m-%Y")}}
          {% endif %}
        data:
          image: https://xxxxxxxxxxxxxxxxxxxx/local/deepstack_person_images/front/deepstack_latest_person.jpg

Actually right now I also experienced that the Notifications came popping in, from the last 5 minutes all in a row. Perhaps that is caused because I use Nabu Casa to point at in my address (to get https)?

You may want to check if with pictures taken at the point of detection and having different name?

This mostly depends on how your phone is able to communicate with google firebase. For example: you can receive multiple notifications at the same time because at some point, your phone didn’t had internet connection (poor signal, android closing connection etc), and when the phone receive the internet connection again and is able to communicate with firebase, all the notifications are sent at once.

Hello,

Ariela version 1.3.6.8 is out.
What’s new:

  • Fixed device tracker issues with Android 10 devices
  • NEW: support for custom:vertical-stack-in-card
  • NEW: history-card Lovelace card support
  • NEW: xiaomi-vacuum custom card Lovelace support
  • NEW: added option to disable unsupported cards message
  • fixed climate view rendering issue when thermostat state is unknown
  • fixed climate advanced option crash
  • show history for entities with unit of measurement a, v, kWh
  • improved graph rendering details
  • updated Google libraries
  • other fixes