Woox smart garden irrigation control

I created a DDF for this practical device. The device works out of the box (deCONZ 2.15.3) as smart plug (Tuya TS0101), however the battery reporting is missing, which is added by this DDF.

I would create a PR, but not sure where to place it - create a new folder for woox in devices?

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZ3210_eymunffl",
  "modelid": "TS0101",
  "vendor": "WOOX",
  "product": "TS0101",
  "sleeper": false,
  "status": "Bronze",
  "path": "/devices/ts0101.json",
  "subdevices": [
    {
      "type": "$TYPE_SMART_PLUG",
      "restapi": "/lights",
      "uuid": [
        "$address.ext",
        "0x01"
      ],
      "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": "state/alert",
          "description": "The currently active alert effect.",
          "default": "none"
        },
        {
          "name": "state/on",
          "refresh.interval": 5
        },
        {
          "name": "state/reachable"
        }
      ]
    },
    {
      "type": "$TYPE_BATTERY_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0001"
      ],
      "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/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/battery",
          "refresh.interval": 3600
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0006",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x10",
          "min": 1,
          "max": 300
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 0,
          "max": 0
        }
      ]
    }
  ]
}

Nice thx.

But it seem there is some news version with a not working battery report no ? Woox R7060 Smart Garden Irrigation Control · Issue #4325 · dresden-elektronik/deconz-rest-plugin · GitHub

Else right, can create a “woox” folder in the “devices” folder.
There is too much “no name” tuya device. When the brand is sure at 100% better to use it.

At least for me both battery and on/off works well. I did not restart the deCONZ container after pairing, though - I rather would not want to do this too often :slight_smile: I will observe this when I have to do a restart next time.

EDIT: Because I am so curious I did a restart of the deCONZ add-on - still works fine.