Aqara mini switch

Hi guys,

I have received today an “aqara mini switch” that (under my zigbee USB stick) appears as a sensor. I can create an automation to toggle a light switch however that automation relies on a state change and after 1 single press the sensor appears as state “single” and never changes therefore another single press does not change the state as it still registers as single.

I can force the sensor to another state “say…off” and then trigger successfully however I want to do this in an automation please

My Automation below

- id: '1572157547180'
  alias: Aqara Switch
  trigger:
    platform: state
    entity_id: sensor.lumi_lumi_sensor_swit_02d45c3a_1_18
    to: 'single'
  action:
    entity_id: light.media_room
    service: light.toggle