Ariela - Home Assistant Android Client

Ionut, do you mind a quick run down about device trackers?

exactly what is the purpose of the “device tracker - see” and how/why would we want to use it instead of/in addition to mobile app device tracker?

i also see a “device tracker - myphonename” entity registered with HA. which also provides location tracking, how is this different from the “mobile app” tracker?

i currently have “device tracker” setting enabled and both “-mobile app” and “-see” disabled. tracking mode is set to “wifi”. i do get stat changes when i enter/leave home wifi which is exactly what i wanted but i’m little concerned about the “update period” and “update position” settings. the main reason i did not enable full gps track is to conserve battery. with only “wifi” location tracking enabled does the phone still need to wake itself up periodically according to those “period and position update” settings?

yes, just put force_image true in data and should work.
eg:

{
"message " : “message”,
“title”:“title”,
“data”: {
“url” :“your_image_url”,
“force_image” : true
}
}

Yes, it should give same experience like the browser. Btw, in chrome on mobile do you have same issue?

The device_tracker see is the compatibility mode, meaning that who do not have mobile_app or latest HA version can use that tracking function.

The device_tracker entity registered via mobile_app is also registered to a device, where the normal (see) one is not.

Well in both cases Ariela wake up in order to send updates. You can only use just mobile_app since this can update if you have GPS tracking even if you have Ariela closed. On Wifi tracking those period & position updates do not have any impact.

thanks Ionut! i try it now.

sorry, it doesnt work, blank as no image attached… :frowning:

Did you update to the latest version? Also can you share your json send ?

yes, update, reboot mobile phone,

here is the json sent :

- id: '1560281182424'
  alias: Automatisation detecteur garage
  trigger:
  - entity_id: binary_sensor.garage_pir_sensor
    from: 'off'
    platform: state
    to: 'on'
  condition:
  - condition: state
    entity_id: device_tracker.galaxy_note8
    state: not_home
  action:
  - data:
      entity_id: camera.garage
      filename: /config/www/cam_captures/garage_{{ now ().year }}_{{ now ().month
        }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg
    service: camera.snapshot
  - delay: 00:00:05
  - data:
      data:
        image: https://xxxxxx.duckdns.org/config/www/cam_captures/garage_{{ now ().year
          }}_{{ now ().month }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute
          }}.jpg
        force_image: true
      message: Détection de mouvement Garage
      title: Alerte Garage
    service: notify.mobile_app_galaxy_note8

Thanks!

I’ll buy a cup of coffee when it will work! :wink:

yes. the “full screen” button works correctly via mobile chrome browser. it’s only greyed out inside of Ariela. that’s why i thought it might be a bug in Ariela.

okay. maybe i need to clear out entities created by older version of the app. i have not done so for fear of creating duplicate device entries.

that’s great to know. perhaps it would make sense to have “WIFI only tracking” as a separate switch from GPS tracking so it would be clear for people who are only interested in presence detection rather than full time gps tracking? as nice as it may be, active GPS tracking is such a battery hog…

for more detailed tracking google maps locations module would be a much better option, as it is on full time for most people already anyway… if only i could get that module to work…

Let me see what i can do about this :smiley:

Is this image available to download for example from chrome on the phone? If it is please send me Ariela logs and i will check.

1 Like

you are right, i have a blank screen, i use firefox, it opens my HA front end (just a blue banner up) and a blank screen down…

Is there something i am missing?

Thanks

is there really a space in between now and ()? check your logs to make sure that url is constructed correctly?

hello Hassmon,

nothing in the log…

but when i paste the url above, firefox modify like that :

https://xxxxx.duckdns.org/config/www/cam_captures/garage_%7B%7B now ().year %7D%7D%7B%7B now ().month %7D%7D%7B%7B now ().day %7D%7D%7B%7B now ().hour %7D%7D%7B%7B now ().minute %7D%7D.jpg

not sure if its good or not…

For the space, i just copy this code from an exemple and what i am sur is that i work great for my snaptshot, because the name of the file is like that in my folder : garage_2019_6_19_22_02.jpg

Nope, its not good.
What i can see is a space in ```
now ()

I think it should be without.

i’d say that url does not look right. i think what you are looking for are files with actual dates in the file names. you are making a function call with “now” to construction that date, if so there shouldn’t be a space in between now and ().

not sure how those screen shots actually end up in your www folder. i would look in there first to get a file that actually exists, hard code that file name in your automation to make sure the notification actually works. then try to work on dynamically generate a name with timestamps.

thanks Hassmon and Ionut, i am on it! :smile:

when i put a simple image that exist, with a simple name :

https://xxxx.duckdns.org/config/www/cam_captures/garage1.jpg

it display a blank screen just with the blue banner up of hassio.

Same on mobile or local browser.

It seems to be a access problem of the folder and image…

An idea? i am a neebie and dont know what to do…

i have seen an exemple from Dr ZZS and he make a simple "push :

- service: notify.ios_janis7
      data: 
        title: Mommy Alert
        message: Who is out of Bed?
        data:
          attachment:
            content-type: jpeg
          push:
            category: camera
entity_id: camera.ttgocam_camera

but i dont think i can use the same way with notify.mobile_app?

found it!!!

i have to reach :slight_smile:

https://xxxx.duckdns.org/local/garage1.jpg 

by put the image in www directly…lol

config/ is not accessible without a special permission i think

we probably shouldn’t keep going off topic… this is Ariela thread after all. :wink: feel free to PM me if you have more question about this i just went through setting up something similar so can probably walk you through it.

it is an Ariela function…so its have a place here no?

@Ionut will decide :slight_smile:

IT WORKS!!! : data: must be data_template:

thanks to @finity ! :slight_smile:

https://community.home-assistant.io/t/ip-camera-snapshot-automation/41319/33

@Ionut , give me your paypal please for a barrel of coffee ! :wink:

thanks for your help

1 Like

@Ionut
I am still having issues with notifications using the mobile_app instead of fcm-android.

I have done as you suggested and removed all mobile devices from integration, restarted, confirmed everything was clear (even in core. files). Then re-added one mobile device. I still am getting the same error.

I created a github issue on the HA repo, but it has been 4 days without any reply.
I also got on the HA Discord, and they suggest that it needs to be investigated on Ariela side as no other mobile apps have the issue (and apparently no other Ariela users either).

Here is the github issue with relavent details:

Please let me know how to proceed. I would like to use the mobile_app integration, but at this point I might have to fall back on the fcm-android as I can’t seem to get this working.

Also, if you would like me to move this to the notification post you created I can… I just saw it was for firebase, and so didn’t know if you wanted the mobile_app there as well.

I am digging through the Home Assistant log for anything relavent… I did find this, not sure if it means anything but the third line mismatches it with emulated roku:

Thanks!
DeadEnd

Pretty sure the problem here is the Firebase function that receives the notification payload from HA isn’t returning a response with the expected content type (application/json).