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