Notification Actions
Learn how to set up custom notification actions for LLM Vision notifications.
Since version 1.8.0 the LLM Vision blueprint supports custom notification_actions. These show up as buttons below the notification and allow you to quickly trigger relevant actions.
Listening for Actions
Adding the actions simply creates an event, which can be used as triggers for another automation. It is recommended that you create a separate automation, which listens for these events and performs the actions. Use the automation below as a starting point:
alias: Listen for LLM Vision notification actions
mode: parallel
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: LLMVISION_DISARM_ALARM
id: disarm
- platform: event
event_type: mobile_app_notification_action
event_data:
action: LLMVISION_ON_WAY
id: on_way
action:
- choose:
- conditions: "{{ trigger.id == 'disarm' }}"
sequence:
- action: alarm_control_panel.alarm_disarm
target:
entity_id: alarm_control_panel.home
- conditions: "{{ trigger.id == 'on_way' }}"
sequence:
- action: script.notify_on_our_wayLast updated