sanjoyg / dirigera_platform

HomeAssistant Integration for Dirigera Platform
MIT License
71 stars 8 forks source link

New devices: door sensor (PARASOLL) & Water Leak sensor (BADRING) #55

Closed KevChief closed 2 weeks ago

KevChief commented 2 weeks ago

I have this integration in my HA, but the door sensor and water leak sensor aren't yet supported. I have one of each in my home for testing; they work perfectly with the IKEA app at the moment.

Is there a possibility to also add these devices as supported?

The JSON Dump for my set-up with one PARASOLL (door sensor) and one BADRING (water leak sensor): You'll also see some SONOS devices, since IKEA also recognizes those on the network.

2024-06-10 14:46:14.094 INFO (SyncWorker_0) [custom_components.dirigera_platform] === START Devices JSON === 2024-06-10 14:46:14.095 INFO (SyncWorker_0) [custom_components.dirigera_platform] -------------- 2024-06-10 14:46:14.334 INFO (SyncWorker_0) [custom_components.dirigera_platform] [{'id': '62e3f89c-ef0f-4ded-ad77-cd53cd75311e_1', 'type': 'speaker', 'deviceType': 'speaker', 'createdAt': '2024-06-10T07:57:43.020Z', 'isReachable': True, 'lastSeen': '2024-06-10T07:57:43.020Z', 'attributes': {'customName': 'Bathroom', 'model': 'Sonos One SL S22 ColorBlack', 'manufacturer': 'Sonos, Inc.', 'firmwareVersion': '79.1-53290', 'hardwareVersion': '1.28.1.6-2.2', 'serialNumber': '5C-AA-XX-XX-XX-XX:X', 'productCode': 'S22Black', 'identifyStarted': '2024-06-10T07:57:43.020Z', 'identifyPeriod': 0, 'playback': 'playbackIdle', 'playbackLastChangedTimestamp': '2024-06-10T07:57:43.020Z', 'playbackAudio': {'serviceType': 'sonos', 'providerType': 'Sonos Radio', 'playlist': {'id': 'eyJhY2NvdW50VHlwZSI6InNvbm9zIiwiY29udXXXXXXXX=', 'title': 'VRT MNM Hits'}}, 'playbackPosition': {'position': 0, 'timestamp': '2024-06-10T07:57:41.865Z'}, 'playbackAvailableActions': {'crossfade': False, 'pause': False, 'repeat': ['off'], 'seek': False, 'shuffle': False, 'playbackNext': False, 'playbackPrev': False}, 'playbackModes': {'crossfade': False, 'repeat': 'off', 'shuffle': False}, 'volume': 11, 'isMuted': False, 'audioGroup': 'c258e09d-191d-4e95-bbb6-bXXXXXX'}, 'capabilities': {'canSend': [], 'canReceive': ['playback', 'playbackAudio', 'volume', 'isMuted']}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': True}, {'id': 'b2de7d11-XXXXX', 'relationId': 'b2de7XXXXX', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2024-03-08T06:47:19.288Z', 'isReachable': True, 'lastSeen': '2024-06-10T12:46:00.028Z', 'attributes': {'customName': 'FM Home', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.588.0', 'hardwareVersion': 'P2.5', 'serialNumber': 'b2de7d11-adc4-4f6d-XXXXXX', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoDownload', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'permittingJoin': False, 'backendConnected': True, 'backendConnectionPersistent': True, 'backendOnboardingComplete': True, 'backendRegion': 'eu-central-1', 'backendCountryCode': 'BE', 'userConsents': [{'name': 'analytics', 'value': 'enabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/Brussels', 'nextSunSet': '2024-06-10T19:57:00.000Z', 'nextSunRise': '2024-06-11T03:26:00.000Z', 'homestate': 'home', 'countryCode': 'XZ', 'coordinates': {'latitude': XX.XXXX, 'longitude': X.XXXX, 'accuracy': -1}, 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': '328e1a59-4fa8-404d-82ba-cXXXXX', 'type': 'speaker', 'deviceType': 'speaker', 'createdAt': '2024-06-10T07:57:42.531Z', 'isReachable': True, 'lastSeen': '2024-06-10T12:45:57.931Z', 'attributes': {'customName': 'Living Room', 'model': 'Sonos One S18 ColorBlack', 'manufacturer': 'Sonos, Inc.', 'firmwareVersion': '79.1-53290', 'hardwareVersion': '1.26.1.7-2.2', 'serialNumber': '48-A6-B8-XXXX', 'productCode': 'S18Black', 'identifyStarted': '2024-06-10T07:57:42.531Z', 'identifyPeriod': 0, 'playback': 'playbackPlaying', 'playbackLastChangedTimestamp': '2024-06-10T10:48:21.544Z', 'playbackAudio': {'serviceType': 'sonos', 'providerType': 'Sonos Radio', 'playlist': {'id': 'eyJhY2NvdW50VHlwZSI6InNvbm9zIiwiY29udXXXXXX', 'title': 'VRT MNM Hits'}}, 'playbackPosition': {'position': 0, 'timestamp': '2024-06-10T12:45:57.926Z'}, 'playbackAvailableActions': {'crossfade': False, 'pause': False, 'repeat': ['off'], 'seek': False, 'shuffle': False, 'playbackNext': False, 'playbackPrev': False}, 'playbackModes': {'crossfade': False, 'repeat': 'off', 'shuffle': False}, 'volume': 11, 'isMuted': False, 'audioGroup': '48892eea-4573-41d1-b9XXXX'}, 'capabilities': {'canSend': [], 'canReceive': ['playback', 'playbackAudio', 'volume', 'isMuted']}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': True}, {'id': '3803b107-b73d-4cc8-8f88-2XXXXXX_1', 'type': 'sensor', 'deviceType': 'waterSensor', 'createdAt': '2024-06-10T10:06:52.000Z', 'isReachable': True, 'lastSeen': '2024-06-10T08:22:40.000Z', 'attributes': {'customName': 'Water Sensor 1', 'model': 'BADRING Water Leakage Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.7', 'hardwareVersion': '1', 'serialNumber': 'B0C7DEFFFE62XXXX', 'productCode': 'E2202', 'batteryPercentage': 91, 'waterLeakDetected': False, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '1305e1ee-199c-4a97-ac84-6d8aXXXX', 'name': 'Basement', 'color': 'ikea_white_no_20', 'icon': 'rooms_box'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '027efa1c-d407-4775-9fb4-ad90bfaXXXX', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-06-10T10:36:15.000Z', 'isReachable': True, 'lastSeen': '2024-06-10T10:47:05.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Door Sensor Amélie', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'PARASOLL Door/Window Sensor', 'productCode': 'E2013', 'serialNumber': '048727FFFE5FXXXX', 'batteryPercentage': 91, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '37d569be-9498-4dfa-8ae4-c7593ac0XXXX', 'name': 'Amélie’s Bedroom', 'color': 'ikea_pink_no_8', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}] 2024-06-10 14:46:14.336 INFO (SyncWorker_0) [custom_components.dirigera_platform] -------------- 2024-06-10 14:46:14.336 INFO (SyncWorker_0) [custom_components.dirigera_platform] === END Devices JSON ===

KevChief commented 2 weeks ago

Never mind; after I restarted HA, the devices were loaded with their proper entities and status.

Maybe interesting to also add these as "supported" in the wiki page :)

sanjoyg commented 2 weeks ago

Good point will do