@travislpriest sounds like you all got the “tag” thing figured out.
@Eddie1974 I do have some experience with Node Red (I did my own home automation with it before moving to Home Assistant) but unfortunately I have not played with NR and how it interacts with Home Assistant. That is on my to do list to play with that, but time is sparse right now. If you figure it out, report back to help others. Thanks.
@3oh6 The image needs to be a URL that you can access. I store my image into the config/www folder since it is accessible as local. See my example below:
send_image_notificaion:
sequence:
- service: camera.snapshot
data:
entity_id: camera.amcrest_camera
filename: /config/www/cam_captures/jakes_room_{{ now ().year }}_{{ now ().month }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg
- delay:
seconds: 5
- service: notify.android
data_template:
title: Camera Motion
message: Motion detected in Jake's room
data:
image: "https://yourhainstance:haport/local/cam_captures/jakes_room_{{ now ().year }}_{{ now ().month }}_{{ now ().day }}_{{ now ().hour }}_{{ now ().minute }}.jpg"
I’m getting the following error after restarting HA with the custom component file added and the config added into my configuration.yaml file. Any idea what’s going on here?
SyntaxError: invalid syntax
Fatal error while loading config: invalid syntax (fcm-android.py, line 7)
Failed config
General Errors:
- invalid syntax (fcm-android.py, line 7)
Successful config (partial)
That is part of a larger error, but seemed to be the core part of it.
This is my config just to be clear. I haven’t added it to any automations in yet.
notify:
- name: android
platform: fcm-android
I assume I missed something? Any help would be appreciated.
@coup Sounds like you cut and paste from the github file. Make sure you hit the “Raw” button first and then copy from there. You can go directly to it here:
Does anyone else have the issue of notifications taking ages to come through unless turning screen on? I have optimization turned off for this app on Samsung S8+ but it seems something is keeping it asleep.
love this addon, but getting anxious with home assistant dropping support for the way the custom component folder was organized previously.
i tried renaming the file to notify.py and putting in the folder fcm-android, However it isn’t working. I am not too keen on python to edit the file myself.
I’m having the same issue as @warcanoid , I can’t get the camera snapshot tagged in as an image. I can get the url to work in chrome, so it appears to be working.
I was also able to the camera snapshot working in the nfandroidtv platform, it has a slightly different setup for authentication tho:
{
“data”: {
“file”: {
“auth”: “digest”,
“password”: “yyyyyyy”,
“url”: “http://MYIP/Streaming/channels/1/picture”,
“username”: “xxxxx”
}
},
Is there a way to do something similar instead of the way @warcanoid was trying? Would prefer to avoid saving the snapshots locally if possible.
@warcanoid , so do you just overwrite the file everytime the automation is triggered?
I was hoping to get around saving files since ppl have needed to add in delays allowing enough time to save before sending. But if that’s the only option I can live with it.