Rotate to the left or right in Xiaomi Magic Cube?

I change my mode by simply throwing it in the air :smile:
Automation:

- alias: Xiaomi Cube - Toggle Cube Mode [Free Fall]
  trigger:
    platform: event
    event_type: cube_action
    event_data:
      entity_id: binary_sensor.cube_158d000101bded
      action_type: free_fall
  action:
     service: input_select.select_option
     data_template:
      entity_id: input_select.cube_mode
      option: >
            {% if states.input_select.cube_mode.state == "Radio" %} Light 
            {% elif states.input_select.cube_mode.state == "Light" %} Radio
            {% endif %}  
1 Like