{
  "fkd_version": "1.0",
  "id": "Mi-Flower",
  "name": "Xiaomi Mi Flower Care BLE Driver",
  "transport": "ble_gatt",
  "service_uuid": "00001204-0000-1000-8000-00805f9b34fb",
  "commands": {
    "blink": [
      {
        "op": "write_hex",
        "uuid": "00001a00-0000-1000-8000-00805f9b34fb",
        "hex": "FDFF",
        "wait_ms": 140
      }
    ],
    "poll": [
      {
        "op": "write_hex",
        "uuid": "00001a00-0000-1000-8000-00805f9b34fb",
        "hex": "FDFF",
        "wait_ms": 320
      },
      {
        "op": "write_hex",
        "uuid": "00001a00-0000-1000-8000-00805f9b34fb",
        "hex": "A01F",
        "wait_ms": 240
      },
      {
        "op": "read_unpack",
        "uuid": "00001a02-0000-1000-8000-00805f9b34fb",
        "optional": true,
        "fields": [
          {"out": "batt", "offset": 0, "type": "u8", "scale": 1.0, "min": 0, "max": 100}
        ]
      },
      {
        "op": "read_unpack",
        "uuid": "00001a01-0000-1000-8000-00805f9b34fb",
        "reject_prefix": "AABB",
        "fields": [
          {"out": "temp", "offset": 0, "type": "s16le", "scale": 0.1, "min": -20, "max": 85},
          {"out": "lux", "offset": 3, "type": "u32le", "scale": 1.0, "min": 0, "max": 200000},
          {"out": "moist", "offset": 7, "type": "u8", "scale": 1.0, "min": 0, "max": 100},
          {"out": "ec", "offset": 8, "type": "u16le", "scale": 1.0, "min": 0, "max": 30000}
        ]
      }
    ]
  }
}
