Skip to content

Add "Door/window contact II [+M]" support#48

Open
Mary-Usagi wants to merge 1 commit intotschamm:masterfrom
Mary-Usagi:master
Open

Add "Door/window contact II [+M]" support#48
Mary-Usagi wants to merge 1 commit intotschamm:masterfrom
Mary-Usagi:master

Conversation

@Mary-Usagi
Copy link
Copy Markdown

@Mary-Usagi Mary-Usagi commented Jan 27, 2025

The Rawscan for the Window Contact 2 [+M] resulted in the following output:

[
  {
    "@type": "device",
    "rootDeviceId": "<rootDeviceId>",
    "id": "hdm:ZigBee:b43a31fffe14993d",
    "deviceServiceIds": [
      "CommunicationQuality",
      "ShutterContact",
      "BatteryLevel",
      "Bypass"
    ],
    "manufacturer": "BOSCH",
    "roomId": "hz_1",
    "deviceModel": "SWD2_DUAL",
    "serial": "B43A31FFFE14993D",
    "profile": "REGULAR_WINDOW",
    "iconId": "icon_tfk_terrace_door",
    "name": "Window contact II [+M]",
    "status": "AVAILABLE",
    "childDeviceIds": [],
    "supportedProfiles": [],
    "installationTimestamp": 1737826985404
  },
  {
    "@type": "DeviceServiceData",
    "id": "Bypass",
    "deviceId": "hdm:ZigBee:b43a31fffe14993d",
    "state": {
      "@type": "bypassState",
      "state": "BYPASS_INACTIVE",
      "configuration": { "enabled": false, "timeout": 5, "infinite": false }
    },
    "path": "/devices/hdm:ZigBee:b43a31fffe14993d/services/Bypass"
  },
  {
    "@type": "DeviceServiceData",
    "id": "ShutterContact",
    "deviceId": "hdm:ZigBee:b43a31fffe14993d",
    "state": { "@type": "shutterContactState", "value": "CLOSED" },
    "path": "/devices/hdm:ZigBee:b43a31fffe14993d/services/ShutterContact"
  },
  {
    "@type": "DeviceServiceData",
    "id": "BatteryLevel",
    "deviceId": "hdm:ZigBee:b43a31fffe14993d",
    "path": "/devices/hdm:ZigBee:b43a31fffe14993d/services/BatteryLevel"
  },
  {
    "@type": "DeviceServiceData",
    "id": "CommunicationQuality",
    "deviceId": "hdm:ZigBee:b43a31fffe14993d",
    "state": { "@type": "communicationQualityState", "quality": "GOOD" },
    "path": "/devices/hdm:ZigBee:b43a31fffe14993d/services/CommunicationQuality"
  }
]

It seems to have the same functionalities as ShutterContact2, so I simply added it to the supported models, which worked in my local tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant