I done as you write in first post but i still dont have a state like notify.xxxxxxx
Location from my Huawei P20 is available byt no notification…
EDIT
Sorry works ok. I found. It is in services…
I done as you write in first post but i still dont have a state like notify.xxxxxxx
Location from my Huawei P20 is available byt no notification…
EDIT
Sorry works ok. I found. It is in services…
I use Alexa_Media_Player which uses the notify domain. When I (node red) choose the notify domain my mobile device is not available, only my alexa devices. Am I using the right domain, and if so what can I do to expose my mobile device? If I enter the device service manually it errors.
First observation, I have disabled battery optimalization , so this morning, when doorbell rang, the message came in, when my phone was in deep sleep… So that’s good…
But only 3 minutes later… So there is a delay though…
I am also using pushover for a notify system, those are always instant… There is a priority setting there… Is such thing also coming?
hey, here is my automation as requested:
- alias: 'Deurbell webhook SS'
trigger:
- platform: webhook
webhook_id: deurbel
condition:
- condition: template
value_template: >
{% set last = as_timestamp(state_attr('automation.deurbell_webhook_ss', 'last_triggered')) %}
{{ last is none or as_timestamp(now()) - last > 30 }}
action:
- service: camera.snapshot
data_template:
entity_id: camera.deurbel
filename: !secret snapshot_deurbel
- service: !secret nofity_ha_fabio
data_template:
{"message": "Er staat iemand aan de deur!","title": "Deurbel","data": {"android": {"notification": {"image": !secret snapshot_buiten_deurbel_webhook}}}}
That’s all I did and mine work (it doesn’t auto complete, you have to type it, not sure why…)
It wouldn’t work until notify.mobile_app_pixel_3 appeared in my service list though. I kept rebooting Hass.io and clearing data/cache on the app until it finally appeared.
Hello there,
just started using push notification on Android, and it’s working pretty well.
However, if I use two same Android device (For instance a Oneplus 6), onle one of them get added as ‘notify.mobile_app_oneplus_a6003’ and I get a warning in the console with:
WARNING (MainThread) [homeassistant.components.mobile_app.notify] Found duplicate device name ONEPLUS A6003
The issue can be fixed if the Android up let us choose the Device name (id) like the iOS counterpart does.
EDIT: It seems they’re already working on it
Temporary fix:
I’ve been pushing a test message every 15min for the past few days and noticed a drop out between 4:45am - 9:00am with no notifications being pushed to the device. Has anyone else noticed this? Maybe just me. Device is a Pixel 3.
I have the same setup, but I am getting the error “Call-service API error. Error Message: extra keys not allowed @ data[‘0’]”
That sounds like it may be your JSON that you are sending.
Try pasting it in here for people to check.
Mine for example is:
{"title":"Home Assistant", "message":"The house is empty, but lights were left on, Don't worry, I turned them off for you."}
As long as it’s that format it “should” just work.
You were correct sir, it was a formatting issue!
Is there an easy way to notify all mobile apps instead of having to specify each one?
Thank you!
Would love to see notification types/priorities implemented. This way I can have high-priority-types (e.g. alerts/alarms) override Do Not Disturb mode.
There seem to be two notification-channels defined in Android for the app.
Is there a way to specify a channel when you call the notification service? If not it would be great for the reasons the previous poster mentions.
Are using a timestamp on your snapshot filename? (I can’t tell since it’s in your secrets file) I’ve just trying to work out the cache issue thing completely Is that the code you gave in your other post?
'https:/xxx.nabu.casa/local/images/snapshot_deurbel.jpg?{{ states.automation.your_automation_name.last_triggered }}'
Is there an easy way to notify all mobile apps instead of having to specify each one?
Hi, no timestamp in my jpg file , but i make the URL unique, thats enough for the app to load a non cachec image , its unique because of this string,behind it : ?{{ states.automation.your_automation_name.last_triggered }}
or you can make a counter like .jpg?1 ,.jpg?2, .jpg?3 , …
I can’t seem to get this to work and I have a feeling that I’m missing something obvious. Any thoughts?
This is what I get in my notification shade:
What is the data that you are sending to it?
Make sure the image is actually publicly accessible.
I copied your exact code. I also changed the image url to a random one from google but the image never appears in the notification.