Giter Club home page Giter Club logo

Comments (7)

sanjoyg avatar sanjoyg commented on June 3, 2024

Check the new release, Philip pushed a fix

from dirigera_platform.

 avatar commented on June 3, 2024

Thanks for the update.
Good news is that the door window sensor updates are working now.
Unfortunately the light entity still doesn’t get updates. See logging for a light entity at the top of this post.
The async_schedule… function is raising a error.

from dirigera_platform.

sanjoyg avatar sanjoyg commented on June 3, 2024

My apologies William for the mix-up. So even the async_schedule is raising an exception?

from dirigera_platform.

 avatar commented on June 3, 2024

Hello Sanjoy,

No problem.
Yes the async_schedule is raising exception for light entity.
I’m not familiar with the code but I tried to do some debugging.
The door/window sensor is calling the async_schedule_update_ha_state routine from the base_classes module. This is working fine now.

However the light entity calls a different async_schedule_update_ha_state routine, I assume the one from HA entity class, which causes an exception.

For debugging I created a workaround in module hub_event_listener line 112. This is working fine, and also the brightness issue seems to be solved as well. I could only test with light and door/window sensors.
Hope you can use the workaround:

hub_event_listener.py.txt

from dirigera_platform.

sanjoyg avatar sanjoyg commented on June 3, 2024

Do try the latest release

from dirigera_platform.

jspeckman avatar jspeckman commented on June 3, 2024

Just updated to 1.7.7, with the latest HA release and I am still having the status not updating issue.
Once a light is turned on in HA, the status will change to on, but will not change to off, even though the light will switch off.
Additionally, since the status in HA for the light is "stuck" at on, HA will turn the light back on after a few minutes.
Below is the JSON log output:

2024-06-01 08:20:03.204 INFO (SyncWorker_8) [custom_components.dirigera_platform] --------------
2024-06-01 08:20:03.506 INFO (SyncWorker_8) [custom_components.dirigera_platform] [{'id': 'dcddda9b-41b3-47de-9b4c-80f40222deb8_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-23T15:35:12.000Z', 'isReachable': True, 'lastSeen': '2024-05-31T23:56:18.000Z', 'attributes': {'customName': 'Countertop Sink', 'model': 'TRADFRI Driver 30W', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.4', 'hardwareVersion': '1', 'serialNumber': 'A49E69FFFE011F1D', 'productCode': 'ICPSLC2430NAIL2', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 1, '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': '481ec555-5359-4204-8f0a-006651c071d7', 'name': 'Kitchen', 'color': 'ikea_blue_no_58', 'icon': 'rooms_kitchen'}, 'deviceSet': [], 'remoteLinks': ['161f0c7d-cedb-42b4-953b-7ea8de9bacc7_1'], 'isHidden': False}, {'id': '6c28c5a9-4777-49e2-ba9f-fcb40c4349d3_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-23T15:08:14.000Z', 'isReachable': True, 'lastSeen': '2024-05-31T23:56:19.000Z', 'attributes': {'customName': 'Countertop Cooktop', 'model': 'TRADFRI Driver 30W', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.4', 'hardwareVersion': '1', 'serialNumber': '385CFBFFFEE892C9', 'productCode': 'ICPSLC2430NAIL2', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 1, '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': '481ec555-5359-4204-8f0a-006651c071d7', 'name': 'Kitchen', 'color': 'ikea_blue_no_58', 'icon': 'rooms_kitchen'}, 'deviceSet': [], 'remoteLinks': ['161f0c7d-cedb-42b4-953b-7ea8de9bacc7_1'], 'isHidden': False}, {'id': 'a50306b0-0450-4dcc-b210-c132aa180bc1_1', 'relationId': 'a50306b0-0450-4dcc-b210-c132aa180bc1', 'type': 'gateway', 'deviceType': 'gateway', 'createdAt': '2023-03-20T19:41:08.544Z', 'isReachable': True, 'lastSeen': '2024-06-01T13:20:00.800Z', 'attributes': {'customName': 'Home', 'model': 'DIRIGERA Hub for smart products', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.588.0', 'hardwareVersion': 'P2.5', 'serialNumber': 'a50306b0-0450-4dcc-b210-c132aa180bc1', 'identifyStarted': '2024-05-30T08:07:37.000Z', 'identifyPeriod': 65534, 'otaStatus': 'upToDate', 'otaState': 'readyToCheck', 'otaProgress': 0, 'otaPolicy': 'autoDownload', 'otaScheduleStart': '00:00', 'otaScheduleEnd': '00:00', 'permittingJoin': False, 'backendConnected': False, 'backendConnectionPersistent': False, 'backendOnboardingComplete': True, 'backendRegion': 'us-east-1', 'backendCountryCode': 'US', 'userConsents': [{'name': 'analytics', 'value': 'disabled'}, {'name': 'diagnostics', 'value': 'enabled'}], 'logLevel': 3, 'coredump': False, 'timezone': 'America/Chicago', 'nextSunSet': None, 'nextSunRise': None, 'homestate': 'home', 'countryCode': 'XZ', 'isOn': False}, 'capabilities': {'canSend': [], 'canReceive': ['customName', 'permittingJoin', 'userConsents', 'logLevel', 'time', 'timezone', 'countryCode', 'coordinates']}, 'deviceSet': [], 'remoteLinks': []}, {'id': '30fb4fc2-e9dd-4af9-ad48-2c3fc3b7c722_1', 'type': 'controller', 'deviceType': 'lightController', 'createdAt': '2024-05-28T07:17:59.000Z', 'isReachable': True, 'lastSeen': '2024-06-01T12:13:29.000Z', 'attributes': {'customName': 'MB Right Nightstand', 'model': 'Remote Control N2', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.4.11', 'hardwareVersion': '1', 'serialNumber': '003C84FFFE2EF59F', 'productCode': 'E2001', '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': '3af9917c-222e-4414-9f1b-7fe36f98f85b', 'name': 'Master Bedroom', 'color': 'ikea_beige_1', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '57de7071-72c7-4b16-bc7d-41e6d345df4b_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2023-10-08T12:29:46.000Z', 'isReachable': True, 'lastSeen': '2024-05-31T20:51:14.000Z', 'customIcon': 'lighting_table_lamp', 'attributes': {'customName': 'MB Right Nightstand', 'model': 'TRADFRIbulbE12WSglobeopal470lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.012', 'hardwareVersion': '1', 'serialNumber': '943469FFFEB77175', 'productCode': 'LED2002G5NA', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 100, 'startUpCurrentLevel': -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']}, 'room': {'id': '3af9917c-222e-4414-9f1b-7fe36f98f85b', 'name': 'Master Bedroom', 'color': 'ikea_beige_1', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': ['30fb4fc2-e9dd-4af9-ad48-2c3fc3b7c722_1'], 'isHidden': False}, {'id': '63fb3e1f-263a-4442-8d1c-75925e93da6c_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-23T15:07:51.000Z', 'isReachable': True, 'lastSeen': '2024-05-31T23:56:18.000Z', 'attributes': {'customName': 'Countertop', 'model': 'TRADFRI Driver 30W', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.4', 'hardwareVersion': '1', 'serialNumber': 'A49E69FFFE0120B4', 'productCode': 'ICPSLC2430NAIL2', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 1, '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': '481ec555-5359-4204-8f0a-006651c071d7', 'name': 'Kitchen', 'color': 'ikea_blue_no_58', 'icon': 'rooms_kitchen'}, 'deviceSet': [], 'remoteLinks': ['161f0c7d-cedb-42b4-953b-7ea8de9bacc7_1'], 'isHidden': False}, {'id': '8cd4d8df-3820-4a4a-b62c-0ee30d291260_1', 'type': 'controller', 'deviceType': 'lightController', 'createdAt': '2024-05-27T21:20:00.000Z', 'isReachable': True, 'lastSeen': '2024-06-01T02:10:38.000Z', 'attributes': {'customName': 'MB Left Nightstand', 'model': 'Remote Control N2', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '2.4.11', 'hardwareVersion': '1', 'serialNumber': '84BA20FFFE6B3563', 'productCode': 'E2001', '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': '3af9917c-222e-4414-9f1b-7fe36f98f85b', 'name': 'Master Bedroom', 'color': 'ikea_beige_1', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': 'a946dd27-efa4-49a2-ac63-e6c98b74d2ff_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2023-08-28T08:26:13.000Z', 'isReachable': True, 'lastSeen': '2024-06-01T08:18:37.000Z', 'customIcon': 'lighting_table_lamp', 'attributes': {'customName': 'MB Left Nightstand', 'model': 'TRADFRIbulbE12WSglobeopal470lm', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.012', 'hardwareVersion': '1', 'serialNumber': '943469FFFEACD807', 'productCode': 'LED2002G5NA', 'isOn': True, 'startupOnOff': 'startOn', 'lightLevel': 1, 'startUpCurrentLevel': -1, 'colorTemperature': 3937, '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']}, 'room': {'id': '3af9917c-222e-4414-9f1b-7fe36f98f85b', 'name': 'Master Bedroom', 'color': 'ikea_beige_1', 'icon': 'rooms_bed'}, 'deviceSet': [], 'remoteLinks': ['8cd4d8df-3820-4a4a-b62c-0ee30d291260_1'], 'isHidden': False}, {'id': '161f0c7d-cedb-42b4-953b-7ea8de9bacc7_1', 'type': 'controller', 'deviceType': 'lightController', 'createdAt': '2023-09-01T09:20:49.000Z', 'isReachable': True, 'lastSeen': '2024-06-01T00:49:52.000Z', 'attributes': {'customName': 'Countertop Lights', 'model': 'TRADFRI remote control', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '24.4.5', 'hardwareVersion': '1', 'serialNumber': '04CD15FFFE8B2B8C', 'productCode': 'E1810', 'batteryPercentage': 20, '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': '481ec555-5359-4204-8f0a-006651c071d7', 'name': 'Kitchen', 'color': 'ikea_blue_no_58', 'icon': 'rooms_kitchen'}, 'deviceSet': [], 'remoteLinks': [], 'isHidden': False}, {'id': '393be306-d85b-47a0-84da-25036c0118f4_1', 'type': 'light', 'deviceType': 'light', 'createdAt': '2024-05-23T15:35:34.000Z', 'isReachable': True, 'lastSeen': '2024-06-01T06:11:51.000Z', 'attributes': {'customName': 'Countertop Bar', 'model': 'TRADFRI Driver 30W', 'manufacturer': 'IKEA of Sweden', 'firmwareVersion': '1.0.4', 'hardwareVersion': '1', 'serialNumber': 'A49E69FFFE012314', 'productCode': 'ICPSLC2430NAIL2', 'isOn': False, 'startupOnOff': 'startOn', 'lightLevel': 1, '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': '481ec555-5359-4204-8f0a-006651c071d7', 'name': 'Kitchen', 'color': 'ikea_blue_no_58', 'icon': 'rooms_kitchen'}, 'deviceSet': [], 'remoteLinks': ['161f0c7d-cedb-42b4-953b-7ea8de9bacc7_1'], 'isHidden': False}]
2024-06-01 08:20:03.507 INFO (SyncWorker_8) [custom_components.dirigera_platform] --------------
2024-06-01 08:20:03.507 INFO (SyncWorker_8) [custom_components.dirigera_platform] === END Devices JSON ===

Edit: Rolling back to 1.7.4 fixes the issue for me.

from dirigera_platform.

sanjoyg avatar sanjoyg commented on June 3, 2024

Thank you for testing it out. Do enable debug for the integration and paste the DEBUG logs when this issue occurs that way I can figure what is going on

from dirigera_platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.