Xiaomi cube not responding yet showing in home assistant

I had a Xiaomi gateway with a few lights and buttons attached. Everything seemed to be fine but I recently got a ‘magic cube’ and I just can’t seem to get it to work. Following the instructions I built some automatics but even paring back to the basics below the button works but the cube won’t (I’ve tried other actions and it just won’t work)

I also enabled the logger (logger: with no params) but it won’t seem to tell me of events occurring unless they trigger automations so I can’t work out how to debug.

Home Assistant shows the battery level but the last action is permanently null whereas with the button it changes (double, single, etc)

configuration.yaml

xiaomi_aqara:
  discovery_retry: 5
  gateways:
    - key: !secret xiaomi_gateway_key

cube and button in automations.yaml

- alias: Cube event shake_air
  trigger:
    platform: event
    event_type: cube_action
    event_data:
      entity_id: binary_sensor.cube_158d000231e24e
      action_type: shake_air
  action:
    - service: ifttt.trigger
      data:
        event: HA_generic
        value1: Shake
    - service: light.toggle
      entity_id: group.loungeroom_lights

- alias: Toggle loungeroom lights on double click
  trigger:
    platform: event
    event_type: click
    event_data:
      entity_id: binary_sensor.switch_158d0001e114cd
      click_type: double
  action:
    service: light.toggle
    entity_id: group.loungeroom_lights

I’m on version 0.71.0 running on hassbian

I can’t see anything wrong with those, just in case a comparison helps - here’s my cube automation.yaml entries for flip90, and flip180:

- alias: Next Track Hifi Pi on Cube Flip90
  trigger:
    platform: event
    event_type: cube_action
    event_data:
      entity_id: binary_sensor.cube_158d00010xxxxx
      action_type: flip90
  action:
    - service: media_player.media_next_track
      entity_id: media_player.hifi_pi

- alias: Previous Track Hifi Pi on Cube Flip180
  trigger:
    platform: event
    event_type: cube_action
    event_data:
      entity_id: binary_sensor.cube_158d00010xxxxx
      action_type: flip180
  action:
    - service: media_player.media_previous_track
      entity_id: media_player.hifi_pi

I’m on 0.71 too, so I guess it’s not that either.

I have the same issue and I think it is linked to the cube you are using. There are two cubes. The old one which works says Mi on it and the new one with troubles says Aquara on it. See this post for pics.

In 0.70.0 they added the new cube so it shows up, but it doesn’t look like there is any communication yet. There is an issue out on this though and it seems there may be a solution in the future.

Some details: https://github.com/Danielhiversen/PyXiaomiGateway/issues/80