# After DDF modification got duplicate clusters with 0xff endpoint

**URL:** <https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605>\
**Category:** Advice\
**Created:** [October 12, 2022, 12:14pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605 "2022-10-12T12:14:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [October 12, 2022, 12:14pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/1 "2022-10-12T12:14:19Z")

</div>

After modifiying a DDF for SMT402AD thermostat, replacing an invalid uuid by another on the Humidity sensor, replacing :

```auto
      "type": "$TYPE_HUMIDITY_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0405"

```

by

```auto
      "type": "$TYPE_HUMIDITY_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x19",
        "0x0405"

```

to be compliant with the binding parts of the DDF (25 in decimal equals to 0x19)

```auto
 "bindings": [
    {
      "bind": "unicast",
      "src.ep": 25,
      "cl": "0x0405"
    },
    {
      "bind": "unicast",
      "src.ep": 25,
      "cl": "0x0204"
    },
    {
      "bind": "unicast",
      "src.ep": 25,
      "cl": "0x0201"
    }
  ]

```

and after that I had to restart my RPi for other reason.

All return to normal, except that I got duplicates clusters, those that I think are correct with endpoint 0x19 and others with endpoint 0xffand when reading information in deCONZ-GUI both are updated :

```auto
07:53:54:663 f8:f0:05:ff:ff:70:7e:95-ff-0201/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
07:53:54:664 f8:f0:05:ff:ff:70:7e:95-19-0201/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
07:53:54:665 f8:f0:05:ff:ff:70:7e:95-ff-0402/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
07:53:54:666 f8:f0:05:ff:ff:70:7e:95-ff-0405/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
07:53:54:667 f8:f0:05:ff:ff:70:7e:95-19-0405/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
07:53:54:668 f8:f0:05:ff:ff:70:7e:95-19-0402/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
07:53:54:668 f8:f0:05:ff:ff:70:7e:95/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
07:53:54:828 f8:f0:05:ff:ff:70:7e:95-ff-0201/attr/modelid expression: Item.val = Attr.val --> SMT402AD
07:53:54:829 f8:f0:05:ff:ff:70:7e:95-19-0201/attr/modelid expression: Item.val = Attr.val --> SMT402AD
07:53:54:830 f8:f0:05:ff:ff:70:7e:95-ff-0402/attr/modelid expression: Item.val = Attr.val --> SMT402AD
07:53:54:831 f8:f0:05:ff:ff:70:7e:95-ff-0405/attr/modelid expression: Item.val = Attr.val --> SMT402AD
07:53:54:832 f8:f0:05:ff:ff:70:7e:95-19-0405/attr/modelid expression: Item.val = Attr.val --> SMT402AD
07:53:54:833 f8:f0:05:ff:ff:70:7e:95-19-0402/attr/modelid expression: Item.val = Attr.val --> SMT402AD
07:53:54:834 f8:f0:05:ff:ff:70:7e:95/attr/modelid expression: Item.val = Attr.val --> SMT402AD

```

If I delete the Thermostat with 0xff endpoint it delte the device from deCONZ and I had to rejoin it.

Here is my DDF :

```auto
{
  "schema": "devcap1.schema.json",
  "manufacturername": "Stelpro",
  "modelid": "SMT402AD",
  "product": "SMT402AD",
  "sleeper": false,
  "status": "Silver",
  "path": "/devices/smt402ad.json",
  "subdevices": [
    {
      "type": "$TYPE_THERMOSTAT",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x19",
        "0x0201"
      ],
      "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/externalsensortemp",
          "description": "External sensor temperature used as Outdoor temperature on display.",
          "refresh.interval": 300,
          "read": {
            "at": "0x4001",
            "cl": "0x0201",
            "ep": 25,
            "fn": "zcl",
            "mf": "0x1185"
          },
          "write": {
            "at": "0x4001",
            "cl": "0x0201",
            "dt": "0x29",
            "ep": 25,
            "eval": "Item.val",
            "fn": "zcl",
            "mf": "0x1185"
          },
          "parse": {
            "at": "0x4001",
            "cl": "0x0201",
            "ep": 25,
            "eval": "Item.val = Attr.val;",
            "fn": "zcl",
            "mf": "0x1185"
          },
          "default": 0
        },
        {
          "name": "config/heatsetpoint",
          "default": 0
        },
        {
          "name": "config/mode"
        },
        {
          "name": "config/offset",
          "default": 0
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "config/unoccupiedheatsetpoint",
          "refresh.interval": 300,
          "read": {
            "at": "0x0014",
            "cl": "0x0201",
            "ep": 25,
            "fn": "zcl"
          },
          "write": {
            "at": "0x0014",
            "cl": "0x0201",
            "dt": "0x29",
            "ep": 25,
            "eval": "Item.val",
            "fn": "zcl",
            "mf": "0x1185"
          },
          "parse": {
            "at": "0x0014",
            "cl": "0x0201",
            "ep": 25,
            "eval": "Item.val = Attr.val;",
            "fn": "zcl"
          },
          "default": 17
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/on",
          "refresh.interval": 5
        },
        {
          "name": "state/temperature",
          "description": "The current temperature in °C (*100).",
          "parse": {
            "at": "0x0000",
            "cl": "0x0201",
            "ep": 25,
            "eval": "Item.val = Attr.val + R.item('config/offset').val",
            "fn": "zcl"
          },
          "default": 0
        },
        {
          "name": "state/valve",
          "description": "PI Heating Demand\nIf below 10, then device is Idle, else device is Heating.",
          "refresh.interval": 300,
          "read": {
            "at": "0x0008",
            "cl": "0x0201",
            "ep": 25,
            "fn": "zcl"
          },
          "parse": {
            "at": "0x0008",
            "cl": "0x0201",
            "ep": 25,
            "eval": "Item.val = Attr.val;",
            "fn": "zcl"
          },
          "default": 0
        }
      ]
    },
    {
      "type": "$TYPE_HUMIDITY_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x19",
        "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/offset",
          "default": 0
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/humidity",
          "description": "The current relative humidity in percent (*100).",
          "refresh.interval": 300,
          "read": {
            "at": "0x0000",
            "cl": "0x0405",
            "ep": 25,
            "fn": "zcl"
          },
          "parse": {
            "at": "0x0000",
            "cl": "0x0405",
            "ep": 25,
            "eval": "Item.val = Attr.val + R.item('config/offset').val",
            "fn": "zcl"
          },
          "default": 0
        },
        {
          "name": "state/lastupdated"
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 25,
      "cl": "0x0405"
    },
    {
      "bind": "unicast",
      "src.ep": 25,
      "cl": "0x0204"
    },
    {
      "bind": "unicast",
      "src.ep": 25,
      "cl": "0x0201"
    }
  ]
}

```

---

<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 12, 2022, 2:22pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/2 "2022-10-12T14:22:14Z")

