I need help with automation multi sentence and choose option

Hi anyone can help me with this code the command is received fine but no actions , any idea

alias: Voice Command
description: أوامر صوتية للتحكم بالتلفزيون والفاير تي في والإضاءة
triggers:
  - trigger: conversation
    command:
      - tv on
      - tv off
      - lights
      - open the shade
      - close the shade
      - ac
conditions: []
actions:
  - variables:
      cmd: "{{ trigger.user_input.text | lower | trim }}"
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ cmd == 'tv on' }}"
        sequence:
          - action: remote.turn_on
            target:
              entity_id:
                - remote.007684938ca33ac24850691265acabc7
                - remote.01d5bf676d893da5d4e8ba806e55ad95
      - conditions:
          - condition: template
            value_template: "{{ cmd == 'tv off' }}"
        sequence:
          - action: media_player.turn_off
            target:
              device_id: 4a38d7344b435830224da668e41fc2e5
              entity_id: media_player.fire_tv_192_168_100_36
            data: {}
      - conditions:
          - condition: template
            value_template: "{{ cmd == 'lights' }}"
        sequence:
          - action: light.toggle
            target:
              entity_id:
                - light.magic_switch_s1e_b8b4_switch_1
                - light.magic_switch_s1e_b8b4_switch_2
      - conditions:
          - condition: template
            value_template: "{{ cmd == 'open the shade' }}"
        sequence:
          - action: cover.open_cover
            target:
              entity_id: cover.roller_shade_controller_t1s
      - conditions:
          - condition: template
            value_template: "{{ cmd == 'close the shade' }}"
        sequence:
          - action: cover.close_cover
            target:
              entity_id: cover.roller_shade_controller_t1s
      - conditions:
          - condition: template
            value_template: "{{ cmd == 'ac' }}"
        sequence:
          - action: switch.toggle
            target:
              entity_id: switch.ac_on
mode: single

If the command is received and the trigger fired, then there will be a trace available. Download that file and share the contents of it.

Edit the automation, choose the 3 dots in the upper right and select “traces”. Select the appropriate trace, then choose that menu again and download trace.

Thank you for your response, and I hope to find a solution to this problem, because this way I can combine all the voice commands into a single automation without needing to create a separate automation for each command.
this the trace output file
I noticed that when I type the command in Assist, it executes without any problems, but the voice command for the same action does not execute.

{
  "trace": {
    "last_step": "trigger/0",
    "run_id": "49ceb5610cbab36bfb954b9970f87622",
    "state": "stopped",
    "script_execution": "failed_single",
    "timestamp": {
      "start": "2025-11-04T10:49:47.461323+00:00",
      "finish": "2025-11-04T10:49:47.462364+00:00"
    },
    "domain": "automation",
    "item_id": "1761993132882",
    "trigger": null,
    "trace": {
      "trigger/0": [
        {
          "path": "trigger/0",
          "timestamp": "2025-11-04T10:49:47.461634+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "automation.m_lights",
              "state": "on",
              "attributes": {
                "id": "1761993132882",
                "last_triggered": "2025-11-04T10:49:47.450962+00:00",
                "mode": "single",
                "current": 1,
                "friendly_name": "Voice Command"
              },
              "last_changed": "2025-11-04T10:27:50.702599+00:00",
              "last_reported": "2025-11-04T10:49:47.454061+00:00",
              "last_updated": "2025-11-04T10:49:47.451063+00:00",
              "context": {
                "id": "01K977SDNTSZKJNHWXQ5WD8BV7",
                "parent_id": null,
                "user_id": null
              }
            },
            "trigger": {
              "id": "0",
              "idx": "0",
              "alias": null,
              "platform": "conversation",
              "sentence": "tv on",
              "details": {},
              "slots": {},
              "device_id": null,
              "satellite_id": null,
              "user_input": {
                "text": "tv on",
                "context": {
                  "id": "01K977SDMQV26HBZQQ6ZG8PTHS",
                  "parent_id": null,
                  "user_id": "694ecea017fe4766879c1d70b0af9dbf"
                },
                "conversation_id": "01K977SDMQZE0Y5TAN8SCBN1BX",
                "device_id": null,
                "satellite_id": null,
                "language": "en",
                "agent_id": "conversation.home_assistant",
                "extra_system_prompt": null
              }
            }
          }
        }
      ]
    },
    "config": {
      "id": "1761993132882",
      "alias": "Voice Command",
      "description": "أوامر صوتية للتحكم بالتلفزيون والفاير تي في والإضاءة",
      "triggers": [
        {
          "trigger": "conversation",
          "command": [
            "tv on",
            "tv off",
            "lights",
            "open the shade",
            "close the shade",
            "ac"
          ]
        }
      ],
      "conditions": [],
      "actions": [
        {
          "variables": {
            "cmd": "{{ trigger.user_input.text | lower | trim }}"
          }
        },
        {
          "choose": [
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ cmd == 'tv on' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.turn_on",
                  "metadata": {},
                  "data": {},
                  "target": {
                    "device_id": "4a38d7344b435830224da668e41fc2e5",
                    "entity_id": "media_player.fire_tv_192_168_100_36"
                  }
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ cmd == 'tv off' }}"
                }
              ],
              "sequence": [
                {
                  "action": "media_player.turn_off",
                  "target": {
                    "device_id": "4a38d7344b435830224da668e41fc2e5",
                    "entity_id": "media_player.fire_tv_192_168_100_36"
                  },
                  "data": {}
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ cmd == 'lights' }}"
                }
              ],
              "sequence": [
                {
                  "action": "light.toggle",
                  "target": {
                    "entity_id": [
                      "light.magic_switch_s1e_b8b4_switch_1",
                      "light.magic_switch_s1e_b8b4_switch_2"
                    ]
                  }
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ cmd == 'open the shade' }}"
                }
              ],
              "sequence": [
                {
                  "action": "cover.open_cover",
                  "target": {
                    "entity_id": "cover.roller_shade_controller_t1s"
                  }
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ cmd == 'close the shade' }}"
                }
              ],
              "sequence": [
                {
                  "action": "cover.close_cover",
                  "target": {
                    "entity_id": "cover.roller_shade_controller_t1s"
                  }
                }
              ]
            },
            {
              "conditions": [
                {
                  "condition": "template",
                  "value_template": "{{ cmd == 'ac' }}"
                }
              ],
              "sequence": [
                {
                  "action": "switch.toggle",
                  "target": {
                    "entity_id": "switch.ac_on"
                  }
                }
              ]
            }
          ]
        }
      ],
      "mode": "single"
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01K977SDP59MMH2AA9B6YMVK9F",
      "parent_id": null,
      "user_id": null
    }
  },
  "logbookEntries": []
}