I’m looking to use my logbook for just perimeter and security related events. I’ve built an automation that takes a camera snapshot when my doors are opened or shut and posts a hyperlink to the logbook:
but you can see markup is ignored in the logbook message. Is there a better alternative I’m not aware of? or any suggestions? or is this just a feature request?
My code for reference:
- alias: front door notification
trigger:
- platform: state
entity_id: binary_sensor.front_door
action:
- service: notify.ashburn
data_template:
message: "Front Door Opened"
data:
data:
tag: 'frontdoor'
url: https://xxx/states/group.doors
image: "https://xxx/api/camera_proxy/camera.front_door?api_password=xxx"
- service: camera.snapshot
data:
entity_id: camera.front_door
filename: "/config/www/cam_snapshots/front_door_{{ now().strftime('%d%m%Y_%H%M%S') }}.jpg"
- service: logbook.log
data_template:
name: "Front Door "
message: "<a href=\"https://xxx/local/cam_snapshots/front_door_{{ now().strftime('%d%m%Y_%H%M%S') }}.jpg\">snapshot</a>"
# entity_id: camera.front_door
# domain: camera