- platform: template not working anymore

Hi guys
We previously had this option, but with the newest update allot of these - platform all move for my case under
mqtt
sensor:
-

What/how / where do I place this now though:, the below yaml basically enabled both my alarm zones

  - platform: template
    panels:
      master_alarm_panel:
        code_arm_required: false
        value_template: >
          {% set p1 = states('alarm_control_panel.alarm_part1') %}
          {% set p2 = states('alarm_control_panel.alarm_part2') %}
          {{ p1 if p1 == p2 else 'pending' }}
        arm_away:
          - service: alarm_control_panel.alarm_arm_away
            data:
              entity_id:
                - alarm_control_panel.alarm_part1
                - alarm_control_panel.alarm_part2
        arm_home:
          - service: alarm_control_panel.alarm_arm_home
            data:
              entity_id:
                - alarm_control_panel.alarm_part1
                - alarm_control_panel.alarm_part2
        arm_night:
          - service: alarm_control_panel.alarm_arm_night
            data:
              entity_id:
                - alarm_control_panel.alarm_part1
                - alarm_control_panel.alarm_part2
        disarm:
          - service: alarm_control_panel.alarm_disarm
            data:
              entity_id:
                - alarm_control_panel.alarm_part1
                - alarm_control_panel.alarm_part2   

That is not an mqtt sensor. It is a template sensor. It does not move anywhere.

it was defined under alarm_control_panel in configuration.yaml
under there was also some mqtt entities… see entire section below.
with all the mqtt entities removed… it still gave error… but figure it out, thanks for nudging me…

# Example configuration.yaml entry
alarm_control_panel:
  - platform: mqtt
    name: "Alarm-Part1"
    command_topic: "paradox/my/control/partitions/Inside"
    state_topic: "paradox/states/partitions/Inside/current_state"
    payload_arm_away: "arm"
    payload_arm_home: "arm_stay"
    payload_arm_night: "arm_sleep"
    payload_disarm: "disarm"
    code_arm_required: false
  - platform: mqtt
    name: "Alarm-Part2"
    command_topic: "paradox/my/control/partitions/Outside"
    state_topic: "paradox/states/partitions/Outside/current_state"
    payload_arm_away: "arm"
    payload_arm_home: "arm_stay"
    payload_arm_night: "arm_sleep"
    payload_disarm: "disarm"
    code_arm_required: false
    
  - platform: mqtt
    name: "Alarm-Dir Part1"
    command_topic: "paradox/control/partitions/Inside"
    state_topic: "paradox/states/partitions/Inside/current_state"
    payload_arm_away: "arm"
    payload_arm_home: "arm_stay"
    payload_arm_night: "arm_sleep"
    payload_disarm: "disarm"
    code_arm_required: false
  - platform: mqtt
    name: "Alarm-Dir Part2"
    command_topic: "paradox/control/partitions/Outside"
    state_topic: "paradox/states/partitions/Outside/current_state"
    payload_arm_away: "arm"
    payload_arm_home: "arm_stay"
    payload_arm_night: "arm_sleep"
    payload_disarm: "disarm"
    code_arm_required: false
    
  - platform: template
    panels:
      master_alarm_panel:
        code_arm_required: false
        value_template: >
          {% set p1 = states('alarm_control_panel.alarm_part1') %}
          {% set p2 = states('alarm_control_panel.alarm_part2') %}
          {{ p1 if p1 == p2 else 'pending' }}
        arm_away:
          - service: alarm_control_panel.alarm_arm_away
            data:
              entity_id:
                - alarm_control_panel.alarm_part1
                - alarm_control_panel.alarm_part2
        arm_home:
          - service: alarm_control_panel.alarm_arm_home
            data:
              entity_id:
                - alarm_control_panel.alarm_part1
                - alarm_control_panel.alarm_part2
        arm_night:
          - service: alarm_control_panel.alarm_arm_night
            data:
              entity_id:
                - alarm_control_panel.alarm_part1
                - alarm_control_panel.alarm_part2
        disarm:
          - service: alarm_control_panel.alarm_disarm
            data:
              entity_id:
                - alarm_control_panel.alarm_part1
                - alarm_control_panel.alarm_part2    ```