RyanLehms
(Ryan Lehms)
August 1, 2017, 2:31am
1
- service: notify.html5
data:
message: "Front Door"
title: "Motion Detected"
data:
tag: 'front-door-motion'
url: "https://hass.instance:8123/api/camera_proxy_stream/camera.front_ptz?token="{{states.camera.front_ptz.attributes["access_token"]}}
As of right now, it takes it literally instead of as a template. My ultimate goal is to open my camera feed on my phone when the motion alarm is triggered.
This should already be possible as follows:
- service: notify.html5
data_template:
message: "Front Door"
title: "Motion Detected"
data:
tag: 'front-door-motion'
url: "https://hass.instance:8123/api/camera_proxy_stream/camera.front_ptz?token={{ states.camera.front_ptz.attributes['access_token'] }}"
So all I did was replace the first data:
with data_template:
, and I fixed some quotes.
RyanLehms
(Ryan Lehms)
August 17, 2017, 12:36am
3
Perfect! Appreciate the help.