HTML5 notifications with docker image

I’m trying to get HTML5 notifications working with HA in the homeassistant/raspberrypi3-homeassistant Docker image. I have the GCM app up, my domain is verified, but they still won’t work. I was able to enable notifications from Chrome on my phone, so it seems the configuration thinks it’s set up, but trying to trigger the automation to send the notification does nothing.

Configuration:

notify:
  - name: "HTML Push"
    platform: html5
    gcm_api_key: !secret gcm_key
    gcm_sender_id: !secret gcm_id

Relevant automation:

- id: basement_door_opened
  alias: "Basement door has been opened"
  trigger:
    - platform: state
      entity_id:
        - binary_sensor.basement_door
      to: 'on'
  action:
    - service: notify.html5
      data: 
        message: 'Door open'

I’m sure I’m missing something simple because I’m pretty new to the Hass life.

Any related messages in the log?

Unable to find service notify/html5

You’ve named it HTML Push so I’d expect you have to call service: notify.html_push.

You can check this by using the “services” option below “developer tools” in the ui and check what’s available in the drop down beginning with notify.

1 Like

you need to do a bit more. once activated the HA will create a file “html5_push_registrations.conf”
you need to go in there and name your devices.
So for instance you’ll get a block for unamed device 1. you need to send a test to that unamed device to find out which one it is (your mobile, computer, etc.)
Once you know then you go back into the conf file and you rename the unamed device with the respective device.
then it will appear as notify.html5_whaterever you called it.

Ah! That’s what I was missing. Thanks!