# DDF for Aubess Tuya Smart ZigBee Temperature and Humidity Sensor

**URL:** <https://forum.phoscon.de/t/ddf-for-aubess-tuya-smart-zigbee-temperature-and-humidity-sensor/2545>\
**Category:** DDF-Library\
**Created:** [October 2, 2022, 9:37am UTC](https://forum.phoscon.de/t/ddf-for-aubess-tuya-smart-zigbee-temperature-and-humidity-sensor/2545 "2022-10-02T09:37:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Finne75](https://forum.phoscon.de/user_avatar/forum.phoscon.de/finne75/32/1538_2.png) [@Finne75](https://forum.phoscon.de/u/Finne75)\
**Post date:** [October 2, 2022, 9:37am UTC](https://forum.phoscon.de/t/ddf-for-aubess-tuya-smart-zigbee-temperature-and-humidity-sensor/2545/1 "2022-10-02T09:37:04Z")

</div>

I created a DDF for [this](https://www.aliexpress.com/item/1005003507022643.html?spm=a2g0o.order_list.0.0.46321802f51WeY) device - works flawlessly for some weeks now.

I would create a PR for this - any preference where to store, should I create a new folder “Aubess” or put in “tuya”?

```auto

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZ3000_bguser20",
  "modelid": "TS0201",
  "vendor": "Aubess",
  "product": "TS0201",
  "sleeper": false,
  "status": "Gold",
  "path": "/devices/Aubess_temp_hum_sensor_ts0201.json",
  "subdevices": [
    {
      "type": "$TYPE_TEMPERATURE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0402"
      ],
      "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/battery",
          "awake": true,
          "refresh.interval": 3600,
          "read": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "fn": "zcl"
          },
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "fn": "zcl"
          },
          "default": 0
        },
        {
          "name": "config/offset",
          "description": "Relative offset to the main measured value.",
          "default": 0
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/temperature",
          "default": 0
        }
      ]
    },
    {
      "type": "$TYPE_HUMIDITY_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0405"
      ],
      "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/battery",
          "awake": true,
          "refresh.interval": 3600,
          "read": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "fn": "zcl"
          },
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val / 2",
            "fn": "zcl"
          },
          "default": 0
        },
        {
          "name": "config/offset",
          "description": "Relative offset to the main measured value.",
          "default": 0
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/humidity",
          "default": 0
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 60,
          "max": 3600,
          "change": "0x00000001"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0402",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x29",
          "min": 60,
          "max": 300,
          "change": "0x00000064"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0405",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x21",
          "min": 60,
          "max": 300,
          "change": "0x00000064"
        }
      ]
    }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [October 2, 2022, 1:32pm UTC](https://forum.phoscon.de/t/ddf-for-aubess-tuya-smart-zigbee-temperature-and-humidity-sensor/2545/2 "2022-10-02T13:32:25Z")

</div>

Thx for that ^^.

It’s like you want, but there is too much “no name” tuya, so yes for me better to create a “aubess” folder.

Just a comment, you can remove from your DDF, the line “path” and all lines “description”

---

<div class="post-metadata">

**Author:** ![Gowah](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@Gowah](https://forum.phoscon.de/u/Gowah)\
**Post date:** [October 26, 2022, 10:07am UTC](https://forum.phoscon.de/t/ddf-for-aubess-tuya-smart-zigbee-temperature-and-humidity-sensor/2545/3 "2022-10-26T10:07:39Z")

</div>

Great. But how do I uplaoad that to the DECONZ integration running on my Home Assistant Operating System (intel NUC - not a Container installation). Only limited Terminal experience therefore will need clear and simple step by step instructions and guide! Thanks

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [October 26, 2022, 4:13pm UTC](https://forum.phoscon.de/t/ddf-for-aubess-tuya-smart-zigbee-temperature-and-humidity-sensor/2545/4 "2022-10-26T16:13:14Z")

</div>

Perhaps [How to add/edit a DDF on Home assistant using text editor?](https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839)

---

<div class="post-metadata">

**Author:** ![Gowah](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@Gowah](https://forum.phoscon.de/u/Gowah)\
**Post date:** [October 26, 2022, 4:41pm UTC](https://forum.phoscon.de/t/ddf-for-aubess-tuya-smart-zigbee-temperature-and-humidity-sensor/2545/5 "2022-10-26T16:41:09Z")

</div>

Thank you. Yes I already had seen this. But how do I get the new DDF file uploaded in the first place ?

---

<div class="post-metadata">

**Author:** ![Smanar](https://forum.phoscon.de/user_avatar/forum.phoscon.de/smanar/32/60_2.png) [@Smanar](https://forum.phoscon.de/u/Smanar)\
**Post date:** [October 26, 2022, 4:49pm UTC](https://forum.phoscon.de/t/ddf-for-aubess-tuya-smart-zigbee-temperature-and-humidity-sensor/2545/6 "2022-10-26T16:49:41Z")

</div>

Here you have 2 ways, the text editor, used with copy/paste or the “docker cp” to copy files.

> [@How to add/edit a DDF on Home assistant using text editor?](https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839/8):
>
> If I m right some user just use the cat command to create a file, perhaps this command is native on docker ? cat \>file.json An other user, put the file on an external device and use docker cp /mnt/data/supervisor/share/lixee\_zlinky\_historique\_mono.json 26abed96b08c:/data/.local/share/dresden-elektronik/deCONZ/devices To copy the file ( 26abed96b08c is the ID) Another method to test (don’t forget the ') touch file.json printf 'file\_contain'

One time the file is created, you just need to restart deconz and re-include the device.
