The following code all works great, except for the “click_action:” I am receiving a 401 Unauthorized Error when clicking my notification. I am guessing the “click action” does not support tempting? How do I link to my camera when clicking the notification on an android device? The official posted instructions appeared to apply to IOS only.
- id: '1544020732242'
alias: Notify - Front Door Motion
trigger:
- entity_id: binary_sensor.front_door_motion
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_boolean.occupied_mode
state: 'off'
action:
- data:
entity_id: camera.front_door
filename: /config/www/tmp/snapshot.jpg
service: camera.snapshot
service: notify.mobile_app_moto_g_5_plus
data:
title: "Someone Is At The Front Door!"
message: "Someone Is At The Front Door!"
data:
image: https://***.***.***/local/tmp/snapshot.jpg?{{ now ().minute }}{{ now ().second }}
tag: tag
color: red
sticky: false
clickAction: https://***.***.***/api/camera_proxy_stream/camera.front_door?token={{states.camera.front_door.attributes.access_token}}
Any help is appreciated. Thank-you