Esp32 Pushbullet notification

Hi,
I can’t seem to find my mistake…
Someone has an idea?

It reports this mistake:
Message malformed: expected dict for dictionary value @ data[‘action’][0][‘data’]

alias: Cam Picture Notification
trigger:
  - type: motion
    platform: device
    device_id: 27dfa756ffb3ddd2cb0c364ca32848e6
    entity_id: binary_sensor.presence_9
    domain: binary_sensor
action:
  - service: camera.snapshot
    data:
    entity_id: camera.espcam
    filename: '/config/www/images/frontdoor.jpg'
  - service: notify.sillytilly
    data:
      title: "Jemand zu Hause"
      message: "Gerade jemand nach Hause gekommen: {{now().strftime('%H:%M %d-%m-%Y')}}"
      data:
        file_url: >-
          '/config/www/images/frontdoor.jpg'
mode: single

good man for formating

Developer tools your friend

this is what I do when I have a brain fart idea and dont know how to do it.

call the service

flit it into YAML

now you can copy paste into automation

service: camera.snapshot
target:
  entity_id: camera.camera1
data:
  filename: /config/www/images/frontdoor.jpg

note: the differance indenting hint

now the hard bit wing this point on but should work

the notify

let do the same

YAML it

note the indenting clue
so as the service Tool does not do templating YET

so put old school hat on

let test it some where else in a automation

do a confiuration check first so we know we no errors

paste our new bit in a automation

do other config check

and it passes

so now let put it al together

  - service: camera.snapshot
    target:
      entity_id: camera.camera1
    data:
      filename: /config/www/images/frontdoor.jpg
  
  - service: notify.stephan_phone
    data_template:
      message: 'Gerade jemand nach Hause gekommen: {{now().strftime(''%H:%M %d-%m-%Y'')}}'
      title: Jemand zu Hause
      data: 
        file_url: '/config/www/images/frontdoor.jpg'

do the conf check again

so must work

and so other friend is the new trace

you can see what happening

1 Like