LOGBOOK_ENTRY not working?

Anyone know why this automation runs but never logs to the logbook?

# SCRIPT
#----------------------------------------------------------------
script:
  log_motion_camera:
    alias: Log Motion Camera
    sequence:
      - event: LOGBOOK_ENTRY
        event_data:
          name: "{{ name }}"
          message: "{{ message }}"
          #entity_id: "{{ entity_id }}"
          #domain: camera

# AUTOMATION
#----------------------------------------------------------------
automation:
  - alias: 'Motion Indoor Camera Detected'
    trigger:
      - platform: state
        entity_id:
          - sensor.motion_indoor_camera_living_room
          - sensor.motion_indoor_camera_playroom
          - sensor.motion_indoor_camera_garage
          - sensor.motion_indoor_camera_theater
          - sensor.motion_indoor_camera_sunroom
          - sensor.motion_indoor_camera_etc_room
          - sensor.motion_indoor_camera_kitchen
        to: 'On'
    action:
      service: script.turn_on
      entity_id: script.log_motion_camera
      data:
        variables:
          #name: "{{ trigger.entity_id.split('.')[1].replace('motion_indoor_camera_', '').replace('_', ' ').title() }}"
          name: "{{ trigger.entity_id.attributes.friendly_name }}"
          message: 'motion detected'
          #entity_id: "{{ trigger.entity_id }}"
Summary

This text will be hidden

Got it working:

automation:
  - alias: 'Motion Indoor Camera Detected'
    trigger:
      - platform: state
        entity_id:
          - sensor.motion_indoor_camera_living_room
          - sensor.motion_indoor_camera_playroom
        to: 'On'
    action:
      - service: logbook.log
        data_template:
          name: >-
            {{ trigger.to_state.attributes.friendly_name }}
          message: "motion detected"

Has anybody managed to get the ‘entity_id’ and ‘domain’ attributes working for custom logbook entries?
If I try to use them (one or both, fixed value or template) no log entry is written at all…

Have you tried using trigger.event.entity_id instead of just entity_id?