Ariela - Home Assistant Android Client

Ionut, please discard the logs I’ve sent. I still had the mobile populated in known_devices. I’ve reconfigured everything and location is updated now via mobile app only. I will come back with feedback on battery consumption, it is still higher than before.

1 Like

Hello,

i just desactivate the tracking with ariela and use now the “ping platform”, just work as expected : connected to my Wifi -->“home”, not connected -->“away”.

Very basic, but i dont want to my phone battery go down very kick…the last day i use device_tracker i have not enough for a day…lol

Thanks

1 Like

notify.mobile_my phone is now working for me. I deleted my automation file and recreated it with the built in automation creator. Apparently there is a change from what was posted in the docs and what is now required.
A piece of the old…

  - alias: 'Leave Gym notification'
    trigger:
      platform: zone
      event: leave
      zone: zone.gym
      entity_id: device_tracker.bill_pixel_xl
    action:
      service: notify.mobile_app_pixel_xl
      data:
        message: 'Bill has left the gym'

And now the new

  alias: leave gym
  trigger:
  - entity_id: device_tracker.bill_pixel_xl
    event: enter
    platform: zone
    zone: zone.gym
  condition: []
  action:
  - data:
      message: Bill is leaving the gym
    service: notify.mobile_app_bill_pixel_xl
- id: '1561317603020'

A - id: was added, no documentation from where or how and “data” format is now - data:.
Hope this helps others as it was a struggle for me.
Also still some bugs in the automation file editor. Sometimes it can’t find the automations it created. A reboot of HAssio fixes this.

ID has always been there when using the frontend Editor. If you wanted yaml automations to show up in the editor you had to give each one a unique ID

Hi, I’m new to Ariela and so far loving it. Been playing around with actionable notifications but I can’t get the syntax right for multiple actions through the services menu (testing before I create automations).

This works:

  "message": "Test",
  "data": {
    "actions": [
      {
        "action": "open_door",
        "title": "Open door"
      }
    ]
  }
}

but when I try this I still only get one action, the “close door”

  "message": "Test",
  "data": {
    "actions": [
      {
        "action": "open_door",
        "title": "Open door",
        "action": "open_door",
        "title": "Close door"
      }
    ]
  }
}

I’m missing brackets or a comma somewhere but I cant figure out where! Anyone help?
Cheers

From the top of my head, try wrapping the action and title pieces in their own separate curly braces. I.e. one more level down, so you have real list of action objects containing the action and its title

Something like this perhaps?

"actions": [
      {
         {
              "action": "open_door",
              "title": "Open door",
         },
        {
              "action": "open_door",
              "title": "Close door"
        }
      }

I think I tried that variation but tried again and unfortunately invalid Json. Thanks for the quick reply though!

“actions”: [
{
“action”: “open_door”,
“title”: “Open door”,
},
{
“action”: “open_door”,
“title”: “Close door”
}
]

Try like this :slight_smile:

Thanks Ionut but I think that’s the same as what Skye suggested. Same invalid Json result! If it’s meant to be different I can’t pick where :blush:

It’s invalid JSON because of a extra comma after "Open door".

Easiest way I know of for anyone to find a JSON error is pasting it into JSONLint (I’ve been working with JSON for so long now that I can usually spot errors like this one by sight heh).

Fixed:

{
  "actions": [
    {
      "action": "open_door",
      "title": "Open door"
    },
    {
      "action": "open_door",
      "title": "Close door"
    }
  ]
}
1 Like

You da man! Cheers Robbie that did it, and thanks for the tip on JSONLint

1 Like

Thanks. So the fix is the - data. I know I have seen other examples without it?

Don’t know why that made difference in your case (and not sure that is the reason)
As I said, it worked for me without “-”

For me this part seems more important than “-”
Try moving “-” but leaving condition. Or try your first automation with added “-” (and if that doesn’t work try adding condition and removing dash, and so on) to really see what is the reason

I tried manually editing and without the unique id the whole file was no longer able to be edited inside the program. I’m surprised that the condition is the problem. If I get a chance I’ll edit the existing file for two of my automations and try making 1 change on each and see what happens.

no.

the only thing the - does is denote that it is a list of entries. It could be - service, or any other action: parameter. It is merely a delimiter for the list.

Hi, @lonut

After update to I think 1.3.4.2 version, I have huge battery drain. Update to the 1.3.4.3 - the same. On older versions all was fine. Send you logs. Thanks!

I am seeing the same big battery drain issue. I will try on my log file and send it later.

I’m also experiencing a huge battery drain on my galaxy s10 with 1.3.4.3. My phone says it only used it active and nothing in the background…

Does the notification show?
Also, can you tell me what sensors are you using?

Yes the notification shows and I use mqtt sensors and device tracker (not by mobile app)