History of Notifications

I use the file notification for a history of persistent_notifications.

notify:
  - platform: file
    name: pn_log
    filename: pn.log

automation:
  - alias: persistent_notification_log
    trigger:
      - platform: event
        event_type: call_service
        event_data:
          domain: persistent_notification
          service: create
    # condition:
    #   - condition: template
    #     value_template: >
    #       {{ trigger.event.data.service_data.notification_id != "config_entry_discovery" }}
    action:
      - service: notify.pn_log
        data_template:
          message: >
            {{ now().strftime('%Y%m%d %H%M%S') }} 
            {{ trigger.event.data.service_data.title }} / 
            {{ trigger.event.data.service_data.message }}

pn.log

20200515 040103 TPAD OS Updates / There are 5/5 ubuntu updates available.
20200515 100510 New Home Assistant Release / Home Assistant 0.110.0b2 is now available.
20200515 123626 HA 0.110.0b2 started
20200515 200002 Nexus TH / Sensor Timeout
20200516 232925  Test notification /  Please check your configuration.yaml.

Until someone will integrate a history into HA. :crossed_fingers: