Xiaomi Double switch (left,right,both)

I am very new in home assistant but i can not figure it out
I made this automation for a Xiaomi double switch WXKG02LM what is connected over zigbee2mqtt.
The switch works great and gives me the signals left, right and both

Now i made this

  - alias: "Eet/TV Switch Left On"
    initial_state: "on"
    trigger:
      platform: state
      entity_id: sensor.0x00158d00027c2806_click #Xiaomi dubble switch
      to: left
    condition:
      condition: state
      entity_id: input_boolean.eettafel_aan_uit 
      state: 'off'      
    action:
      - service: light.turn_on
        entity_id: light.0x90fd9ffffe1502e9_light #ikea light
      - service: input_boolean.turn_on
        entity_id: input_boolean.eettafel_aan_uit
      
  - alias: "Eet/TV Switch Left Off"
    initial_state: "on"
    trigger:
      platform: state
      entity_id: sensor.0x00158d00027c2806_click #Xiaomi dubble switch
      to: left
    condition:
      condition: state
      entity_id: input_boolean.eettafel_aan_uit
      state: 'on'  
    action:
      - service: light.turn_off
        entity_id: light.0x90fd9ffffe1502e9_light #ikea light
      - service: input_boolean.turn_off
        entity_id: input_boolean.eettafel_aan_uit      

It works but when i want to switch a light on and off with the left switch.
Now i have to switch right and then left to get it to work.
This because to: left i guess
Is there something else i can use for this?