Pushbullet sending file issue?

Hi,

When I try to send a picture (file.jpg) to pushbullet I get the following error:

Invalid service data for notify.pushbullet: extra keys not allowed @ data[‘file’]

I have searched the forums and the only hit is this:

But this issue seems different. Here is my conf.yaml entry:

  - alias: Create doorbell picture
    initial_state: True
    hide_entity: True
    trigger:
      platform: state
      entity_id: binary_sensor.door_bell
      to: 'on'
    action:
      - service: camera.snapshot
        data:
          entity_id: camera.front_door
          filename: '/tmp/doorbellpic.jpg'
      - service: notify.pushbullet
        data:
          message: "The door bell has been pushed"
          title: "Home Alert"
          file: /tmp/doorbellpic.jpg

Running latest version of HA. The file is being created OK.

John

According to the docs, I think it needs to be:

      - service: notify.pushbullet
        data:
          message: "The door bell has been pushed"
          title: "Home Alert"
          data:
            file: /tmp/doorbellpic.jpg

Excellent - that worked.

Thanks so much for your help.

John

1 Like