Notify_event Integration

I have created a custom_component that creates notify services that simply trigger events. This fixes a small gripe that I had when I couldn’t make my own notify services.

Here is an example use case for making the html5 notify integration behave like the mobile app notify target.

notify:
 - platform: notify_event
   name: html5_joseph_s_laptop_proxied

Automation:

alias: HTML5 notification proxy
description: ""
trigger:
  - platform: event
    event_type: notify.html5_joseph_s_laptop_proxied
    event_data: {}
condition: []
action:
  - if:
      - condition: template
        value_template: "{{ trigger.event.data.message == \"clear_notification\" }}"
    then:
      - service: html5.dismiss
        metadata: {}
        data:
          target: joseph_s_laptop
          data:
            tag: "{{ trigger.event.data.tag }}"
    else:
      - service: notify.html5_joseph_s_laptop
        data: "{{ trigger.event.data }}"
mode: single

See GitHub - JosephAbbey/ha_notify_event: This integration will create notify services that just create events, this allows the creation of custom notify services through automations. for installation instructions.