sanjoyg / dirigera_platform

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

Rodret Wireless Dimmer #52

Closed NeilPittaway closed 3 weeks ago

NeilPittaway commented 3 weeks ago

Hi, Sanjoy!

Love what you've done for us all with this brilliant integration!

Would it be possible to add the Rodret Wireless Dimmer?

This is JSON dump for; on (press), off (press), on (press and hold) and off (press and hold).

2024-06-03 14:53:54.037 DEBUG (MainThread) [custom_components.dirigera_platform] update called Sarah’s Bedside Switch 2024-06-03 14:54:04.875 INFO (SyncWorker_22) [custom_components.dirigera_platform] === START Devices JSON === 2024-06-03 14:54:04.875 INFO (SyncWorker_22) [custom_components.dirigera_platform] -------------- 2024-06-03 14:54:05.240 INFO (SyncWorker_22) [custom_components.dirigera_platform] [{'id': 'bf71ed76-1fcd-4d21-b48f-7e0fe3fabb0f_1', 'type': 'controller', 'deviceType': 'lightController', 'createdAt': '2024-06-03T12:52:47.000Z', 'isReachable': True, 'lastSeen': '2024-06-03T14:38:16.000Z', 'attributes': {'customName': 'Sarah’s Bedside Switch', 'model': 'RODRET Dimmer', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.57', 'hardwareVersion': '1', 'serialNumber': '94B216FFFE79291D', 'productCode': 'E2201', 'batteryPercentage': 100, 'isOn': False, 'lightLevel': 1, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'circadianPresets': []}, 'capabilities': {'canSend': ['isOn', 'lightLevel'], 'canReceive': ['customName']}, 'room': {'id': 'b6f5956b-6ba6-4726-9d31-1cd1e1576273', 'name': 'Primary Bedroom', 'color': 'ikea_white_no_20', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '2d1ffc84-082b-4dd9-a284-fce862d34582_1', 'type': 'speaker', 'deviceType': 'speaker', 'createdAt': '2024-05-01T19:06:02.896Z', 'isReachable': False, 'lastSeen': '2024-05-02T18:39:11.389Z', 'attributes': {'customName': 'Sitting Room 2', 'model': 'Sonos Play:1 S12 ColorWhite', 'manufacturer': 'Sonos, Inc.', 'firmwareVersion': '78.1-52020', 'hardwareVersion': '1.20.1.6-2.1', 'serialNumber': '94-9F-3E-71-5E-B6:9', 'productCode': 'S12White', 'identifyStarted': '2024-05-01T19:06:02.896Z', 'identifyPeriod': 0, 'playback': 'playbackIdle', 'playbackLastChangedTimestamp': '2024-05-01T19:06:02.896Z', 'playbackAudio': {}, 'playbackPosition': {'position': 0, 'timestamp': '2024-05-01T19:06:02.689Z'}, 'playbackAvailableActions': {'crossfade': True, 'pause': False, 'repeat': ['off', 'playItem', 'playlist'], 'seek': False, 'shuffle': True, 'playbackNext': False, 'playbackPrev': False}, 'playbackModes': {'crossfade': False, 'repeat': 'off', 'shuffle': False}, 'volume': 25, 'isMuted': False, 'audioGroup': 'ce609b7d-d74a-49b8-89cb-71a33c473f2d'}, 'capabilities': {'canSend': [], 'canReceive': ['playback', 'playbackAudio', 'volume', 'isMuted']}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': True}, {'id': '1eaddf54-9a55-48c1-b0d5-9963ac09ecd6_1', 'type': 'sensor', 'deviceType': 'motionSensor', 'createdAt': '2024-05-19T12:11:46.000Z', 'isReachable': True, 'lastSeen': '2024-06-03T13:32:12.000Z', 'attributes': {'customName': 'Understairs Motion Sensor', 'model': 'TRADFRI motion sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.5', 'hardwareVersion': '1', 'serialNumber': 'B4E3F9FFFEAF0B1E', 'productCode': 'E1745', 'batteryPercentage': 80, 'isOn': False, 'lightLevel': 1, 'permittingJoin': False, 'isDetected': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'sensorConfig': {'scheduleOn': False, 'onDuration': 120}, 'circadianPresets': []}, 'capabilities': {'canSend': ['isOn', 'lightLevel'], 'canReceive': ['customName']}, 'room': {'id': 'd0b7cbfd-ab9c-4ae7-b015-3b53084cf589', 'name': 'Hallway', 'color': 'pantone_16_0940_tcx', 'icon': 'rooms_coat_hanger'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'a01f3c14-709b-4d42-abcd-7b19f99f6b3e_1', 'type': 'speaker', 'deviceType': 'speaker', 'createdAt': '2024-04-05T21:57:15.923Z', 'isReachable': True, 'lastSeen': '2024-06-03T13:25:03.465Z', 'attributes': {'customName': 'Sitting Room', 'model': 'Sonos Playbar S9 ColorBlack', 'manufacturer': 'Sonos, Inc.', 'firmwareVersion': '79.0-52294', 'hardwareVersion': '1.9.1.10-2.2', 'serialNumber': '94-9F-3E-60-E7-27:3', 'productCode': 'S9Black', 'identifyStarted': '2024-04-05T21:57:15.923Z', 'identifyPeriod': 0, 'playback': 'playbackPlaying', 'playbackLastChangedTimestamp': '2024-06-03T13:22:43.729Z', 'playbackAudio': {'serviceType': 'sonos', 'providerType': 'linein.homeTheater.spdif', 'playlist': {'id': 'eyJhY2NvdW50VHlwZSI6InNvbm9zIiwiY29udGVudFR5cGUiOiJjb250YWluZXIiLCJjb250ZW50Ijp7ImNvbnRhaW5lciI6eyJhY2NvdW50SWQiOm51bGwsIm9iamVjdElkIjoiaG9tZVRoZWF0ZXItaW5wdXQiLCJzZXJ2aWNlSWQiOm51bGwsInR5cGUiOiJsaW5laW4uaG9tZVRoZWF0ZXIuc3BkaWYifX19', 'title': 'TV Audio'}}, 'playbackPosition': {'position': 0, 'timestamp': '2024-06-03T13:22:43.729Z'}, 'playbackAvailableActions': {'crossfade': False, 'pause': False, 'repeat': ['off'], 'seek': False, 'shuffle': False, 'playbackNext': False, 'playbackPrev': False}, 'playbackModes': {'crossfade': False, 'repeat': 'off', 'shuffle': False}, 'volume': 8, 'isMuted': False, 'audioGroup': 'c79205cc-8851-4f88-9546-8fc48f092cfd'}, 'capabilities': {'canSend': [], 'canReceive': ['playback', 'playbackAudio', 'volume', 'isMuted']}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': True}, {'id': 'a8fe336a-3382-4cc4-a572-40523fd777c0_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-17T17:16:28.000Z', 'isReachable': True, 'lastSeen': '2024-06-03T14:32:27.000Z', 'attributes': {'customName': 'Understairs Light', 'model': 'TRADFRI Driver 10W', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.3.086', 'hardwareVersion': '1', 'serialNumber': '680AE2FFFEBDF4B1', 'productCode': 'ICPSHC2410EUIL1', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': 'd0b7cbfd-ab9c-4ae7-b015-3b53084cf589', 'name': 'Hallway', 'color': 'pantone_16_0940_tcx', 'icon': 'rooms_coat_hanger'}, 'deviceSet': [], 'remoteLinks': ['1eaddf54-9a55-48c1-b0d5-9963ac09ecd6_1'], 'isHidden': False}, {'id': '2335add2-260e-4073-8d43-d2e65f3c6d24_1', 'relationId': '2335add2-260e-4073-8d43-d2e65f3c6d24', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2023-12-15T15:44:21.510Z', 'isReachable': True, 'lastSeen': '2024-06-03T13:54:00.866Z', 'attributes': {'customName': '1DV Dirigera Hub', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.588.0', 'hardwareVersion': 'P2.5', 'serialNumber': '2335add2-260e-4073-8d43-d2e65f3c6d24', 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'otaStatus': 'upToDate', 'otaState': 'checkFailed', 'otaProgress': 0, 'otaPolicy': 'autoDownload', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'permittingJoin': False, 'backendConnected': True, 'backendConnectionPersistent': True, 'backendOnboardingComplete': True, 'backendRegion': 'eu-west-1', 'backendCountryCode': 'GB', 'userConsents': [{'name': 'analytics', 'value': 'disabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/London', 'nextSunSet': '2024-06-03T20:31:00.000Z', 'nextSunRise': '2024-06-04T03:40:00.000Z', 'homestate': 'home', 'countryCode': 'XZ', 'coordinates': {'latitude': 54.020866229809585, 'longitude': -1.6949226487009472, 'accuracy': -1}, 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': '6d03ea68-86fa-4f68-96d7-0d78d7b546a7_1', 'type': 'outlet', 'deviceType': 'outlet', 'createdAt': '2024-04-07T15:30:24.000Z', 'isReachable': True, 'lastSeen': '2024-06-03T14:32:38.000Z', 'attributes': {'customName': 'Sitting Room Lamp', 'model': 'TRADFRI control outlet', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.3.089', 'hardwareVersion': '1', 'serialNumber': 'BC026EFFFE7C21E4', 'productCode': 'E1603', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel']}, 'room': {'id': '6f054de9-0251-4398-95a1-83154e82e07f', 'name': 'Sitting Room', 'color': 'ikea_beige_1', 'icon': 'rooms_arm_chair'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'a8279a87-8936-44a9-b202-148f38d59b15_1', 'type': 'speaker', 'deviceType': 'speaker', 'createdAt': '2024-05-01T19:07:21.993Z', 'isReachable': False, 'lastSeen': '2024-05-02T18:39:11.266Z', 'attributes': {'customName': 'Sitting Room', 'model': 'Sonos Play:1 S12 ColorWhite', 'manufacturer': 'Sonos, Inc.', 'firmwareVersion': '78.1-52020', 'hardwareVersion': '1.20.1.6-2.1', 'serialNumber': '94-9F-3E-71-5E-70:7', 'productCode': 'S12White', 'identifyStarted': '2024-05-01T19:07:21.993Z', 'identifyPeriod': 0, 'playback': 'playbackIdle', 'playbackLastChangedTimestamp': '2024-05-01T19:07:21.993Z', 'playbackAudio': {}, 'playbackPosition': {'position': 0, 'timestamp': '2024-05-01T19:07:21.789Z'}, 'playbackAvailableActions': {'crossfade': True, 'pause': False, 'repeat': ['off', 'playItem', 'playlist'], 'seek': False, 'shuffle': True, 'playbackNext': False, 'playbackPrev': False}, 'playbackModes': {'crossfade': False, 'repeat': 'off', 'shuffle': False}, 'volume': 25, 'isMuted': False, 'audioGroup': '2450b67e-9731-4cc9-ac15-8bf1e0dc40b7'}, 'capabilities': {'canSend': [], 'canReceive': ['playback', 'playbackAudio', 'volume', 'isMuted']}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': True}]

If you need any more info, just let me know!

Thanks,

Neil Pittaway

sanjoyg commented 3 weeks ago

Thank you. To see if its possible please do the following

  1. Enable debug for the integration
  2. Now use the remote to on and then off
  3. Check the log to see if the hub_event_listener is logging a message rcvd msg: {}

If it does, please paste that log line.

NeilPittaway commented 3 weeks ago

Hi Sanjoy,

No luck with the Rodret Wireless Dimmer Switch... (E2201) - doesn't generate any events that I can see.

I'll open a new issue for the Tradfri Shortcut Button and the Tradfri On/Off button as I'm getting entries for those.

Thanks,

Neil