Android Companion 2022.2: Local Push Notifications!

try removing everything after the ? in the URL, android may not like that

You may also see a failure for that in the Companion App > Logs screen too.

1 Like

Damn! The “?” is causing the image not to be included… That simple, yet so troublesome …
Thanks for the info/help!

1 Like

Another option is to snap an image into a local file and then use that.

service: camera.snapshot
target:
  entity_id:
    - camera.front_doorbell_main
data:
  filename: /local/last-doorbell.JPG
service: notify.phone_notifications
data:
  title: Doorbell Ring
  message: Someones at the door.
  data:
    image: https://host:port/local/last-doorbell.JPG
    tag: Doorbell-general
    group: Doorbell
    timeout: 180
    channel: Doorbell
    ttl: 0
    priority: high
    actions:
      - action: URI
        title: Open Cameras
        uri: /my-home/cams
3 Likes

That’s one way to do it. But it works as long you dont have a “?” in the url… :slight_smile:

Allright, trying to open the Frigate media browser in a uri.
Is this possible?
I’m able to open media-browser, but HA complains that Frigate is not a valid media player…

      - action: URI
        title: "Open Events"
        uri: "/media-browser/frigate/clips/today/"

I’ve run a bare android on a pixel from 100% charge to 0 a few times with and without websockets on and I haven’t seen much of a difference in battery times. With and without i’ve gotten the same +/-. Just though i’d share. This isn’t to say there isn’t a difference in battery use but it isn’t causing wakelocks. It does show in battery stats as using much more % of time but I attribute that to simply running in a notification which adds time to the foreground app. If anything battery use, so far, seems negligible.

2 Likes

Why cant I send images from frigate via snapshot url?
But it works from /local/path …
Any clue?

Below does not work. No image is included.

service: notify.mobile_app_sm_n975f
data: 
  message: "Test {{ states('sensor.time') }}"
  data: 
    image: http://192.168.1.242:5000/api/events/1645034792.861152-yz4huv/snapshot.jpg

I’m using Frigate behind a password protected (ngnix) proxy. It seems that notify is not allowed to reach the https://frigate.proxy.com without a password. Is it possible to append a user and pass to the image url?

Okey… Managed to send images through the notify service.
Used the nabu casa url and frigate snapshots works like a charm… :slight_smile:

Question, or a idea…
As I started to use Local PUSH a “LOT!” since the new version, it’s getting hard to have an overview of all the received notifications.

I’m using Frigate and a couple of RSS feeds and push them to the app. Would it bee possible to have like a notifications overview sidebar inside the app? Something like PushOver or Telegram styled where the received notifications can be sorted per channel?

Below is a snap from Pushover:

Configuration > Companion App > Notification History

you can also perform a search or filter up to the last 100 notifications

Yepp, i know this, but this is not good enough :slight_smile: The ability to se all of the notifications with revcied images etc are a lot more nice to see. :slight_smile:
This is HA app…
image
And this is Telegram:

feel free to submit feature requests on github :slight_smile: make sure to not combine multiple requests into the same request please

2 Likes

Unfortunately I can neither remind nor check that, I’m sorry.

Thx, I know that Troubleshooting | Home Assistant Companion Docs section very well :wink:

A shorter path worked too:

  1. Log out of the app
  2. Log in again
  3. Use same device name
  4. Ignore “Firebase warning” message (I have the full version of the app installed)
  5. Show all sensors, filter for “only active”
  6. Tap every sensor once to trigger transmission to HA
  7. Optional: rename entity names in HA

The service notify.mobile_app_my_device_name has been created. Tested and: phenomenal, it’s working! On a Fire OS device, great. Awesome, really. Finally :smiley: Thank you so much.

The one who chose Local Push Always, what is the battery consumption?

Personally I did not have to change my charging habits. Others also have a similar experience, yours may be different. Its all about the device and battery.

Haven’t seen any difference. Same battery life on a Samsung Note 10+ …

1 Like

Pixel 6 here, and had to turn it off, doubled my battery drain, was seeing battery down to 40% on a 12 hour day. Normally it wouldn’t break 60%. HA was at the top of the list for battery drain, and it was something like 32%.

Same experience S10 5G

Strange thing happend… :slightly_smiling_face:
Since core-2022.3.0 no LOCAL notifications are sent to my device…
Anyone else with same experience?

any errors in HA core or the app logs?