Extra keys not allowed @ data['image']

Hello,

I’m getting an error and not really understanding why its happening (or how to fix it)… i’m not very good at writing code from scrach so i use a lot of the GUI interface to make these automations…

Error:
Stopped because an error was encountered at August 16, 2023 at 2:46:24 AM (runtime: 0.56 seconds)
extra keys not allowed @ data[‘image’]

[automation then stops running anything else]

From me trying to understand things - it looks like there is some sort of problem with the image being captured? but not really understanding why… any help would be very appreciative …


alias: Front House Lights On with Person Detection
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.front_person_detected
    to: "on"
condition:
  - condition: sun
    before: sunrise
    after: sunset
action:
  - service: light.turn_on
    data: {}
    target:
      entity_id: light.front_house_lights
  - service: camera.snapshot
    data:
      filename: /config/www/tmp/frontdoor-motion.jpg
    target:
      device_id:
        - c84e6f87759b6de8655a04e0bcf28783
        - 9307fefe218fb510f4ef58e739b85c62
  - service: notify.mobile_app_sm_g998w
    data:
      message: Person detected front of house
      title: House Front Lights On
      image: /config/www/tmp/frontdoor-motion.jpg
  - delay:
      hours: 0
      minutes: 1
      seconds: 0
      milliseconds: 0
  - service: light.turn_off
    data: {}
    target:
      entity_id: light.front_house_lights
mode: single

The notify service does not accept image: in data. You have…

the error is saying that image is not correct.

So you need to figure out how to actually put an image in your notification service.

Much appreciated.