dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.89k stars 498 forks source link

Sonoff SNZB-02P Temperature and Humidity sensor #7881

Closed danieldemus closed 6 days ago

danieldemus commented 1 month ago

Is there already an existing issue for this?

Product name

SNZB-02P Zigbee Temperature and Humidity Sensor

Manufacturer

Sonoff/eWeLink

Model identifier

SNZB-02P

Device type to add

Sensor

Node info

SNZB-02P nodeinfo

Endpoints and clusters

SNZB-02P clusters

Basic

SNZB-02P basic cluster

Further relevant clusters

Power Configuration

SNZB-02P power configuration cluster

On/Off

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

Poll control

SNZB-02P poll control cluster

Temperature measurement

SNZB-02P temperature measurement cluster

Relative humidity measurement

SNZB-02P relative humidity measurement cluster

OTAU

SNZB-02P OTAU cluster 1 SNZB-02P OTAU cluster 2

Sonoff specific

SNZB-02P sonoff specific cluster

Mimiix commented 1 month ago

@SwoopX looks like they use a new manufacturer name? This was added before afaik in 2.25.0

Smanar commented 1 month ago

Ha yes right, there is a DDF but can be optimised > https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/sonoff/snzb-02-multisensor.json

Can you try editing the file to have

  "manufacturername": ["eWeLink","SONOFF","SONOFF", "eWeLink"],
  "modelid": ["TH01","SNZB-02D","SNZB-02P", "SNZB-02P"],
SwoopX commented 1 month ago

@SwoopX looks like they use a new manufacturer name? This was added before afaik in 2.25.0

Yeah. What I dislike looking at Smanar's referenced DDF is that the old and new model of the sensor are getting mixed together, although content-wise, they might be the same. Would prefer to have that seperated in the future, but it can easily be detangled.

danieldemus commented 1 month ago

The manufacturername string is the same as the old SNZB-02: eWeLink. I don't know if that's mapped from some enum. The main differences between the old and new SNZB-02 (aka TH01) and the SNZB-02P are the OTAU, Poll control and Sonoff specific clusters, which is quite a lot, so mashing it together with the old sensors DDF seems optimistic. I am not aware of any light sensor in a temperature and humidity sensor, but YMMV...

github-actions[bot] commented 1 week ago

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] commented 6 days ago

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.