Morning peeps, I have BlueIris setup to fire an alert webhook to HA (used as a trigger) with some Json data.
Ii have blue Irish working using platerecognizer (PR) and in my PR dashboard i see a valid image with a recognised plate.
The thing I'm struggling with is the automation in HA when the webhook is sent to trigger my automation.
So things my setup.
BlueIris -> motion from.zone A to B -> setup with PR and alert webhook -> homeassistanturl/api/webhook/blueirisplate (with json payload "&PLATE"
HA -> automation trigger using webhook with ID blueirisplate
I'm then using a template to check the plate against 2 values. If true then send noti based on the value recognised
When I manually trigger in HA it works and I get a noti. But when BlueIris is triggered with a vehicle, I don't get anything?
This is my automation when non of the two plates are recognised
=====
alias: AI - Drive Blue Iris NOT RECOGNISED
description: ""
triggers:
- allowed_methods:
- POST
- PUT
- GET
- HEAD
local_only: false
webhook_id: blueiris_plate_trigger
trigger: webhook
conditions:
- alias: Not recognised plate
condition: template
value_template: |
{{ trigger.json['&PLATE'] not in ['S15MFY', 'WG15LLX'] }}
actions: - data:
title: Unknown Plate Detected
message: |
{% if trigger.payload_json is defined %}
Unrecognized plate: {{ trigger.payload_json['plate'] }}
{% else %}
Unrecognized plate detected, but plate number was unavailable.
{% endif %}
action: notify.mobile_app_Scottsphome
alias: Send Noti Unrecognised car
mode: single
=======