deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

Sonoff SNZB-04P

Open Wuehli opened this issue 1 year ago • 2 comments

Is there already an existing issue for this?

  • [X] I have searched the existing issues and there is none for my device

Product name

SNZB-04P

Manufacturer

Sonoff

Model identifier

SNZB-04P

Device type to add

Sensor

Node info

grafik

Endpoints and clusters

grafik

Basic

grafik grafik

Further relevant clusters

Power Configuration

grafik

On/Off

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

grafik

grafik

grafik grafik

Wuehli avatar Jul 27 '24 09:07 Wuehli

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Aug 18 '24 01:08 github-actions[bot]

Any updates here? Did i miss something?

1Rolf avatar Aug 20 '24 11:08 1Rolf

I can't include this device with my conbee 3 neither. Can I do something to help ?

dab0u avatar Sep 08 '24 17:09 dab0u

@Smanar perhaps you can help after your holiday :)?

Mimiix avatar Sep 08 '24 17:09 Mimiix

Hello can try this DDF

{
  "schema": "devcap1.schema.json",
  "uuid": "cd25fbd8-9b9b-4051-9c01-1c08a9d65203",
  "manufacturername": ["eWeLink", "zbeacon", "eWeLink"],
  "modelid": ["DS01", "DS01", "SNZB-04P"],
  "vendor": "eWeLink",
  "product": "Open/close sensor (DS01)",
  "sleeper": true,
  "status": "Gold",
  "subdevices": [
    {
      "type": "$TYPE_OPEN_CLOSE_SENSOR",
      "restapi": "/sensors",
      "uuid": [
        "$address.ext",
        "0x01",
        "0x0500"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0402",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0001",
          "0x0500"
        ]
      },
      "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
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "config/battery",
          "awake": true,
          "parse": {
            "at": "0x0021",
            "cl": "0x0001",
            "ep": 1,
            "eval": "Item.val = Attr.val / 2;",
            "fn": "zcl:attr"
          },
          "read": {
            "fn": "none"
          }
        },
        {
          "name": "config/checkin"
        },
        {
          "name": "config/enrolled"
        },
        {
          "name": "config/on"
        },
        {
          "name": "config/pending"
        },
        {
          "name": "config/reachable"
        },
        {
          "name": "state/lastupdated"
        },
        {
          "name": "state/lowbattery",
          "awake": true
        },
        {
          "name": "state/open",
          "awake": true
        }
      ]
    }
  ],
  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0001",
      "report": [
        {
          "at": "0x0021",
          "dt": "0x20",
          "min": 3600,
          "max": 7200,
          "change": "0x00000002"
        }
      ]
    },
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0500"
    }
  ]
}

It's just an optimisation of this one https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/sonoff/snzb-04_open_close_sensor.json

Smanar avatar Sep 16 '24 13:09 Smanar

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

github-actions[bot] avatar Oct 08 '24 02:10 github-actions[bot]

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

github-actions[bot] avatar Oct 15 '24 02:10 github-actions[bot]

Hi,

as you can see from my screenshots in https://github.com/dresden-elektronik/deconz-rest-plugin/issues/7995 the "Model Identifier" of my device is "SNZB-04" (with out the P given for this device)

once I added that to the manufacturername/modelid lines the device could be found in the phoscon app: "manufacturername": ["eWeLink", "zbeacon", "eWeLink", "eWeLink"], "modelid": ["DS01", "DS01", "SNZB-04P", "SNZB-04"],

I hope this helps

Best regards

JasonMask avatar Oct 27 '24 23:10 JasonMask

for sure it help, and thx for it Added here > https://github.com/dresden-elektronik/deconz-rest-plugin/pull/8002

Smanar avatar Oct 28 '24 16:10 Smanar