How to add Starkvind Air Cleaner

@ebaauw made a attemped already on it.

{
  "schema": "devcap1.schema.json",
  "manufacturername": "$MF_IKEA",
  "modelid": "STARKVIND Air purifier",
  "product": "STARKVIND Air purifier",
  "sleeper": false,
  "status": "Bronze",
  "path": "/devices/starkvind_air_purifier.json",
  "subdevices": [
    {
      "type": "$TYPE_AIR_QUALITY_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0xfc7d"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0007",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0202",
          "0xFC7D"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/ledindication",
          "parse": {
            "at": "0x0003",
            "cl": "0xfc7d",
            "ep": 255,
            "eval": "Item.val = !Attr.val",
            "fn": "zcl",
            "mf": "0x117c"
          }
        },
        {
          "name": "config/locked",
          "parse": {
            "at": "0x0005",
            "cl": "0xfc7d",
            "ep": 255,
            "eval": "Item.val = Attr.val",
            "fn": "zcl",
            "mf": "0x117c"
          }
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/airqualityppb",
          "parse": {
            "at": "0x0004",
            "cl": "0xfc7d",
            "ep": 255,
            "eval": "Item.val = Attr.val == 65535 ? undefined : Attr.val",
            "fn": "zcl",
            "mf": "0x117c"
          }
        },
        {
          "name": "state/airquality",
          "parse": {
            "fn": "numtostr",
            "op": "le",
            "srcitem": "state/airqualityppb",
            "to": [
              65,
              "excellent",
              220,
              "good",
              660,
              "moderate",
              5000,
              "unhealthy",
              65534,
              "out of scale",
              65535,
              "unknown"
            ]
          }
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/speed",
          "parse": {
            "at": "0x0007",
            "cl": "0xfc7d",
            "ep": 255,
            "eval": "Item.val = Attr.val / 10",
            "fn": "zcl",
            "mf": "0x117c"
          }
        }
      ]
    }
  ]
}

Also see: IKEA Starkvind Air purifier (E2007/E3007) · Issue #5351 · dresden-elektronik/deconz-rest-plugin · GitHub

1 Like