HASSIO - PushOver Notifications

Hi I’m mew with Home Assistant, I’m trying to configure a simple PushOver notification when the HASSIO Start, but it don’t works.
I have added in my configuration.yaml

automation: !include automations.yaml
# PushOver Configuration
notify:
  - name: pushover_hassio
    platform: pushover
    api_key: XXXXXXX
    user_key: XXXXXX

(with XXXXX replaiced with my informations)

and in the /config/automations.yaml files:

- alias: Startup Notification
  trigger:
    platform: event
    event_type: homeassistant_start
  action:
    service: notify.entity_id
    data:
      title: Home Assistant
      message: Hassio avviato correttamente
      target: ''
      url: https://www.home-assistant.io/
      sound: pianobar
      priority: 0

Can please someone help me?

I don’t know where you got the code from for that trigger but it’s from a version of homeassistant so old that Jesus was in primary school.

trigger:
  platform: homeassistant
  event: start 

Many thanks, I have found the settings in a guidance on web.
I have changed the starting trigger, but the Push notification doesn’t arrive.

I presume that you have an actual notification service in your action, rather than notify.entity_id ?

Any errors in the log when it runs?

Ok, i have change the configuration as follow:

# Notification at HUB Startup
- alias: 'Startup Notification'
  trigger:
    platform: homeassistant
    event: start 
  action:
    - service: notify.pushover_hassio
      data:
        title: 'Home Assistant'
        message: 'Hassio avviato correttamente'
        #target: ''
        #sound: pianobar
        priority: 0

In particular i have change the service: notify.pushover_hassio, because it is the name in configuration.yaml.

Executing the script it report the following error in LOG:


2020-06-08 18:42:30 ERROR (MainThread) [homeassistant.components.automation] Startup Notification: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data['priority']

I notice that the same error occurs for any “data” settings (priority, sound etc.)

Yeah, that’s a syntax issue that’s unique to notifications so don’t worry that you didn’t spot it. Lots of notification platforms have a data: section for extra options, but this is within the service data key. So it should be…

# Notification at HUB Startup
- alias: 'Startup Notification'
  trigger:
    platform: homeassistant
    event: start 
  action:
    - service: notify.pushover_hassio
      data:
        title: 'Home Assistant'
        message: 'Hassio avviato correttamente'
        data:
          target: YOUR_TARGET
          sound: pianobar
          priority: 0

Ok now works! many thanks!

1 Like