Xiaomi cube problem

Hi.
I have a problem with Xiaomi cube.
Cube is visible in hass states as binary switch. Also all actions are shown in Xioami apps log.
But automation is not working. Looks like Hass is not ‘see’ the cube actions.
Any help?
Robert

i mind posting your automation?

automation:

  • alias: Wylacznik_stol_on
    trigger:
    platform: event
    event_type: cube_action
    event_data:
    entity_id: binary_sensor.cube_158d0001041b7f
    action_type:: tap_twice
    action:
    • service: light.turn_on
      entity_id: light.gateway_light_34ce008136ef
      data:
      brightness: 20

Problem solved - my error I used : twice

Great please close this threat