# Including standard Tuya "magic spell" sequence during joining

**URL:** <https://forum.phoscon.de/t/including-standard-tuya-magic-spell-sequence-during-joining/2916>\
**Category:** Feature Requests\
**Created:** [November 30, 2022, 9:07pm UTC](https://forum.phoscon.de/t/including-standard-tuya-magic-spell-sequence-during-joining/2916 "2022-11-30T21:07:01Z")\
**Posts on this page:** 1\
**Showing post:** 15

<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:** [February 23, 2023, 5:38pm UTC](https://forum.phoscon.de/t/including-standard-tuya-magic-spell-sequence-during-joining/2916/15 "2023-02-23T17:38:09Z")

</div>

Ok, so I was totally wrong, it’s possible using DDF (THX to @nebarh01) for users that have a device that need to be unlocked, pls add this code on the DDF on ednpoint 0x01

```auto
        {
          "name": "config/configured",
          "refresh.interval": 86400,
          "read": {
            "fn": "zcl",
            "ep": 1,
            "cl": "0x0000",
            "at": [
              "0x0004",
              "0x0000",
              "0x0001",
              "0x0005",
              "0x0007",
              "0xfffe"
            ]
          },
          "parse": {
            "fn": "zcl",
            "ep": 1,
            "cl": "0x0000",
            "at": "0xfffe",
            "eval": "Item.val = (Attr.val != 0)"
          },
          "public": false,
          "default": false
        }

```

In test ATM, or the working one (but not optimised)

```auto
        {
          "name": "config/interfacemode",
          "refresh.interval": 86400,
          "read": {
            "fn": "zcl",
            "ep": 1,
            "cl": "0x0000",
            "at": [
              "0x0004",
              "0x0000",
              "0x0001",
              "0x0005",
              "0x0007",
              "0xfffe"
            ]
          },
          "parse": {
            "fn": "zcl",
            "ep": 1,
            "cl": "0x0000",
            "at": "0xfffe",
            "eval": "Item.val = Attr.val"
          },
          "public": false,
          "default": 0
        }

```

---

_[View the full topic](https://forum.phoscon.de/t/including-standard-tuya-magic-spell-sequence-during-joining/2916)._