</div>

And it create it again if you try to re-include the device ?  
I have this issue some days ago, need to found the post.

Edit:

> <https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6063#issuecomment-1264659166>
>
> This looks like a common Tuya sensor, with screen, under multiple different 'bra…nds' and different shells/cases. Anyone had a DDF for it? thx
> 
> Screenshots of what I have is included.
> 
> \- Product name: Tuya Temperature and Humidity Sensor with Screen
> \- Manufacturer: \_TZE200\_qoy0ekbd
> \- Model identifier: TS0601
> \- Device type: Temperature and Humidity Sensor
> 
> screenshots...
> 
> 
> !\[ConbeeTS0601\_node\](https://user-images.githubusercontent.com/1626802/169081849-4fb6f0d9-4152-4b3a-8cce-291b11d6a825.JPG)
> !\[ConbeeTS0601\_ClusterEF00\](https://user-images.githubusercontent.com/1626802/169081853-f65872b0-9eb6-42fa-b9cf-861272ee4ecd.JPG)
> !\[ConbeeTS0601\_Cluster0402\](https://user-images.githubusercontent.com/1626802/169081855-f0d204e2-6c79-4b57-a114-0f7effbd11f0.JPG)
> !\[ConbeeTS0601\_Cluster0001\](https://user-images.githubusercontent.com/1626802/169081856-7425b2e2-8b19-4a60-8b25-7ee04fc5b079.JPG)
> !\[Capture\_ConbeeTS0601\_basic\](https://user-images.githubusercontent.com/1626802/169081859-6ff643a6-3903-4d92-bd2d-54be3c5797ef.JPG)

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [October 12, 2022, 3:21pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/3 "2022-10-12T15:21:07Z")

</div>

> [@Smanar](#):
>
> And it create it again if you try to re-include the device ?

Exactly ! :-/  
BTW I can live with it inside Phoscon/DECONZ environment, but in third party apps it’s source of confusion and unused pseudo-devices (like in Domoticz that I use) and sometimes errors. But it’s not the right place to discuss about this part.

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [October 12, 2022, 3:26pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/4 "2022-10-12T15:26:57Z")

</div>

Even when “playing” with DDF by adding and deleting sensor (like ZHATemperature, Cluster 0x402) the -ff device is still alive when the regular one has disapear :

 ![image](https://forum.phoscon.de/uploads/default/original/2X/f/f3b5ba3f4e0b1ecbbb33cdd852f417ec93678a01.png)

---

<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 12, 2022, 4:45pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/5 "2022-10-12T16:45:47Z")

</div>

Not sure you can live with it.  
On the issue I have linked, it probably make the DDF not working.

And I realy have no clue where this false entry can be from …

You are sure you haven’t garbage in the database after deleting the sensor ?

And if you make a “hot reload” with “DDF” log enabled ?

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [October 12, 2022, 5:02pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/6 "2022-10-12T17:02:24Z")

</div>

> [@Smanar](#):
>
> You are sure you haven’t garbage in the database after deleting the sensor ?

Not sure about that at all … How can I check this ?

> [@Smanar](#):
>
> And if you make a “hot reload” with “DDF” log enabled ?

Here it is

```auto
12:57:25:925 update ddf SMT402AD index 0
12:57:25:985 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/id
12:57:25:987 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/lastannounced
12:57:25:988 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/lastseen
12:57:25:989 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/manufacturername
12:57:25:990 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/modelid
12:57:25:992 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/name
12:57:25:993 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/swversion
12:57:25:994 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/type
12:57:25:996 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: attr/uniqueid
12:57:25:997 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: config/externalsensortemp
12:57:25:998 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: config/heatsetpoint
12:57:25:999 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: config/mode
12:57:26:000 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: config/offset
12:57:26:001 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: config/on
12:57:26:002 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: config/reachable
12:57:26:003 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: config/unoccupiedheatsetpoint
12:57:26:004 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: state/lastupdated
12:57:26:005 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: state/on
12:57:26:006 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: state/temperature
12:57:26:008 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0201, has item: state/valve
12:57:26:011 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/id
12:57:26:012 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/lastannounced
12:57:26:013 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/lastseen
12:57:26:014 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/manufacturername
12:57:26:015 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/modelid
12:57:26:016 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/name
12:57:26:017 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/swversion
12:57:26:018 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/type
12:57:26:019 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: attr/uniqueid
12:57:26:021 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: config/offset
12:57:26:022 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: config/on
12:57:26:023 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: config/reachable
12:57:26:024 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: state/humidity
12:57:26:025 sub-device: f8:f0:05:ff:ff:70:7e:95-19-0405, has item: state/lastupdated
...
12:57:39:143 f8:f0:05:ff:ff:70:7e:95-19-0201/config/externalsensortemp expression: Item.val = Attr.val; --> 1720

```

and after that making a read on the basic cluster

```auto
13:01:23:857 f8:f0:05:ff:ff:70:7e:95-ff-0201/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
13:01:23:859 f8:f0:05:ff:ff:70:7e:95-19-0201/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
13:01:23:860 f8:f0:05:ff:ff:70:7e:95-ff-0402/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
13:01:23:862 f8:f0:05:ff:ff:70:7e:95-ff-0405/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
13:01:23:863 f8:f0:05:ff:ff:70:7e:95-19-0405/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
13:01:23:864 f8:f0:05:ff:ff:70:7e:95/attr/manufacturername expression: Item.val = Attr.val --> Stelpro
13:01:23:923 f8:f0:05:ff:ff:70:7e:95-ff-0201/attr/modelid expression: Item.val = Attr.val --> SMT402AD
13:01:23:928 f8:f0:05:ff:ff:70:7e:95-19-0201/attr/modelid expression: Item.val = Attr.val --> SMT402AD
13:01:23:936 f8:f0:05:ff:ff:70:7e:95-ff-0402/attr/modelid expression: Item.val = Attr.val --> SMT402AD
13:01:23:941 f8:f0:05:ff:ff:70:7e:95-ff-0405/attr/modelid expression: Item.val = Attr.val --> SMT402AD
13:01:23:946 f8:f0:05:ff:ff:70:7e:95-19-0405/attr/modelid expression: Item.val = Attr.val --> SMT402AD
13:01:23:953 f8:f0:05:ff:ff:70:7e:95/attr/modelid expression: Item.val = Attr.val --> SMT402AD

```

It’s even keeping trace of the cluster 0x0402 that is no more in the DDF !!

```auto

```

---

<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 13, 2022, 3:50pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/7 "2022-10-13T15:50:14Z")

</div>

> Not sure about that at all … How can I check this ?

Can use a sql editor. On m y side I m using “SQLiteDatabaseBrowserPortable” without installation with the deconz datafile zll.db.  
But you have too another problem (on the other post) the strange new field.  
I think someone need to investigate.

So the “hot relaoad” work fine, only for the good entry.  
But asking cluster trigger the bad one.

> It’s even keeping trace of the cluster 0x0402 that is no more in the DDF !!

Yeah its for that I think there is perhaps something bad in your datatabase. You are sure you don’t have a “bad DDF” mix ?

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [October 18, 2022, 1:17am UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/8 "2022-10-18T01:17:35Z")

</div>

> [@Smanar](#):
>
> Yeah its for that I think there is perhaps something bad in your datatabase. You are sure you don’t have a “bad DDF” mix ?

What do you mean by a “bad DDF mix” ? I only have one DDF for that thermostat SMT402AD.  
I tried to delete that thermostat in Deconz-GUI and it crashed. After restarting the -ff endpoints had disapeared … seemed to be good but after rejoining the thermostat and renaming it (I changed it from room) Deconz crashed again and the old thermostat, with the old name came again as a ghost … with the weird endpoints !

Each attempt to rename it crash Deconz, not immediately but after a while … May be during the automatic modification of outside temperature with a script. Stopped it and wait to be sure.

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [October 18, 2022, 11:02am UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/9 "2022-10-18T11:02:17Z")

</div>

Well, Deconz sporadic crashes was due to attempts to write a config attributes by script on a no more existent sensor … corrected, then system seems to be stable for last night.

But l’m still not able to exoplain the re-appearence of the -FF endpoints. Will try again later to delete thermostat and rejoining it …

---

<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 18, 2022, 3:00pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/10 "2022-10-18T15:00:23Z")

</div>

> [@BabaIsYou](#):
>
> Well, Deconz sporadic crashes was due to attempts to write a config attributes by script on a no more existent sensor

I can reproduce that on my side ?

---

<div class="post-metadata">

**Author:** ![Swoop](https://forum.phoscon.de/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@Swoop](https://forum.phoscon.de/u/Swoop)\
**Post date:** [October 18, 2022, 8:04pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/11 "2022-10-18T20:04:39Z")

</div>

I’d be interested to catch those crashes with a backtrace. Is that easily reproducable?

You can run it with a debugger like described here: [v2.11.0-beta in docker - after mi button click "Segmentation fault (core dumped)" · Issue #4766 · dresden-elektronik/deconz-rest-plugin · GitHub](https://github.com/dresden-elektronik/deconz-rest-plugin/issues/4766#issuecomment-819403966)

When the crash occurred, the command `bt` will give you the juicy parts…

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [October 20, 2022, 3:05pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/12 "2022-10-20T15:05:21Z")

</div>

> [@Swoop](#):
>
> I’d be interested to catch those crashes with a backtrace. Is that easily reproducable?

> [@Smanar](#):
>
> I can reproduce that on my side ?

Yes it can be reproductable, on my side when sending such a command

```auto
curl -H 'Content-Type: application/json' -X PUT -d '{"externalsensortemp": 509}' http://127.0.0.1/api/XXXXXXXXXX/sensors/18/config

```

Whrere XXXXXXXXXX is my API key and that the sensor idx (18 in this example) is a non existing sensor (I delete and rejoin a SMT0402AD thermostat recently trying to solve this -ff endpoint issue) then Deconz-GUI seems crashing.

Example when using existant sensor idx (18) and just after non existent sensor idx (37) :

```auto
pi@domoticz:/tmp/log $ curl -H 'Content-Type: application/json' -X PUT -d '{"externalsensortemp": 509}' http://127.0.0.1/api/XXXXXXXXXX/sensors/18/config
[{"success":{"/sensors/18/config/externalsensortemp":509}}]
pi@domoticz:/tmp/log $ curl -H 'Content-Type: application/json' -X PUT -d '{"externalsensortemp": 509}' http://127.0.0.1/api/XXXXXXXXXX/sensors/37/config
curl: (52) Empty reply from server

```

and crash & restart of Deconz-GUI

Version 2.15.03 21/04/2022  
Firmware 26720700

I know it’s quite an “old” version but until I had to change I’ll keep it because of PR #6011 still not integrated (don’t want to recompile at each version change).

---

<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 20, 2022, 3:33pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/13 "2022-10-20T15:33:07Z")

</div>

Lol right  
I can confirm it on the version I had, nice crash ^^  
But I have installed the last beta version and now I have

```auto
[
  {
    "error": {
      "address": "/sensors/99",
      "description": "resource, /sensors/99, not available",
      "type": 3
    }
  }
]

```

So I think it’s corrected now

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [February 14, 2023, 1:20am UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/14 "2023-02-14T01:20:32Z")

</div>

-FF Endpoint is back again. Trying to play with a recently received [device](https://github.com/dresden-elektronik/deconz-rest-plugin/issues/6742) and was surprise that I didn’t get the same result using REST-API or Domoticz-plugin :  
REST-API via CURL `curl -X GET -i 'http://192.168.2.xxx/api/xxxxxxxxxx/sensors/83'` or PHOSCON gives me :

```auto
{
  "config": {
    "duration": 0,
    "on": true,
    "reachable": true
  },
  "etag": "3221c57d699f88a48a063d3f54b36e4c",
  "lastannounced": null,
  "lastseen": "2023-02-14T00:46Z",
  "manufacturername": "_TZE200_v6ossqfy",
  "modelid": "TS0601",
  "name": "Presence 83",
  "state": {
    "lastupdated": "2023-02-11T03:08:21.700",
    "presence": false
  },
  "swversion": "1.0.6",
  "type": "ZHAPresence",
  "uniqueid": "a4:c1:38:6c:b8:00:b3:88-ff-ef00"

```

and via Domoticz-Plugin :

 ![image](https://forum.phoscon.de/uploads/default/original/2X/a/a4e5291e1e592fe0c35dec9db5b23c68394faab7.png)  
As you can see the attributes are not the same, nor the values … and the EP is good in Domoticz but not in Phoscon/curl. All the attriubutes from Domoticz are compliant with the DDF. All from curl or Phoscon are not.

I looked in every tables in zll.db and didn’t find any trace of the -FF endpoint, just informations with the correct -01 endpoint.

 ![image](https://forum.phoscon.de/uploads/default/original/2X/6/6d352d501f0e829ff202c1a2033ed8aadd8b68c6.png)

It can’t be due to an old version like we thought initially :  
 ![image](https://forum.phoscon.de/uploads/default/original/2X/a/a2f12b6f652948870fa4415f6a34d36651077615.png)

How can we have to way of getting these different informations if both use REST-API ? May be @Smanar could give a light on this because he developped the Domoticz plugin ?

---

<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 14, 2023, 5:23pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/15 "2023-02-14T17:23:55Z")

</div>

Lol, WTF ?  
But domoticz and phoscon are using the same API, it’s not possible, it’s not because the api was updated at a moment and 1 request was done before and the second one after ?

And the last updated is not the same, this one with FF is 2 days before.

When you use the Domoticz frontend, the plugin make a GET on `http://192.168.2.xxx/api/xxxxxxxxxx/sensors/` to get the complete sensor list

So you have perhaps a difference if you make a GET on  
`http://192.168.2.xxx/api/xxxxxxxxxx/sensors/` and searching the id 83 or making a GET on `http://192.168.2.xxx/api/xxxxxxxxxx/sensors/83`

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [February 15, 2023, 12:19am UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/16 "2023-02-15T00:19:01Z")

</div>

You get it

```auto
curl -X GET -i 'http://192.168.2.146/api/xxxxxxxxxx/sensors/83'
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Content-Length: 377
ETag:"239e0ce3c3ceb46f1966c47c18135af1"

{"config":{"duration":0,"on":true,"reachable":true},"etag":"239e0ce3c3ceb46f1966c47c18135af1","lastannounced":null,"lastseen":"2023-02-14T10:45Z","manufacturername":"_TZE200_v6ossqfy","modelid":"TS0601","name":"Presence 83","state":{"lastupdated":"2023-02-11T03:08:21.700","presence":false},"swversion":"1.0.6","type":"ZHAPresence","uniqueid":"a4:c1:38:6c:b8:00:b3:88-ff-ef00"}

```

and

```auto
curl -X GET -i 'http://192.168.2.146/api/xxxxxxxxxx/sensors'
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Content-Length: 20742
ETag:"d98528aceb1b1f55178a24086d2aca1b"

{"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset"
...
83":{"config":{"delay":0,"duration":0,"ledindication":true,"on":true,"reachable":true,"triggerdistance":null},"etag":"e4dff639c664c03bc9eb66e43c344d87","lastannounced":null,"lastseen":"2023-02-14T10:45Z","manufacturername":"_TZE200_v6ossqfy","modelid":"TS0601","name":"Presence 83","state":{"lastupdated":"2023-02-14T10:45:36.363","presence":true},"swversion":"1.0.6","type":"ZHAPresence","uniqueid":"a4:c1:38:6c:b8:00:b3:88-01-ef00"}}

```

---

<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 15, 2023, 4:34pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/17 "2023-02-15T16:34:35Z")

</div>

Terrible ^^.

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [February 15, 2023, 7:03pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/18 "2023-02-15T19:03:05Z")

</div>

I deleted device one more time to get a DDF to work (I hope so!) then all is correct … but mystery is still unsolved and demonstration is done that some « ghost » -ff endpoint can still appears.

---

<div class="post-metadata">

**Author:** ![BabaIsYou](https://forum.phoscon.de/user_avatar/forum.phoscon.de/babaisyou/32/3079_2.png) [@BabaIsYou](https://forum.phoscon.de/u/BabaIsYou)\
**Post date:** [February 17, 2023, 2:16pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/19 "2023-02-17T14:16:19Z")

</div>

Another example today after restarting Deconz :  
Via REST-API on sensor 76 directly (`GET http://127.0.0.1/api/xxxxxxxxxx/sensors/76`)

```auto
{
"config": {
"heatsetpoint": 1800,
"offset": 0,
"on": true,
"reachable": true,
"schedule": {},
"schedule_on": false
},
"etag": "81acaacc493410f4f620c6da95488efd",
"lastannounced": null,
"lastseen": "2023-02-17T14:04Z",
"manufacturername": "Stelpro",
"modelid": "0x534d5434303241440000000000301800203944000803000000dd590008ffff",
"name": "Thermostat SdD",
"state": {
"lastupdated": "2023-02-17T02:47:39.656",
"on": false,
"temperature": 2100
},
"swversion": "20000000 00000",
"type": "ZHAThermostat",
"uniqueid": "f8:f0:05:ff:ff:70:7e:95-ff-0201"
}

```

And with collecting for all sensors (`GET http://127.0.0.1/api/xxxxxxxxxx/sensors/`)

```auto
{
1: {
"config": {
"configured": true,
"on": true,
"sunriseoffset": 30,
"sunsetoffset": -30
},
"etag": "331c45cd19417e41d431c6ff66540016",
"manufacturername": "Philips",
"modelid": "PHDL00",
"name": "Daylight",
[...]
76: {
"config": {
"externalsensortemp": 30,
"heatsetpoint": 1800,
"mode": null,
"offset": 0,
"on": true,
"reachable": true
},
"etag": null,
"lastannounced": null,
"lastseen": "2023-02-17T14:07Z",
"manufacturername": "Stelpro",
"modelid": "0x534d5434303241440000000000301800203944000803000000dd590008ffff",
"name": "Thermostat SdD",
"state": {
"lastupdated": "2023-02-17T14:06:06.052",
"on": null,
"temperature": 1800,
"valve": 0
},
"type": "ZHAThermostat",
"uniqueid": "f8:f0:05:ff:ff:70:7e:95-19-0201"
},

```

What I did : Restart of DeConz (by mistake, closing the GUI). After restart I saw that the thermostat did not get the DDF loaded (one more time for a incorrect modelid) Changed it in DDF, save, hot reload. Seems fine but this morning saw that external temperature was not displayed. Looking in DeCONZ UI, DFF seems fine with externalsensortemp listed in attributes. But my script that updates the value usiong REST\_API got an error …

And this -FF endpoint sensor does not exist in zll.db  
 ![image](https://forum.phoscon.de/uploads/default/original/2X/0/091ce36b7b14087577d70f91e81433beeb0f7daa.png)

---

<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 17, 2023, 5:31pm UTC](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605/20 "2023-02-17T17:31:49Z")

</div>

I have some issue too with users that have already included a device with legacy code, and try to include it again using DDF, without deleting the old one.  
No problem if they delete first the device created with legacy code.

[Next page](https://forum.phoscon.de/t/after-ddf-modification-got-duplicate-clusters-with-0xff-endpoint/2605.md?page=2)
