Looking to change Z2M device exposes during automation run

Hello Reader.

I am a new user and just yesterday installed zigbee2mqtt add-on to the home assistant.
I have paired indoor speaker from Neo model number NAS-AB02B2.

I would like to create an automation where the speaker plays a different melody and for a shorter duration than what is configured as default whenever a triggered is fired.

So far I created a HA automation using the visual editor, please see below the YAML code. The automation trace showed all actions triggered but there was no sound from the speaker.

Therefore, I need help to understand if this is achievable, if yes how. I will appreciate any help re: coding, logic etc…

alias: Notify-somone-at-the-door
description: Indoor Speaker plays Melody 12 between 7 am to 8 pm
trigger:
  - platform: state
    entity_id:
      - binary_sensor.cam_drive_way_cross_line_alarm
      - binary_sensor.cam_main_door_cross_line_alarm
    to: "on"
    id: detected
condition:
  - condition: time
    after: "07:00:00"
    before: "20:00:00"
    weekday:
      - sun
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
action:
  - device_id: e3edc53911d2219e88baaf1f560b3418
    domain: select
    entity_id: 221b819632e33e8258dff1bc222f35d2
    type: select_option
    option: "12"
  - device_id: e3edc53911d2219e88baaf1f560b3418
    domain: number
    entity_id: db7dae623112193eade59aaee8645f96
    type: set_value
    value: 5
  - type: turn_on
    device_id: e3edc53911d2219e88baaf1f560b3418
    entity_id: b847b0383fab0def15a2f7071ee4d13c
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 59
      milliseconds: 0
  - type: turn_off
    device_id: e3edc53911d2219e88baaf1f560b3418
    entity_id: b847b0383fab0def15a2f7071ee4d13c
    domain: switch
  - device_id: e3edc53911d2219e88baaf1f560b3418
    domain: select
    entity_id: 221b819632e33e8258dff1bc222f35d2
    type: select_option
    option: "6"
  - device_id: e3edc53911d2219e88baaf1f560b3418
    domain: number
    entity_id: db7dae623112193eade59aaee8645f96
    type: set_value
    value: 58
mode: single