Files
ha-elegoo-spaghetti-detection/examples/notify_only.yaml
T
2026-05-03 23:47:54 +03:00

24 lines
655 B
YAML

alias: Elegoo Spaghetti - Notify Only
mode: single
triggers:
- trigger: event
event_type: elegoo_spaghetti_detection_detected
event_data:
detector: elegoo_spaghetti_detection
variables:
notify_service: notify.mobile_app_your_phone
actions:
- action: "{{ notify_service }}"
data:
title: "Possible print failure"
message: >
{{ trigger.event.data.name }} detected a possible spaghetti failure.
Confidence:
{{ (trigger.event.data.confidence | float(0) * 100) | round(1) }}%.
Detections: {{ trigger.event.data.detections }}.
data:
image: "{{ trigger.event.data.image_url }}"