TS0601 Tuya movement sensor

What do I do wrong?

alias: Bijkeuken Play MP3 on Movement Detection
description: Bijkeuken Play MP3 on TS0601 media player if motion detected
trigger:

  • platform: state_changed
    entity_id: binary_sensor.radar1_bezetting_2
    to: ‘on’
    condition:
    action:
  • service: persistent_notification.create
    data:
    title: “Motion Detected!”
    message: “Movement in the bijkeuken.”
    mode: single
alias: Bijkeuken Play MP3 on Movement Detection
description: Bijkeuken Play MP3 on TS0601 media player if motion detected
trigger:
  - platform: state
    entity_id: binary_sensor.radar1_bezetting_2
    to: 'on'

condition: []

action:
  - service: persistent_notification.create
    data:
      title: "Motion Detected!"
      message: "Movement in the bijkeuken."

mode: single

state_changed >> state

Thanks for your answer,
but it’s not working.
this is the state_changed event data:

event_type: state_changed
data:
  entity_id: binary_sensor.radar1
  old_state:
    entity_id: binary_sensor.radar1
    state: "off"
    attributes:
      device_class: motion
      friendly_name: Radar1
    last_changed: "2025-06-15T10:56:24.677335+00:00"
    last_reported: "2025-06-15T10:56:24.677335+00:00"
    last_updated: "2025-06-15T10:56:24.677335+00:00"
    context:
      id: 01JXSKQFK58V6RS1C5CW1VBDBQ
      parent_id: null
      user_id: null
  new_state:
    entity_id: binary_sensor.radar1
    state: "on"
    attributes:
      device_class: motion
      friendly_name: Radar1
    last_changed: "2025-06-15T11:45:47.222479+00:00"
    last_reported: "2025-06-15T11:45:47.222479+00:00"
    last_updated: "2025-06-15T11:45:47.222479+00:00"
    context:
      id: 01JXSPHWPPE8C4VRKF0Q87J0V0
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2025-06-15T11:45:47.222479+00:00"
context:
  id: 01JXSPHWPPE8C4VRKF0Q87J0V0
  parent_id: null
  user_id: null

I also tried this code:

# # TS0601 by _TZE200_kb5noeto 
alias: Radar Motion Turns On Switch
trigger:
  - platform: state
    entity_id: binary_sensor.radar1
    #entity_id: binary_sensor.radar1_bezetting_2
    #from: 'off'
    to: 'on'

action:
  - service: switch.turn_on
    target:
      entity_id: switch.shelly_wave_plug_s
      device_id: a08c5be2958ae469a42054ca90268f5f
  - service: persistent_notification.create
    data:
      title: "Motion Detected!"
      message: "Movement in the bijkeuken."
mode: single

Don’t know why but suddenly this works.

- id: TEST_RADAR1_MOTION_trigger_001
  alias: "TEST_RADAR1_MOTION_TRIGGER"
  trigger:
    - platform: state
      entity_id: binary_sensor.radar1
      to: 'on'
  action:
    - service: persistent_notification.create
      data:
        message: "Radar1 detected motion!"
        title: "Motion Triggered"
  mode: single