New SONOF Temperatur Sensor SNBZ-02LD

I bought a new Sonoff Temperatur Sensor
Type SNBZ-02LD
It is a IP65 Temperatur Sensor with a one meter long Sensor Cable.
I´m using it as Pool Sensor

I added it to the deconz-rest-plugin/devices/sonoff/snzb-02-multisensor.json at master · dresden-elektronik/deconz-rest-plugin · GitHub file

{
  "schema": "devcap1.schema.json",
  "uuid": "52815a37-6180-4ab8-83ef-021d75496a7b",
  "manufacturername": [
    "eWeLink",
    "SONOFF",
    "SONOFF",
    "eWeLink",
    "SONOFF"
  ],
  "modelid": [
    "TH01",
    "SNZB-02D",
    "SNZB-02P",
    "SNZB-02P",
    "SNZB-02LD"
  ],

This works for me, but this Sensor has no Humidity Sensor.
Is this the right way or schould there be an extra file without humidity

Hello, yes better to make a new DDF, else we will have users saying there is a not working sensor on this device.

I tried to copy the multisensor file do a new file caled snzb-02ld.json and deleted the humidity sensor section.
I also removed the modelid and manufacturername form the mulisensor file.
After restart deconz and removing it from the phoscon app the sensor was not found any more.
Did I something wrong?

Yep probably a typo in the new DDF.

also removed the modelid and manufacturername form the mulisensor file

The sensor is not reconised so this part is fine.

You can try your DDF in this site https://jsonlint.com/
You have put the new DDF in the same folder ?

I updated to openhab 5 today and I added the new json file to the deconz dir.
I works as expected.
How could I add this to the repository.
snzb-02LD.json

{
  "schema": "devcap1.schema.json",
  "uuid": "52815a37-6180-4ab8-83ef-021d75496a7b",
  "manufacturername": [
    "SONOFF"
  ],
  "modelid": [
    "SNZB-02LD"
  ],
  "vendor": "Sonoff",
  "product": "Temperature And Humidity Sensor (SNZB-02)",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_TEMPERATURE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0402"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0302",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0001",
          "0x0402"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion",
          "refresh.interval": 86400,
          "read": {
            "at": "0x0006",
            "cl": "0x0000",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0006",
            "cl": "0x0000",
            "ep": 1,
            "eval": "Item.val = Attr.val",
            "fn": "zcl:attr"
          }
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "refresh.interval": 7265,
          "read": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "fn": "zcl:attr"
          },
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val / 2"
          },
          "default": 0
        },
        {
          "name": "config/offset",
          "default": 0
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/temperature",
          "awake": true,
          "default": 0
        }
      ]
    }
  ],  
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 3600,
          "max": 7200,
          "change": "0x00000002"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "dst.ep": 1,
      "cl": "0x0405",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x21",
          "min": 60,
          "max": 600,
          "change": "0x00000064"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0402",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x29",
          "min": 60,
          "max": 600,
          "change": "0x0000001E"
        }
      ]
    }
  ]
}

You can make a PR if you have a github account.
Just try to create a new file in this folder deconz-rest-plugin/devices/sonoff at master · dresden-elektronik/deconz-rest-plugin · GitHub

You will have an error message saying you haven’t right, it will create a fork on your account and start to make the PR
Rollback is possible, you can’t break something and can retry/edit the file later.

Else I can make it myself.

Just remove this line

"uuid": "52815a37-6180-4ab8-83ef-021d75496a7b",

This line will be added by the site itself.

I tried.
I hope I did it the right way.

Yep, the PR was fine, there was probably errors, I have only see the not removed old binding, but it’s possible to correct a PR, not a big problem for a PR, don’t worry for that.

But sorry for this time, another user was on the same DDF than you.