zha-device-handlers icon indicating copy to clipboard operation
zha-device-handlers copied to clipboard

[BUG] “Opening” sensor on ZBMINIR2 always shows closed?

Open bigon opened this issue 6 months ago • 1 comments

Bug description

Hello

I've a Sonoff ZBMINIR2 and the “Opening” sensors is always "closed"

The control of the contact itself works and the switch in HA shows the current state

Steps to reproduce

  1. Go to the device page of ZBMINIR2
  2. See that there is a sensor and that its state is always "closed"

Expected behavior

Not clear what should be the value here, should it be the value of the contact or the value of the connected switch?

Screenshots/Video

Screenshots/Video

[Paste/upload your media here]

Diagnostics information

zha-01K045HAXZXBABT29RBS16RWXC-SONOFF ZBMINIR2-50fcb125c98cf2d59b4a524d0aa174f6.json

Device signature

Device signature
{
  "node_descriptor": {
    "logical_type": 1,
    "complex_descriptor_available": 0,
    "user_descriptor_available": 0,
    "reserved": 0,
    "aps_flags": 0,
    "frequency_band": 8,
    "mac_capability_flags": 142,
    "manufacturer_code": 4742,
    "maximum_buffer_size": 82,
    "maximum_incoming_transfer_size": 255,
    "server_mask": 11264,
    "maximum_outgoing_transfer_size": 255,
    "descriptor_capability_field": 0
  },
  "endpoints": {
    "1": {
      "profile_id": "0x0104",
      "device_type": "0x0002",
      "input_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0006",
        "0x0b05",
        "0xfc11",
        "0xfc57"
      ],
      "output_clusters": [
        "0x0003",
        "0x0006",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": "0xa1e0",
      "device_type": "0x0061",
      "input_clusters": [],
      "output_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "SONOFF",
  "model": "ZBMINIR2",
  "class": "zigpy.quirks.v2.CustomDeviceV2"
}

Logs

Logs

[Paste the logs here]

Additional information

No response

bigon avatar Oct 02 '25 20:10 bigon

I can add a little more context to this. When you close or open the connection between S1 and S2 on the SBMINIR2 or apply/remove live current to S2 then the "open" event is fired and immediately followed by a "closed" event. This is irrespective of which external trigger mode you are in or whether you are in detach relay mode or not. (The only exception is Pulse mode which does not fire when you remove the connection/remove the live current from S2).

Image

flytzen avatar Dec 07 '25 11:12 flytzen