HTML5 missing image support

Please add image support to HTML5 component
I add “image” into line 97 and image are able to be added to notification

BEFORE

HTML5_SHOWNOTIFICATION_PARAMETERS = (
    'actions', 'badge', 'body', 'dir', 'icon', 'lang', 'renotify',
    'requireInteraction', 'tag', 'timestamp', 'vibrate')

AFTER

HTML5_SHOWNOTIFICATION_PARAMETERS = (
    'actions', 'badge', 'body', 'dir', 'icon', 'image', 'lang', 'renotify',
    'requireInteraction', 'tag', 'timestamp', 'vibrate')

Can you give an example of HA automation using notification with image?

- alias: 'Notify Gate Closed'
  trigger:
    - platform: state
      entity_id: binary_sensor.south_gate
      from: 'on'
      to: 'off'
  action:
    - service: notify.notify
      data:
        title: 'GATE'
        message: 'Closed'
        target: 
          - 'PHONE_MyPhone'
        data:
          tag: alert
          url: 'https://mysite.com/kiosk/group.garage' #onclick go to this site
          image: "https://My.HAServer.com/api/camera_proxy/camera.MyCamera?api_password=MyHAPassword"
          vibrate: #vibrate300,pause100,vibrate300
            - 300
            - 100
            - 300
          renotify: 0
1 Like

https://github.com/home-assistant/home-assistant/issues/9832

PR submitted for adding the image attribute:

https://github.com/home-assistant/home-assistant/pull/9835

1 Like