Automation triggered if MQTT value has changed and is equal to '1'

hello everybody,

this is my first post, i’m facing a big challenge…i want to trigger an action only if a recieved MQTT payload is equal to ‘1’ and different from the last state, i am using this automation but there is something wrong, could somebody help me please ?

  - alias: set_daikin_mode_standby
    trigger:
      platform: mqtt
      topic: "daikin_altherma/mode_01"
    condition:
      condition: and
      conditions: 
        - condition: template
          value_template: "{{ '1' in trigger.payload }}"
        - condition: template
          value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
    action:
       service: input_select.select_option
       data:
        entity_id: input_select.daikin_hpsu
        option: "Standby"