dresden-elektronik / deconz-rest-plugin

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

icasa Zigbee Dimmer Pro ICZB-IW21D #7811

Open ebaauw opened 3 weeks ago

ebaauw commented 3 weeks ago

Is there already an existing issue for this?

Product name

icasa Zigbee Dimmer Pro

Manufacturer

icasa

Model identifier

ICZB-IW21D

Device type to add

Switch

Node info

Screenshot 2024-06-09 at 22 36 22

Endpoints and clusters

Screenshot 2024-06-09 at 22 37 42

Basic

Screenshot 2024-06-09 at 22 38 14

Further relevant clusters

On/Off

Screenshot 2024-06-09 at 22 39 28

Level Control

Screenshot 2024-06-09 at 22 39 57

Simple Metering

Screenshot 2024-06-09 at 22 40 43

Electrical Measurement

Screenshot 2024-06-09 at 22 41 48

OTAU

Manufacturer: 0x1224 Image Type: 0x012C Version: 0x0000003A

ebaauw commented 3 weeks ago

Received some new devices from my friends at icasa.

The ICZB-IW21D looks like your regular Sunricher-OEM in-wall dimmer , with light blue housing. I'm told it's the successor of the ICZB-IW11D, now with power and consumption measurement.

Also received a Zigbee On/Off Switch Pro, ICZB-IW21SW. You guessed it: the successor of the ICZB-IW11SW, again with consumption and power measurement. Note to self: still need to add the DDF for that old switch as well.

Preto commented 2 weeks ago

Hi @ebaauw, might this just be the same device as #7190 from Robbshop (rebranded Sunricher)? These also have consumption and power measurement.

I couldn't get a DDF to work myself, without lights flickering or other weirdness :smile:. Screenshots are in the mentioned issue and look almost the same to me. I have a few different SW Build's installed of the mentioned device.

If its the same device, can you make it compatible so I can use your freshly generated DDF as well?

ebaauw commented 2 weeks ago

Could very well be. Note however the differenced in firmware version (r54 vs r58), so there might be subtle changes between the various OEM clones.

You can always copy the DDF, change the manufacturer and model, and try it on the Robbshop dimmer.

ebaauw commented 6 days ago

Just like the ICZB-IW11D, the device supports commands Trigger Effect, Off with Effect, Move to Level (with On/Off) and attributes Execute If Off, On/Off Transition Time, On Level, and PowerOn OnOff as well as .PowerOn Level_. OnOff and Current Level are reportable.

The consumption multiplier/divisor values are reported correctly:

Oddly, when the device is off, it reports 1.3V and 17mA. For now, I'll be passing those values to the API, but I'm not sure if that's the best choice.

This should lead to the following resources:

{
  "capabilities": {
    "alerts": [
      "none",
      "select",
      "lselect",
      "blink",
      "breathe",
      "okay",
      "channelchange",
      "finish",
      "stop"
    ]
  },
  "config": {
    "bri": {
      "execute_if_off": true,
      "on_level": "previous",
      "onoff_transitiontime": 4,
      "startup": "previous"
    },
    "groups": [
      "0"
    ],
    "on": {
      "startup": "previous"
    }
  },
  "etag": "1b6de7f5941db7c2aa1ca6d4f91774df",
  "hascolor": false,
  "lastannounced": null,
  "lastseen": "2024-06-29T18:28Z",
  "manufacturername": "icasa",
  "modelid": "ICZB-IW21D",
  "name": "Dimmable light 3",
  "state": {
    "alert": "none",
    "bri": 50,
    "on": true,
    "reachable": true
  },
  "swversion": "2.9.2_r58",
  "type": "Dimmable light",
  "uniqueid": "18:7a:3e:ff:fe:f7:41:40-01"
}
{
  "config": {
    "on": true,
    "reachable": true
  },
  "etag": "9def077abcdacd5251579ee30c3bcadc",
  "lastannounced": null,
  "lastseen": "2024-06-29T18:33Z",
  "manufacturername": "icasa",
  "modelid": "ICZB-IW21D",
  "name": "Consumption 308",
  "state": {
    "consumption": 478,
    "lastupdated": "2024-06-29T18:29:57.550"
  },
  "swversion": "2.9.2_r58",
  "type": "ZHAConsumption",
  "uniqueid": "18:7a:3e:ff:fe:f7:41:40-01-0702"
}
{
  "config": {
    "on": true,
    "reachable": true
  },
  "etag": "b68dedc7d01c3fe82a7d59c5413e8702",
  "lastannounced": null,
  "lastseen": "2024-06-29T18:34Z",
  "manufacturername": "icasa",
  "modelid": "ICZB-IW21D",
  "name": "Power 310",
  "state": {
    "current": 89,
    "lastupdated": "2024-06-29T18:34:58.193",
    "power": 4,
    "voltage": 53
  },
  "swversion": "2.9.2_r58",
  "type": "ZHAPower",
  "uniqueid": "18:7a:3e:ff:fe:f7:41:40-01-0b04"
}