sanjoyg / dirigera_platform

HomeAssistant Integration for Dirigera Platform
MIT License
122 stars 16 forks source link

Connection is lost with the hub (no actions or status updates possible anymore) until reload of integration #57

Closed KevChief closed 2 weeks ago

KevChief commented 5 months ago

A few times a day I have the issue the integration is not responding anymore. No actions are picked up anymore. When reloading the integration, everything is fine again until a few hours later the same happens.

I checked the log dump, but no "error" messages in there about this integration, so I'm not sure what's going on. Other integrations are working fine by the way, it's just this one that has that instability.

Not sure if this is something known or is seen in other installations?

KevChief commented 5 months ago

New information: Just had the issue again, and now I can see the following in the logging

Logger: custom_components.dirigera_platform
Source: custom_components/dirigera_platform/hub_event_listener.py:188
integration: IKEA Dirigera Hub Integration ([documentation](https://github.com/sanjoyg/dirigera_platform), [issues](https://github.com/sanjoyg/dirigera_platform))
First occurred: June 17, 2024 at 7:50:11 AM (29 occurrences)
Last logged: 2:05:00 AM

Failed to create listener or listener exited, will sleep 10 seconds before retrying
vulcanoid1975 commented 5 months ago

Good Morning, I don't know if it's related or not, but I have this:

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:150 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: June 19, 2024 at 5:23:22 PM (183 occurrences) Last logged: 7:48:40 AM

error processing hub event

and this:

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:152 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: June 19, 2024 at 5:23:22 PM (183 occurrences) Last logged: 7:48:40 AM

'NoneType' object has no attribute 'loop'

I have disabled using lights with this integration, since colour setting and response times aren't what I need (so I am using the Matter Integration with the hub directly for lights) but the remaining devices I'm using this integration.

Here is the debug log: home-assistant_dirigera_platform_2024-06-20T07-12-53.745Z.log

And JSON dump:

2024-06-20 08:08:47.839 INFO (SyncWorker_33) [custom_components.dirigera_platform] === START Devices JSON === 2024-06-20 08:08:47.839 INFO (SyncWorker_33) [custom_components.dirigera_platform] -------------- 2024-06-20 08:08:48.129 INFO (SyncWorker_33) [custom_components.dirigera_platform] [{'id': 'f5878eb5-8acf-4d3e-b627-948655a71375_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T13:55:13.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T07:48:38.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Kitchen Front Cupboard', 'model': 'ORMANAS LED Strip', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.10', 'hardwareVersion': '1', 'serialNumber': '287681FFFE7FFB0C', 'productCode': 'L2112', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 0, 'colorSaturation': 0.7913385826771654, 'colorTemperature': 3521, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', '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', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '68c6621d-a4dc-428f-8135-642ccf743c8c_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-13T10:29:14.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T08:08:42.000Z', 'attributes': {'customName': 'Sensor Bathroom', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': 'A46DD4FFFE4D1887', 'productCode': 'E2112', 'currentTemperature': 24, 'currentRH': 70, 'currentPM25': 3, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 43, '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']}, 'room': {'id': 'cbc8a34a-a0cf-4084-91c1-a9072d3c249e', 'name': 'Bathroom', 'color': 'ikea_pink_no_8', 'icon': 'rooms_bathtub'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'd8b51838-9e6d-4cec-8331-751bdb76c2c3_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T15:10:38.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T08:07:12.000Z', 'attributes': {'customName': 'Sensor Media Room', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFEBFA1AD', 'productCode': 'E2112', 'currentTemperature': 23, 'currentRH': 74, 'currentPM25': 3, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 71, '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']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e213f027-7dc8-40b9-befa-7bacfe3eb1fb_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:30.000Z', 'isReachable': True, 'lastSeen': '2024-06-19T18:08:55.000Z', 'attributes': {'customName': 'Light 10', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE06D606', 'productCode': 'LED1935C3', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 51, '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': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': 'e51a9e3c-0e0b-450d-a34d-f741cf6a0923_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T16:31:37.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T08:08:23.000Z', 'attributes': {'customName': 'Sensor Bedroom ', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5F0C3A', 'productCode': 'E2112', 'currentTemperature': 24, 'currentRH': 69, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 61, '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']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e67bab52-7f2f-4e8e-b6a7-0c10aa06ca1e_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T15:06:00.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T08:07:59.000Z', 'attributes': {'customName': 'Sensor Office', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE642195', 'productCode': 'E2112', 'currentTemperature': 25, 'currentRH': 67, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 67, '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']}, 'room': {'id': 'bb08b138-ac1d-4605-b816-731481dea270', 'name': 'Office', 'color': 'ikea_brown_no_41', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'feab0316-070b-4a2e-8e97-4c0c354a1636_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T22:43:50.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T07:48:40.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Back Cupboard Down', 'model': 'lumi.light.acn132', 'manufacturer': 'Aqara', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '', 'productCode': '', 'colorHue': 31.838343325954042, 'colorSaturation': 0.4696886011343046, 'colorTemperature': 3521, 'colorTemperatureMin': 6535, 'colorTemperatureMax': 2702, 'startupTemperature': 4000, 'colorMode': 'temperature', 'lightLevel': 100, 'isOn': False, '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', 'colorTemperature', 'colorHue', 'colorSaturation', 'lightLevel', 'isOn']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d406c8a-92c8-4139-9860-c94755d33bd6_1', 'type': 'blinds', 'deviceType': 'blinds', 'createdAt': '2024-04-09T20:10:25.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T07:19:53.000Z', 'attributes': {'customName': 'Bedroom Blind Left', 'model': 'FYRTUR block-out roller blind', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.13', 'hardwareVersion': '1', 'serialNumber': 'BC026EFFFE3B4604', 'productCode': 'E1757-140', 'batteryPercentage': 91, 'blindsTargetLevel': 0, 'blindsCurrentLevel': 0, 'blindsState': 'stopped', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'blindsCurrentLevel', 'blindsTargetLevel', 'blindsState']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'f43b20b3-42aa-4ae6-ad29-5489da980401_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:33.000Z', 'isReachable': True, 'lastSeen': '2024-06-19T18:17:26.000Z', 'attributes': {'customName': 'Light 11', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE11E8A2', 'productCode': 'LED1935C3', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 51, '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': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': '607443c0-7044-4c5b-946e-493f5b713263_1', 'type': 'outlet', 'deviceType': 'outlet', 'createdAt': '2024-05-18T23:46:08.000Z', 'isReachable': True, 'lastSeen': '2024-06-19T17:37:14.000Z', 'attributes': {'customName': 'Outside Socket Light 2', 'model': 'TRETAKT Smart plug', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.4.4', 'hardwareVersion': '1', 'serialNumber': '881A14FFFE2F5E65', 'productCode': 'E2204', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'childLock': False, 'statusLight': True, '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', 'childLock', 'statusLight']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'f299b378-939d-491f-9ba8-f0c724fbc6bf_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-13T10:30:02.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T08:08:28.000Z', 'attributes': {'customName': 'Sensor Kitchen', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5F0A5A', 'productCode': 'E2112', 'currentTemperature': 24, 'currentRH': 73, 'currentPM25': 3, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 63, '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']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '5817d190-530e-4207-a359-b70321c9eecb_1', 'relationId': '5817d190-530e-4207-a359-b70321c9eecb', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2023-12-15T15:44:20.684Z', 'isReachable': True, 'lastSeen': '2024-06-20T07:08:00.424Z', 'attributes': {'customName': 'Nuno Cid Ponte', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.588.0', 'hardwareVersion': 'P2.5', 'serialNumber': '5817d190-530e-4207-a359-b70321c9eecb', 'identifyStarted': '2024-05-30T03:16:02.000Z', 'identifyPeriod': 65534, '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': 'PT', 'userConsents': [{'name': 'analytics', 'value': 'enabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/Lisbon', 'nextSunSet': '2024-06-20T20:06:00.000Z', 'nextSunRise': '2024-06-21T05:13:00.000Z', 'homestate': 'home', 'countryCode': 'XZ', 'coordinates': {'latitude': 38.72072072072072, 'longitude': -9.237590405943559, 'accuracy': -1}, 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': 'c2a5fc20-d126-4e36-a888-dac432e29351_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T22:39:55.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T07:48:40.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Front Cupboard Down', 'model': 'lumi.light.acn132', 'manufacturer': 'Aqara', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '', 'productCode': '', 'colorHue': 31.838343325954042, 'colorSaturation': 0.4696886011343046, 'colorTemperature': 3521, 'colorTemperatureMin': 6535, 'colorTemperatureMax': 2702, 'startupTemperature': 4000, 'colorMode': 'temperature', 'lightLevel': 100, 'isOn': False, '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', 'colorTemperature', 'colorHue', 'colorSaturation', 'lightLevel', 'isOn']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'd3ae570b-b7cb-4c7b-9a5b-79535dc0c805_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:29.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T02:45:19.000Z', 'attributes': {'customName': 'Light 9', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5EB0A4', 'productCode': 'LED1935C3', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 51, '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': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': '7afcc32a-bc70-40d5-8343-bf995d010b53_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-05-15T20:28:30.000Z', 'isReachable': True, 'lastSeen': '2024-06-19T14:48:47.000Z', 'attributes': {'customName': 'Bedroom Window Sensor', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE9A65B8', 'productCode': 'E2013', 'batteryPercentage': 90, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'd6b81b57-ca75-458a-a1cd-8c557e54d14a_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-05-15T20:32:34.000Z', 'isReachable': True, 'lastSeen': '2024-06-19T23:49:18.000Z', 'customIcon': 'placement_window', 'attributes': {'customName': 'Office Window Sensor', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFEA24F97', 'productCode': 'E2013', 'batteryPercentage': 89, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'bb08b138-ac1d-4605-b816-731481dea270', 'name': 'Office', 'color': 'ikea_brown_no_41', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '41557dbf-10ee-408f-a81c-1b6547e81732_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-06T03:00:15.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T02:11:40.000Z', 'customIcon': 'lighting_floor_lamp', 'attributes': {'customName': 'TV Bedroom Light', 'model': 'TRADFRI bulb E27 CWS globe 806lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'serialNumber': '3C2EF5FFFEEE373B', 'productCode': 'LED2109G6', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 25, 'startUpCurrentLevel': -1, 'colorHue': 0, 'colorSaturation': 0.7913385826771654, 'colorTemperature': 2202, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', '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', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '49267ed9-cd73-443d-b384-c23c750740a3_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-04-13T13:43:04.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T02:09:20.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Entrance Door Sensor', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE4AC4AE', 'productCode': 'E2013', 'batteryPercentage': 89, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '421d55b1-65fd-4545-a33f-0de44bad173b', 'name': 'Hallway', 'color': 'ikea_yellow_no_24', 'icon': 'rooms_book_case'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'ec3c0e4a-81b8-4c0e-a6d6-134a78010d2c_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T18:57:12.000Z', 'isReachable': True, 'lastSeen': '2024-06-19T18:33:29.000Z', 'customIcon': 'products_chandelier_bulb', 'attributes': {'customName': 'Outside Light 4', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '38398FFFFE91270D', 'productCode': 'LED1935C3', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 51, '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': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': '475cc495-4445-4247-ad3e-ddfa149a9cd1_1', 'type': 'blinds', 'deviceType': 'blinds', 'createdAt': '2024-04-05T14:39:51.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T07:19:39.000Z', 'attributes': {'customName': 'Bedroom Blind Right', 'model': 'FYRTUR block-out roller blind', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.13', 'hardwareVersion': '1', 'serialNumber': '6C5CB1FFFE78FA80', 'productCode': 'E1757-140', 'batteryPercentage': 88, 'blindsTargetLevel': 0, 'blindsCurrentLevel': 0, 'blindsState': 'stopped', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'blindsCurrentLevel', 'blindsTargetLevel', 'blindsState']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9f64b431-4485-4e14-83f1-4693c0dafc93_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-04-13T12:58:10.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T06:01:16.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Door Sensor Outside', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE5287CE', 'productCode': 'E2013', 'batteryPercentage': 70, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d04542a-5d6c-4d09-b207-469cb72fc9b0_1', 'relationId': '9d04542a-5d6c-4d09-b207-469cb72fc9b0', 'type': 'sensor', 'deviceType': 'motionSensor', 'createdAt': '2024-05-19T12:38:16.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T08:00:21.000Z', 'attributes': {'customName': 'Motion Sensor Media Room', 'model': 'VALLHORN Wireless Motion Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.64', 'hardwareVersion': '1', 'serialNumber': '881A14FFFED8E853', 'productCode': 'E2134', 'batteryPercentage': 83, 'isOn': False, 'motionDetectedDelay': 20, 'isDetected': False, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'sensorConfig': {'scheduleOn': False, 'onDuration': 60, 'schedule': {'onCondition': {'time': '01:00'}, 'offCondition': {'time': '06:00'}}}, 'circadianPresets': []}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d04542a-5d6c-4d09-b207-469cb72fc9b0_3', 'relationId': '9d04542a-5d6c-4d09-b207-469cb72fc9b0', 'type': 'unknown', 'deviceType': 'lightSensor', 'createdAt': '2024-05-19T12:38:16.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T08:00:21.000Z', 'attributes': {'customName': '', 'model': 'VALLHORN Wireless Motion Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.64', 'hardwareVersion': '1', 'serialNumber': '881A14FFFED8E853', 'productCode': 'E2134', 'illuminance': 50, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '3f59f95c-4277-409f-833e-8d09f9e3a109_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T13:58:54.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T07:48:38.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Kitchen Back Cupboard', 'model': 'ORMANAS LED Strip', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.10', 'hardwareVersion': '1', 'serialNumber': '287681FFFE0AE18A', 'productCode': 'L2112', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 94.998779296875, 'colorSaturation': 0.1377952755905512, 'colorTemperature': 3521, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', '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', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '09ef584d-2439-4a8e-8e01-6a49a92ff9e0_1', 'type': 'outlet', 'deviceType': 'outlet', 'createdAt': '2024-05-18T23:44:26.000Z', 'isReachable': True, 'lastSeen': '2024-06-19T17:58:26.000Z', 'attributes': {'customName': 'Outside Socket Light 1', 'model': 'TRETAKT Smart plug', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.4.4', 'hardwareVersion': '1', 'serialNumber': '28DBA7FFFEA9C430', 'productCode': 'E2204', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'childLock': False, 'statusLight': True, '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', 'childLock', 'statusLight']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '0656741c-e3f1-4f96-b2c9-01e3e6e90afe_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-30T14:50:49.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T01:44:37.000Z', 'customIcon': 'lighting_nightstand_light', 'attributes': {'customName': 'Screen Light Left', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRI bulb E14 CWS globe 806lm', 'productCode': 'LED2111G6', 'serialNumber': '60EFABFFFE32C99D', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorMode': 'temperature', 'colorHue': 34.9969482421875, 'colorSaturation': 0.7992125984251969, 'startupTemperature': -1, 'colorTemperature': 2747, 'colorTemperatureMax': 2202, 'colorTemperatureMin': 4000, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '963c7ce6-54f2-4659-acb2-5f580eaa1663_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-30T14:52:32.000Z', 'isReachable': True, 'lastSeen': '2024-06-20T01:44:37.000Z', 'customIcon': 'lighting_nightstand_light', 'attributes': {'customName': 'Screen Light Right', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRI bulb E14 CWS globe 806lm', 'productCode': 'LED2111G6', 'serialNumber': '60EFABFFFE432053', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorMode': 'temperature', 'colorHue': 34.9969482421875, 'colorSaturation': 0.7992125984251969, 'startupTemperature': -1, 'colorTemperature': 2747, 'colorTemperatureMax': 2202, 'colorTemperatureMin': 4000, 'identifyPeriod': 30, 'identifyStarted': '2024-05-30T14:57:29.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}] 2024-06-20 08:08:48.130 INFO (SyncWorker_33) [custom_components.dirigera_platform] -------------- 2024-06-20 08:08:48.130 INFO (SyncWorker_33) [custom_components.dirigera_platform] === END Devices JSON === 2024-06-20 08:08:58.409 DEBUG (MainThread) [custom_components.dirigera_platform] update called Bedroom Blind Left 2024-06-20 08:08:58.409 DEBUG (MainThread) [custom_components.dirigera_platform] update called Bedroom Blind Right 2024-06-20 08:08:58.410 DEBUG (MainThread) [custom_components.dirigera_platform] update called Bedroom Blind Left 2024-06-20 08:08:58.410 DEBUG (MainThread) [custom_components.dirigera_platform] update called Bedroom Blind Right 2024-06-20 08:08:58.440 DEBUG (MainThread) [custom_components.dirigera_platform] update called Motion Sensor Media Room 2024-06-20 08:08:58.440 DEBUG (MainThread) [custom_components.dirigera_platform] update called Motion Sensor Media Room 2024-06-20 08:08:58.440 DEBUG (MainThread) [custom_components.dirigera_platform] update called Bedroom Window Sensor 2024-06-20 08:08:58.441 DEBUG (MainThread) [custom_components.dirigera_platform] update called Bedroom Window Sensor 2024-06-20 08:08:58.441 DEBUG (MainThread) [custom_components.dirigera_platform] update called Office Window Sensor 2024-06-20 08:08:58.441 DEBUG (MainThread) [custom_components.dirigera_platform] update called Office Window Sensor 2024-06-20 08:08:58.441 DEBUG (MainThread) [custom_components.dirigera_platform] update called Entrance Door Sensor 2024-06-20 08:08:58.441 DEBUG (MainThread) [custom_components.dirigera_platform] update called Entrance Door Sensor 2024-06-20 08:08:58.441 DEBUG (MainThread) [custom_components.dirigera_platform] update called Door Sensor Outside 2024-06-20 08:08:58.441 DEBUG (MainThread) [custom_components.dirigera_platform] update called Door Sensor Outside 2024-06-20 08:08:58.513 DEBUG (MainThread) [custom_components.dirigera_platform] update called Outside Socket Light 2 2024-06-20 08:08:58.513 DEBUG (MainThread) [custom_components.dirigera_platform] update called Outside Socket Light 1 2024-06-20 08:08:58.515 DEBUG (MainThread) [custom_components.dirigera_platform] env sensor update called... 2024-06-20 08:08:58.515 DEBUG (MainThread) [custom_components.dirigera_platform] env sensor update called... 2024-06-20 08:08:58.515 DEBUG (MainThread) [custom_components.dirigera_platform] env sensor update called... 2024-06-20 08:08:58.515 DEBUG (MainThread) [custom_components.dirigera_platform] env sensor update called... 2024-06-20 08:08:58.515 DEBUG (MainThread) [custom_components.dirigera_platform] env sensor update called... 2024-06-20 08:08:58.515 DEBUG (MainThread) [custom_components.dirigera_platform] env sensor update called... 2024-06-20 08:09:02.047 DEBUG (Thread-2) [custom_components.dirigera_platform] rcvd message : {"id":"b57f0d4c-1be3-4ef3-b5c9-c815871e8859","time":"2024-06-20T07:09:01.000Z","specversion":"3.154.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"d8b51838-9e6d-4cec-8331-751bdb76c2c3_1","type":"sensor","deviceType":"environmentSensor","createdAt":"2024-04-05T15:10:38.000Z","isReachable":true,"lastSeen":"2024-06-20T08:09:01.000Z","attributes":{"currentPM25":2},"remoteLinks":[]}} 2024-06-20 08:09:02.047 DEBUG (Thread-2) [custom_components.dirigera_platform] device type of message environmentSensor

Hope it helps ...

KevChief commented 5 months ago

Maybe interesting to add on my part indeed: I have a few lights (just normal ones and with RGB), as well as 2x door sensors and 2x water sensors

sanjoyg commented 5 months ago

@vulcanoid1975 thank you so much for the logs. Would enable debug and paste log I see an error but am not able to figure the reason for same

vulcanoid1975 commented 5 months ago

Always a pleasure :) @sanjoyg I did exactly that and attached the debug log to my previous post, what is missing?

Here is the debug log: home-assistant_dirigera_platform_2024-06-20T07-12-53.745Z.log

sanjoyg commented 5 months ago

I think u disabled the DEBUG at just the moment I needed ;-(

Here are the lines where I would have liked DEBUG logs. Just see ERROR/WARNING

2024-06-19 17:33:51.563 ERROR (Thread-2) [custom_components.dirigera_platform] error processing hub event 2024-06-19 17:33:51.563 ERROR (Thread-2) [custom_components.dirigera_platform] {"id":"6c5bdda1-2d40-467c-886d-f2dce023b5fb","time":"2024-06-19T16:33:51.000Z","specversion":"3.154.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"d3ae570b-b7cb-4c7b-9a5b-79535dc0c805_1","type":"light","deviceType":"light","lastSeen":"2024-06-19T16:33:51.000Z","attributes":{"otaState":"readyToCheck"},"remoteLinks":[]}} 2024-06-19 17:33:51.563 ERROR (Thread-2) [custom_components.dirigera_platform] 'NoneType' object has no attribute 'loop'

vulcanoid1975 commented 5 months ago

LOL sorry ... I do try to help ... so, here is the full log from my side, I really hope this helps:

home-assistant_2024-06-20T13-09-08.960Z.log

Give me some feedback ...

sanjoyg commented 5 months ago

@vulcanoid1975 I checked the logs. I initially thought it was do with events not been processed. In my tests that was not the case. When you look at your logs, you will see that the connection to the DIRIGERA hub is been lost intermediately.

vulcanoid1975 commented 5 months ago

@sanjoyg I see no issues of connection or loop errors in my logs anymore after update ... or any errors from the integration for that matter. I never lost connection completely, it would only delay response, the integration works correctly for all devices, although for colour accuracy of RGB lights and speed for light interaction it hasn't worked for me - I have 2 Aqara FP2 occupancy sensors (Media Room and Kitchen) and because of these I do need more speed of reaction than was given. Just saw that some changes to that have been further developed I will, in time, test those.

@KevChief should review if this is the case for him as well, since from my side, this issue could be closed.

Thank You @sanjoyg for the fast reply and effective code.

KevChief commented 5 months ago

@sanjoyg , @vulcanoid1975 thanks for the effort

On my end, it’s indeed different behavior. The integration doesn’t work anymore until I reload it. No issues with internet or integration at that time, so no local issue, only this integration in the tests that I’ve already been able to do.

I’ve noticed the following log though when it occurs:

Logger: custom_components.dirigera_platform
Source: custom_components/dirigera_platform/hub_event_listener.py:188
integration: IKEA Dirigera Hub Integration ([documentation](https://github.com/sanjoyg/dirigera_platform), [issues](https://github.com/sanjoyg/dirigera_platform))
First occurred: June 21, 2024 at 10:02:57 PM (8 occurrences)
Last logged: 9:16:10 AM

Failed to create listener or listener exited, will sleep 10 seconds before retrying

Not sure if that could help with debugging it?

I’m doing more tests on my end as well so when it occurs again I hope to be able to provide more logs and details.

vulcanoid1975 commented 5 months ago

Hi,

So I left the integration for several hours and I got this:

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:156 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 10:42:35 AM (51 occurrences) Last logged: 5:10:20 PM

'NoneType' object has no attribute 'loop'

and this:

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:154 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 10:42:35 AM (51 occurrences) Last logged: 5:10:20 PM

error processing hub event

This:

Logger: homeassistant.helpers.entity Source: helpers/entity.py:941 First occurred: 12:09:25 PM (14 occurrences) Last logged: 4:33:56 PM

Update for sensor.sensor_office_voc_index fails Update for sensor.sensor_office_current_pm2_5 fails Update for sensor.sensor_office_min_measured_pm2_5 fails Update for sensor.sensor_office_max_measured_pm2_5 fails Update for sensor.sensor_office_temperature fails Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1060, in _validate_conn conn.connect() File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 419, in connect self.sock = ssl_wrapsocket( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/ssl.py", line 453, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_intls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/usr/local/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() TimeoutError: _ssl.c:983: The handshake operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 801, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 552, in increment raise six.reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/packages/six.py", line 770, in reraise raise value File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 407, in _make_request self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 358, in _raise_timeout raise ReadTimeoutError( urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='192.168.0.246', port=8443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/config/custom_components/dirigera_platform/sensor.py", line 95, in async_update self._json_data = await self._hass.async_add_executor_job(self._hub.get_environment_sensor_by_id, self._json_data.id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dirigera/hub/hub.py", line 245, in get_environment_sensor_by_id environment_sensor = self._get_device_data_byid(id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dirigera/hub/hub.py", line 158, in _get_device_data_byid return self.get("/devices/" + id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dirigera/hub/hub.py", line 112, in get response = requests.get( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 713, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='192.168.0.246', port=8443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1289, in async_device_update await self.async_update() File "/config/custom_components/dirigera_platform/base_classes.py", line 113, in async_update await self._device.async_update() File "/config/custom_components/dirigera_platform/sensor.py", line 102, in async_update raise HomeAssistantError(ex, DOMAIN, "hub_exception") homeassistant.exceptions.HomeAssistantError: (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='192.168.0.246', port=8443): Read timed out. (read timeout=10)")), 'dirigera_platform', 'hub_exception')

That repeats for several other Vindstyrka sensors (I have 5).

The same happens for the Fyrtur blinds (I have 2):

Logger: homeassistant.helpers.entity Source: helpers/entity.py:941 First occurred: 4:33:56 PM (2 occurrences) Last logged: 4:33:56 PM

Update for cover.bedroom_blind_left_battery fails Update for cover.bedroom_blind_right_battery fails Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1060, in _validate_conn conn.connect() File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 419, in connect self.sock = ssl_wrapsocket( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/ssl.py", line 453, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_intls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/usr/local/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() TimeoutError: _ssl.c:983: The handshake operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 667, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 801, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 552, in increment raise six.reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/packages/six.py", line 770, in reraise raise value File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 407, in _make_request self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 358, in _raise_timeout raise ReadTimeoutError( urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='192.168.0.246', port=8443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/config/custom_components/dirigera_platform/base_classes.py", line 73, in async_update self._json_data = await self._hass.async_add_executor_job(self._get_by_id_fx, self._json_data.id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dirigera/hub/hub.py", line 297, in get_blinds_by_id blind_sensor = self._get_device_data_byid(id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dirigera/hub/hub.py", line 158, in _get_device_data_byid return self.get("/devices/" + id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dirigera/hub/hub.py", line 112, in get response = requests.get( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 713, in send raise ReadTimeout(e, request=request) requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='192.168.0.246', port=8443): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1289, in async_device_update await self.async_update() File "/config/custom_components/dirigera_platform/base_classes.py", line 113, in async_update await self._device.async_update() File "/config/custom_components/dirigera_platform/base_classes.py", line 77, in async_update raise HomeAssistantError(ex, DOMAIN, "hub_exception") homeassistant.exceptions.HomeAssistantError: (ReadTimeout(ReadTimeoutError("HTTPSConnectionPool(host='192.168.0.246', port=8443): Read timed out. (read timeout=10)")), 'dirigera_platform', 'hub_exception')

Finally, this:

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/base_classes.py:76 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 4:33:56 PM (2 occurrences) Last logged: 4:33:56 PM

HTTPSConnectionPool(host='192.168.0.246', port=8443): Read timed out. (read timeout=10)

Since I don't use devices that need immediate action, this doesn't affect me at all (for now).

As these are a few "connection issues" I also reviewed my location for any outage from my router or local network: Router: image

The Dirigera Hub: image

I'm also including the full logs for my location:

home-assistant_dirigera_platform_2024-06-22T16-15-43.076Z.log home-assistant_2024-06-22T16-15-28.882Z.log

I hope this helps in any way ...

sanjoyg commented 4 months ago

Can you please enable debug and re-create this condition. To enable debug follow steps 1 to 3 as specified here

vulcanoid1975 commented 4 months ago

Didn't see this message, here it is:

2024-07-13 19:07:43.135 INFO (SyncWorker_48) [custom_components.dirigera_platform] === START Devices JSON === 2024-07-13 19:07:43.135 INFO (SyncWorker_48) [custom_components.dirigera_platform] -------------- 2024-07-13 19:07:43.423 INFO (SyncWorker_48) [custom_components.dirigera_platform] [{'id': '0656741c-e3f1-4f96-b2c9-01e3e6e90afe_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-30T14:50:49.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T18:34:40.000Z', 'customIcon': 'lighting_nightstand_light', 'attributes': {'customName': 'Screen Light Left', 'model': 'TRADFRI bulb E14 CWS globe 806lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'serialNumber': '60EFABFFFE32C99D', 'productCode': 'LED2111G6', 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 34.9969482421875, 'colorSaturation': 0.7992125984251969, 'colorTemperature': 2747, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', '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', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'd8b51838-9e6d-4cec-8331-751bdb76c2c3_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T15:10:38.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T19:07:28.000Z', 'attributes': {'customName': 'Sensor Media Room', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFEBFA1AD', 'productCode': 'E2112', 'currentTemperature': 27, 'currentRH': 47, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 52, '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']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'feab0316-070b-4a2e-8e97-4c0c354a1636_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T22:43:50.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T08:46:50.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Back Cupboard Down', 'model': 'lumi.light.acn132', 'manufacturer': 'Aqara', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '', 'productCode': '', 'colorHue': 31.838343325954042, 'colorSaturation': 0.4696886011343046, 'colorTemperature': 3521, 'colorTemperatureMin': 6535, 'colorTemperatureMax': 2702, 'startupTemperature': 4000, 'colorMode': 'temperature', 'lightLevel': 100, 'isOn': False, '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', 'colorTemperature', 'colorHue', 'colorSaturation', 'lightLevel', 'isOn']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '607443c0-7044-4c5b-946e-493f5b713263_1', 'type': 'outlet', 'deviceType': 'outlet', 'createdAt': '2024-05-18T23:46:08.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T16:47:26.000Z', 'attributes': {'customName': 'Outside Socket Light 2', 'model': 'TRETAKT Smart plug', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.4.4', 'hardwareVersion': '1', 'serialNumber': '881A14FFFE2F5E65', 'productCode': 'E2204', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'childLock': False, 'statusLight': True, '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', 'childLock', 'statusLight']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d04542a-5d6c-4d09-b207-469cb72fc9b0_1', 'relationId': '9d04542a-5d6c-4d09-b207-469cb72fc9b0', 'type': 'sensor', 'deviceType': 'motionSensor', 'createdAt': '2024-05-19T12:38:16.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T19:07:21.000Z', 'attributes': {'customName': 'Motion Sensor Media Room', 'model': 'VALLHORN Wireless Motion Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.64', 'hardwareVersion': '1', 'serialNumber': '881A14FFFED8E853', 'productCode': 'E2134', 'batteryPercentage': 81, 'isOn': False, 'motionDetectedDelay': 20, 'isDetected': False, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False, 'sensorConfig': {'scheduleOn': False, 'onDuration': 60, 'schedule': {'onCondition': {'time': '01:00'}, 'offCondition': {'time': '06:00'}}}, 'circadianPresets': []}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9d04542a-5d6c-4d09-b207-469cb72fc9b0_3', 'relationId': '9d04542a-5d6c-4d09-b207-469cb72fc9b0', 'type': 'unknown', 'deviceType': 'lightSensor', 'createdAt': '2024-05-19T12:38:16.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T19:07:21.000Z', 'attributes': {'customName': '', 'model': 'VALLHORN Wireless Motion Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.64', 'hardwareVersion': '1', 'serialNumber': '881A14FFFED8E853', 'productCode': 'E2134', 'illuminance': 480, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '68c6621d-a4dc-428f-8135-642ccf743c8c_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-13T10:29:14.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T19:07:29.000Z', 'attributes': {'customName': 'Sensor Bathroom', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': 'A46DD4FFFE4D1887', 'productCode': 'E2112', 'currentTemperature': 27, 'currentRH': 50, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 35, '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']}, 'room': {'id': 'cbc8a34a-a0cf-4084-91c1-a9072d3c249e', 'name': 'Bathroom', 'color': 'ikea_pink_no_8', 'icon': 'rooms_bathtub'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'ec3c0e4a-81b8-4c0e-a6d6-134a78010d2c_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T18:57:12.000Z', 'isReachable': True, 'lastSeen': '2024-07-12T18:33:38.000Z', 'customIcon': 'products_chandelier_bulb', 'attributes': {'customName': 'Outside Light 4', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '38398FFFFE91270D', 'productCode': 'LED1935C3', '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': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': '41557dbf-10ee-408f-a81c-1b6547e81732_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-06T03:00:15.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T14:30:00.000Z', 'customIcon': 'lighting_floor_lamp', 'attributes': {'customName': 'TV Bedroom Light', 'model': 'TRADFRI bulb E27 CWS globe 806lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'serialNumber': '3C2EF5FFFEEE373B', 'productCode': 'LED2109G6', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 0, 'colorSaturation': 1, 'colorTemperature': 2202, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', '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', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'f43b20b3-42aa-4ae6-ad29-5489da980401_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:33.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T18:01:23.000Z', 'attributes': {'customName': 'Light 11', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE11E8A2', 'productCode': 'LED1935C3', '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': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': 'f299b378-939d-491f-9ba8-f0c724fbc6bf_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-13T10:30:02.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T19:07:04.000Z', 'attributes': {'customName': 'Sensor Kitchen', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5F0A5A', 'productCode': 'E2112', 'currentTemperature': 27, 'currentRH': 45, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 34, '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']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'f5878eb5-8acf-4d3e-b627-948655a71375_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T13:55:13.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T15:39:49.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Kitchen Front Cupboard', 'model': 'ORMANAS LED Strip', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.10', 'hardwareVersion': '1', 'serialNumber': '287681FFFE7FFB0C', 'productCode': 'L2112', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 0, 'colorSaturation': 0.7913385826771654, 'colorTemperature': 3521, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', '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', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e51a9e3c-0e0b-450d-a34d-f741cf6a0923_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T16:31:37.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T19:07:02.000Z', 'attributes': {'customName': 'Sensor Bedroom ', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5F0C3A', 'productCode': 'E2112', 'currentTemperature': 27, 'currentRH': 47, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 19, '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']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '49267ed9-cd73-443d-b384-c23c750740a3_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-04-13T13:43:04.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T08:28:21.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Entrance Door Sensor', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE4AC4AE', 'productCode': 'E2013', 'batteryPercentage': 86, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': False, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '421d55b1-65fd-4545-a33f-0de44bad173b', 'name': 'Hallway', 'color': 'ikea_yellow_no_24', 'icon': 'rooms_book_case'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '09ef584d-2439-4a8e-8e01-6a49a92ff9e0_1', 'type': 'outlet', 'deviceType': 'outlet', 'createdAt': '2024-05-18T23:44:26.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T17:24:28.000Z', 'attributes': {'customName': 'Outside Socket Light 1', 'model': 'TRETAKT Smart plug', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.4.4', 'hardwareVersion': '1', 'serialNumber': '28DBA7FFFEA9C430', 'productCode': 'E2204', 'isOn': False, 'startupOnOff': 'startPrevious', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'childLock': False, 'statusLight': True, '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', 'childLock', 'statusLight']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'd6b81b57-ca75-458a-a1cd-8c557e54d14a_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-05-15T20:32:34.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T18:27:58.000Z', 'customIcon': 'placement_window', 'attributes': {'customName': 'Office Window Sensor', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFEA24F97', 'productCode': 'E2013', 'batteryPercentage': 86, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': True, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': 'bb08b138-ac1d-4605-b816-731481dea270', 'name': 'Office', 'color': 'ikea_brown_no_41', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'd3ae570b-b7cb-4c7b-9a5b-79535dc0c805_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:29.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T14:43:27.000Z', 'attributes': {'customName': 'Light 9', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE5EB0A4', 'productCode': 'LED1935C3', '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': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': '9d406c8a-92c8-4139-9860-c94755d33bd6_1', 'type': 'blinds', 'deviceType': 'blinds', 'createdAt': '2024-04-09T20:10:25.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T12:29:58.000Z', 'attributes': {'customName': 'Bedroom Blind Left', 'model': 'FYRTUR block-out roller blind', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.13', 'hardwareVersion': '1', 'serialNumber': 'BC026EFFFE3B4604', 'productCode': 'E1757-140', 'batteryPercentage': 87, 'blindsTargetLevel': 0, 'blindsCurrentLevel': 0, 'blindsState': 'stopped', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'blindsCurrentLevel', 'blindsTargetLevel', 'blindsState']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'c2a5fc20-d126-4e36-a888-dac432e29351_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T22:39:55.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T08:46:50.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Front Cupboard Down', 'model': 'lumi.light.acn132', 'manufacturer': 'Aqara', 'firmwareVersion': '', 'hardwareVersion': '1', 'serialNumber': '', 'productCode': '', 'colorHue': 31.838343325954042, 'colorSaturation': 0.4696886011343046, 'colorTemperature': 3521, 'colorTemperatureMin': 6535, 'colorTemperatureMax': 2702, 'startupTemperature': 4000, 'colorMode': 'temperature', 'lightLevel': 100, 'isOn': False, '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', 'colorTemperature', 'colorHue', 'colorSaturation', 'lightLevel', 'isOn']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '5817d190-530e-4207-a359-b70321c9eecb_1', 'relationId': '5817d190-530e-4207-a359-b70321c9eecb', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2023-12-15T15:44:20.684Z', 'isReachable': True, 'lastSeen': '2024-07-13T18:07:00.489Z', 'attributes': {'customName': 'Nuno Cid Ponte', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.588.0', 'hardwareVersion': 'P2.5', 'serialNumber': '5817d190-530e-4207-a359-b70321c9eecb', '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': 'PT', 'userConsents': [{'name': 'analytics', 'value': 'enabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'Europe/Lisbon', 'nextSunSet': '2024-07-13T20:03:00.000Z', 'nextSunRise': '2024-07-14T05:24:00.000Z', 'homestate': 'home', 'countryCode': 'XZ', 'coordinates': {'latitude': 38.72072072072072, 'longitude': -9.237590405943559, 'accuracy': -1}, 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': 'e213f027-7dc8-40b9-befa-7bacfe3eb1fb_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-18T19:56:30.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T17:46:28.000Z', 'attributes': {'customName': 'Light 10', 'model': 'TRADFRIbulbE14WWclear250lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.006', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE06D606', 'productCode': 'LED1935C3', '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': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [{'id': 'a9f7e211-7a1c-41d7-b914-7d997c9505c4', 'name': 'Outside Lights Set', 'icon': 'lighting_ached_lamp'}], 'remoteLinks': [], 'isHidden': False}, {'id': '963c7ce6-54f2-4659-acb2-5f580eaa1663_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-30T14:52:32.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T18:34:40.000Z', 'customIcon': 'lighting_nightstand_light', 'attributes': {'customName': 'Screen Light Right', 'model': 'TRADFRI bulb E14 CWS globe 806lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'serialNumber': '60EFABFFFE432053', 'productCode': 'LED2111G6', 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 34.9969482421875, 'colorSaturation': 0.7992125984251969, 'colorTemperature': 2747, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', 'identifyStarted': '2024-05-30T14:57:29.000Z', 'identifyPeriod': 30, 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': 'a7400432-4a38-4d11-821e-d0bb33be1ae1', 'name': 'Media Room', 'color': 'ikea_blue_no_63', 'icon': 'rooms_clapper'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '9f64b431-4485-4e14-83f1-4693c0dafc93_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-04-13T12:58:10.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T17:34:56.000Z', 'customIcon': 'placement_door', 'attributes': {'customName': 'Door Sensor Outside', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE5287CE', 'productCode': 'E2013', 'batteryPercentage': 64, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': True, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '475cc495-4445-4247-ad3e-ddfa149a9cd1_1', 'type': 'blinds', 'deviceType': 'blinds', 'createdAt': '2024-04-05T14:39:51.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T14:27:26.000Z', 'attributes': {'customName': 'Bedroom Blind Right', 'model': 'FYRTUR block-out roller blind', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.13', 'hardwareVersion': '1', 'serialNumber': '6C5CB1FFFE78FA80', 'productCode': 'E1757-140', 'batteryPercentage': 85, 'blindsTargetLevel': 0, 'blindsCurrentLevel': 0, 'blindsState': 'stopped', 'permittingJoin': False, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoUpdate', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'blindsCurrentLevel', 'blindsTargetLevel', 'blindsState']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '7afcc32a-bc70-40d5-8343-bf995d010b53_1', 'type': 'sensor', 'deviceType': 'openCloseSensor', 'createdAt': '2024-05-15T20:28:30.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T17:54:44.000Z', 'attributes': {'customName': 'Bedroom Window Sensor', 'model': 'PARASOLL Door/Window Sensor', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.19', 'hardwareVersion': '1', 'serialNumber': '048727FFFE9A65B8', 'productCode': 'E2013', 'batteryPercentage': 86, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'identifyPeriod': 0, 'isOpen': True, 'permittingJoin': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName']}, 'room': {'id': '61d63b7a-1cf7-40aa-b2d8-09c5d9f056e8', 'name': 'Bedroom', 'color': 'ikea_green_no_65', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '3f59f95c-4277-409f-833e-8d09f9e3a109_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-04-05T13:58:54.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T15:07:41.000Z', 'customIcon': 'lighting_led_strip', 'attributes': {'customName': 'Kitchen Back Cupboard', 'model': 'ORMANAS LED Strip', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.1.10', 'hardwareVersion': '1', 'serialNumber': '287681FFFE0AE18A', 'productCode': 'L2112', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorHue': 94.998779296875, 'colorSaturation': 0.1377952755905512, 'colorTemperature': 3521, 'colorTemperatureMin': 4000, 'colorTemperatureMax': 2202, 'startupTemperature': -1, 'colorMode': 'temperature', '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', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '9c859847-30cf-47e2-8521-84420d88305d', 'name': 'Kitchen', 'color': 'ikea_red_no_39', 'icon': 'rooms_cutlery'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e67bab52-7f2f-4e8e-b6a7-0c10aa06ca1e_1', 'type': 'sensor', 'deviceType': 'environmentSensor', 'createdAt': '2024-04-05T15:06:00.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T19:07:27.000Z', 'attributes': {'customName': 'Sensor Office', 'model': 'VINDSTYRKA', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.11', 'hardwareVersion': '1', 'serialNumber': '0CAE5FFFFE642195', 'productCode': 'E2112', 'currentTemperature': 27, 'currentRH': 41, 'currentPM25': 2, 'maxMeasuredPM25': 999, 'minMeasuredPM25': 0, 'vocIndex': 39, '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']}, 'room': {'id': 'bb08b138-ac1d-4605-b816-731481dea270', 'name': 'Office', 'color': 'ikea_brown_no_41', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'e20308c9-86f3-4383-8271-95079d2770ad_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-06-30T14:04:13.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T12:19:33.000Z', 'attributes': {'customName': 'Outside Lamp 1', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRI bulb E14 CWS globe 806lm', 'productCode': 'LED2111G6', 'serialNumber': '980C33FFFEFF2550', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorMode': 'temperature', 'colorHue': 329.996337890625, 'colorSaturation': 0.7992125984251969, 'startupTemperature': -1, 'colorTemperature': 2702, 'colorTemperatureMax': 2202, 'colorTemperatureMin': 4000, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': '0f08fcd6-a8a6-49b0-b77a-9d5779b82f00', 'name': 'Outside', 'color': 'ikea_blue_no_60', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '67017947-6fe7-4536-8cab-28868fc0e1b7_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-07-13T18:56:01.000Z', 'isReachable': True, 'lastSeen': '2024-07-13T19:01:48.000Z', 'customIcon': 'products_led_bulb', 'attributes': {'customName': 'Office Left', 'firmwareVersion': '1.0.38', 'hardwareVersion': '1', 'manufacturer': 'IKEA of Sweden', 'model': 'TRADFRI bulb E27 CWS globe 806lm', 'productCode': 'LED2109G6', 'serialNumber': '0CAE5FFFFE5E2386', 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -1, 'colorMode': 'temperature', 'colorHue': 8.50341796875, 'colorSaturation': 0.6692913385826772, 'startupTemperature': -1, 'colorTemperature': 2000, 'colorTemperatureMax': 2202, 'colorTemperatureMin': 4000, 'identifyPeriod': 0, 'identifyStarted': '2000-01-01T00:00:00.000Z', 'permittingJoin': False, 'otaPolicy': 'autoUpdate', 'otaProgress': 0, 'otaScheduleEnd': '00:00', 'otaScheduleStart': '00:00', 'otaState': 'readyToCheck', 'otaStatus': 'upToDate'}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'isOn', 'lightLevel', 'colorTemperature', 'colorHue', 'colorSaturation']}, 'room': {'id': 'bb08b138-ac1d-4605-b816-731481dea270', 'name': 'Office', 'color': 'ikea_brown_no_41', 'icon': 'rooms_bedside_table'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}] 2024-07-13 19:07:43.424 INFO (SyncWorker_48) [custom_components.dirigera_platform] -------------- 2024-07-13 19:07:43.424 INFO (SyncWorker_48) [custom_components.dirigera_platform] === END Devices JSON ===

sanjoyg commented 1 month ago

Please try with new release and let me know

vulcanoid1975 commented 1 month ago

Hi @sanjoyg, Sorry but since the integration of Matter on Dirigera, I no longer use this integration, the devices connected to the hub are directly visible and controlled via Matter on the two Home Assistant servers I manage. All devices I own are recognised by the protocol so, having an additional integration for Dirigera would just create copies of the same devices, as a result this integration doesn't fit my use case anymore.

It did fit for a long time and without it I wouldn't be able to control my home, because it bridged a gap ... that gap no longer exists for me, so ...

Thank You for your (and the community) time and amazing work!

KevChief commented 1 month ago

@sanjoyg : I’ll update to the latest HA and integration version and see how it behaves 👍

@vulcanoid1975 : just out of curiosity, how did you get it to work with Matter? What devices are you using between Dirigera hub and HomeAssistant for that? Just their own Zigbee/Matter USB dongle or some other device ?

vulcanoid1975 commented 1 month ago

@KevChief After adding the integration on the Ikea Home Smart app:

image

image

I just added the Dirigera Hub to Home Assistant using the Matter integration with the Home Assistant Mobile App. Scanned the Matter code and voilá ... All devices appeared inside the integration: image

image

I do believe you could just share the Hub from Google Home, but I didn't do that, as some people had some issues with that process.

Mind you ... at first the Matter integration only supported lights and sockets, now (two updates later) it supports basically anything ... I have devices that aren't made by Ikea connected to the hub and are detected and identified by the Matter integration (even Tuya Zigbee sockets with power metering, which worked prior to the launch of the INSPELNING smart socket with metering, even a Tuya Zigbee fingerbot was detected - I'm thinking about disconnecting the SONOFF Zigbee Dongle from HA and use the Dirigera for everything).

My main reason for trying Matter was the RGB control for lights, that never matched the correct colour, I ended up migrating everything to Matter: image

You still have to name them individually since the Matter integration does not inherit naming from Dirigera.

TIP: If you use Google Home, do not add the "works with Google" Ikea integration in Google Home while using Matter, you'll get duplicates as well, this might seem obvious but I did it ... (same for exposing entities from HA to Google, don't)

KevChief commented 1 month ago

@vulcanoid1975 : thanks; will definitely check it out at some point because it seems now! I don’t use HASS OS though but HA via DietPi (core) installation so Matter is harder to do there, not just out of the box because of the controller that needs to be installed etc. Maybe I’ll have some time in the future to check it out how to set that up.

@sanjoyg : I tested the newest version and it seems more stable but I do still have some similar issues though. It’s quite stable for door and water sensor status updates but it keeps failing on the lights. I keep having the following error as well on my system:

Logger: custom_components.dirigera_platform
Source: custom_components/dirigera_platform/hub_event_listener.py:312
integration: IKEA Dirigera Hub Integration (documentation, issues)
First occurred: October 19, 2024 at 10:13:14 PM (29 occurrences)
Last logged: October 21, 2024 at 11:55:13 PM

Failed to create listener or listener exited, will sleep 10 seconds before retrying

I do cut the power to the lights with my wall switches ; I’m not sure if that’s the issue here why it doesn’t work perfectly (?). What happens , is: the lights do go on in HomeAssistant, but when I just normally (and manually) use the lights by using the wall switches, thé HomeAssistant status of the lights isn’t updated to “off” or “unavailable” , they just stay in the “on” state and are never updated even though the IKEA app states “off” and even “unavailable” because of course they are fully offline. When I switch then “on” again, the state in HomeAssistant never switches (not sure if it reconnects or not, because if it doesn’t , knowing change but it’s same if it does because then the state is “on” again which is always already was so the light ik HomeAssistant is always “on” in fact)

When reloading the integration, the current states are set correctly (on, off or unavailable), but right after when putting a light “on” again , it stays in that state almost forever (sometimes they do go to “unavailable” but that’s rare , almost always just “on”) So it feels like the integration doesn’t update the status to “off” and “unavailable” once the lights are in that state (in real life and in ikea app)

thoughts ?

sanjoyg commented 2 weeks ago

Try the latest release, re-open if it is still an issue