Hi, I have a webhook setup for LPR details. The webhook is received however I’m unable to correctly parse the details.
I’d like a sensor to display LPR value and also have automation to send that value, neither are working.
Sensor is showing as unavailable and no attributes.
template:
- trigger:
- trigger: webhook
webhook_id: "privatewebhook"
sensor:
- name: "LPR Rear Sensor"
unique_id: a1ed137d-er35-4c3c-8e6f-9c125b6af3c
state: "{{ trigger.json.alarm.triggers.value }}"
attributes:
device_id: "{{ trigger.json.alarm.triggers.device }}"
event_type: "{{ trigger.json.alarm.triggers.key }}"
LP_Number: "{{ trigger.json.alarm.triggers.value }}"
Automation Action
data:
title: LPR
message: LPR Number {{ trigger.json.alarm.triggers.value }}
action: notify.admin
Webhook Data
json:
alarm:
name: LPR Webhook test
sources:
- device: ##
type: include
conditions:
- condition:
type: is
source: license_plate_of_interest
- condition:
type: is
source: license_plate_unknown
- condition:
type: is
source: license_plate_known
triggers:
- device: ##
value: ADA0MEG
key: license_plate_unknown
eventId: 677d91c80387bfA3e400b099
timestamp: 1736282570549
Any help please?