Added support for open/close sensor. Tested with SONOFF SNZB-04.
The Home Smart detected the device but it doesn't allow me to connect any of my devices (just lights) to it. However, I can get notifications of "deviceStateChanged, like this one:
it is just basically issuing isOpen changes. Thus, I can control whatever lights I want with my raspberry pi running my "man in the middle" software :)
Here is a dump from the device after being added to the Dirigera hub (as an Ikea motion sensor):
Added support for open/close sensor. Tested with SONOFF SNZB-04.
The Home Smart detected the device but it doesn't allow me to connect any of my devices (just lights) to it. However, I can get notifications of "deviceStateChanged, like this one:
{'id': '8ac676e8-4e40-4be5-9d6b-b497afa63117', 'time': '2023-05-05T19:13:37.000Z', 'specversion': '3.123.0', 'source': 'urn:com:ikea:homesmart:iotc:zigbee', 'type': 'deviceStateChanged', 'data': {'id': '19c7a1b9-cb7e-4fb4-a55f-0962d57ac415_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2023-05-05T17:25:13.000Z', 'isReachable': True, 'lastSeen': '2023-05-05T19:13:37.000Z', 'attributes': {'isOpen': False}, 'remoteLinks': []}}
it is just basically issuing isOpen changes. Thus, I can control whatever lights I want with my raspberry pi running my "man in the middle" software :)
Here is a dump from the device after being added to the Dirigera hub (as an Ikea motion sensor):