Skip to content

Latest commit

 

History

History

Xiaomi Mijia bluetooth Smart Rubik's Cube (XMMFO1JQD)

XMMFO1JQD

Sample configuration:

external_components:
  - source: github://dentra/esphome-components

sensor:
  - platform: miot_xmmfo1jqd
    # String (Required), device MAC-address.
    mac_address: !secret device_mac_address
    # String, (Optional), device bind key. Will use "xiaomi_account" from "miot" if absent to automatically get the bindkey.
    bindkey: !secret device_bind_key
    # List, Automation (Optional), The automation activated when you clicked specified button
    on_twist:
      # String (Required), The button name (case insensitive): clockwise or counterclockwise
      - button: clockwise
        # List, Any automation
        then:
          - logger.log: twisted clockwise
      - button: counterclockwise
        # List, Any automation
        then:
          - logger.log: twisted counterclockwise
    # Sensor (Optional), Battery Level, % (not 100% sure that is working, please let me know it so)
    battery_level:
      name: Battery Level
    # Sensor (Optional), Battery Voltage, V (not 100% sure that is working, please let me know it so)
    battery_voltage:
      name: Battery Voltage

thanks to @xrust83