Send the image from BI to HA through MQTT.
That uses Node Red to decode the image. But, you can also just do this in mqtt.yaml
image:
- image_topic: BI/DWay/Alert-jpg
name: Driveway Alert JPG
unique_id: image.driveway_alert_jpg
image_encoding: b64
Then send image.driveway_alert_jpg to your notification.
You can take this further and setup another MQTT message with:
- MQTT Topic: BI/&CAM/Alert
- Payload: {“memo”:“&MEMO”,“link”:“&LAN/ui3.htm?rec=&ALERT_DB&maximize=1”}
Then another entry in mqtt.yaml like:
sensor:
- state_topic: BI/DWay/Alert
name: Driveway Alert
unique_id: sensor.driveway_alert
value_template: '{{ now() }}'
json_attributes_topic: BI/DWay/Alert
That sets up sensor.driveway_alert with the following attributes:
Memo-car:54%
Link-http://xxx.xxx.xxx.xxx:81/ui3.htm?rec=@160084463621714&maximize=1
The Memo attribute is what was detected and percent of confidence.
The Link attribute is an internal link to your BI server that will open ui3 at the point of the alert and play the video.
If you have BI available from outside and want to use that, then use &WAN in your MQTT payload.
There are no tokens that expire and as long as that ALERT_DB value is still in your BI database, the video will work.
I think I got everything here. If you have any issues, please let us know.