Unable to get notify to work

Hello

I am attempting to setup notifications. I have added Notify to my

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

tts:
  - platform: google_translate

http:
    base_url: https://#####.duckdns.org
    ssl_certificate: /ssl/fullchain.pem
    ssl_key: /ssl/privkey.pem

sun:

mobile_app:


group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor test: !include_dir_list ./sensors

homeassistant:
#  customize: !include customize.yaml
  customize: !include customize_glob.yaml
  

camera:
  - platform: ffmpeg
    name: Kitchen Camera
    input: rtsp://admin:[email protected]:554/H.264

device_tracker:
  - platform: linksys_smart
    host: 192.168.0.1
    
notify:
  - name: pushbullet_message
    platform: pushbullet
    api_key: !secret pushbullet_api_key
    
google:
  client_id: !secret catchall_client_id
  client_secret: !secret catchall_client_secret
  
spotify:
  client_id: !secret spotify_client_id
  client_secret: !secret spotify_client_secret"

When I used developer tools and try to send a test message I get the following error message

Failed to call service notify/notify. expected dict for dictionary value @ data['service_data']. Got 'Test Message'

Any ideas/advice on what I am doing wrong?

thanks

Looks like the problem is with the automation you didn’t share :wink:

1 Like

I set up a test automation just to see if it worked

- id: auto_sunrise_time
  alias: Sunrise
  description: ''
  trigger:
  - platform: sun
    event: sunrise
  condition: []
  action:
  - service: notify.pushbullet
    data:
      Message: 'Sun has risen'
  mode: single

but I also just simply tried using developer tools which I assumed allowed me to test the protocol before setting up automations.

Screenshot-HA

thanks

and now after numerous server restarts, it has kicked into life :slight_smile: no idea how or why, but it is working now.

When you tried to call it via the services tab of developers tools you didn’t format the service data correctly. You left out “message:” before your actual message.

1 Like

FYI, HA is case sensitive. Message is not message, and as finity said, you needed the same key in the services tool.

  action:
  - service: notify.pushbullet
    data:
      message: 'Sun has risen'

or in the Service Data block just:

message: 'Sun has risen'
1 Like

Thank you, I now see what I did wrong. All working. Very much appreciated.