Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonoff SNZB-04P #7857

Closed
1 task done
Wuehli opened this issue Jul 27, 2024 · 9 comments · Fixed by #8002
Closed
1 task done

Sonoff SNZB-04P #7857

Wuehli opened this issue Jul 27, 2024 · 9 comments · Fixed by #8002

Comments

@Wuehli
Copy link

Wuehli commented Jul 27, 2024

Is there already an existing issue for this?

  • 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

Copy link
Contributor

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 github-actions bot added the stale label Aug 18, 2024
@1Rolf
Copy link

1Rolf commented Aug 20, 2024

Any updates here? Did i miss something?

@github-actions github-actions bot removed the stale label Aug 21, 2024
@dab0u
Copy link

dab0u commented Sep 8, 2024

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

@Mimiix
Copy link
Collaborator

Mimiix commented Sep 8, 2024

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

@Smanar
Copy link
Collaborator

Smanar commented Sep 16, 2024

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

Copy link
Contributor

github-actions bot commented Oct 8, 2024

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 github-actions bot added the stale label Oct 8, 2024
Copy link
Contributor

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.

@JasonMask
Copy link

Hi,

as you can see from my screenshots in #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

@Smanar
Copy link
Collaborator

Smanar commented Oct 28, 2024

for sure it help, and thx for it
Added here > #8002

@Smanar Smanar linked a pull request Oct 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants