Aqara wall dual switch QBKG03LM doesn't switch correctly

I have a wall switch QBKG03LM, it works pretty OK from Lovelace, it is shut off correctly from two automations (activated either by occupancy sensor or by wireless button), but it doesn’t turn on in about 90% instances in automation triggered by that same motion sensor.

- id: '1596223231206'
  alias: turn off
  description: ''
  trigger:
  - device_id: <***>
    domain: binary_sensor
    entity_id: binary_sensor.kitchen_occupancy
    for:
      hours: 0
      minutes: 3
      seconds: 0
    platform: device
    type: no_motion
  condition: []
  action:
  - data: {}
    entity_id: switch.0x00158d00034956d8_switch_left
    service: switch.turn_off
  mode: single
- id: '1596223149703'
  alias: turn on
  description: ''
  trigger:
  - device_id: <***>
    domain: binary_sensor
    entity_id: binary_sensor.kitchen_occupancy
    platform: device
    type: motion
  condition:
  - above: 0
    below: 12
    condition: device
    device_id: <***>
    domain: sensor
    entity_id: sensor.kitchen_illuminance
    type: is_illuminance
  action:
  - data: {}
    entity_id: switch.0x00158d00034956d8_switch_left
    service: switch.turn_on
  mode: single