dirigera_platform icon indicating copy to clipboard operation
dirigera_platform copied to clipboard

HA status not updated

Open William-66 opened this issue 9 months ago • 4 comments

When operating a door/window sensor, the HA status is not updated. I see next errors in the logging:

=============

Logger: homeassistant.helpers.frame Source: helpers/frame.py:190 First occurred: 17:38:46 (1 occurrences) Last logged: 17:38:46

Detected that custom integration 'dirigera_platform' calls async_write_ha_state from a thread at custom_components/dirigera_platform/base_classes.py, line 81: listener.async_schedule_update_ha_state(force_refresh), please report it to the author of the 'dirigera_platform' custom integration

=============

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:118 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 17:38:46 (1 occurrences) Last logged: 17:38:46

error processing hub event

===========

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:119 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 17:38:46 (1 occurrences) Last logged: 17:38:46

{"id":"e3379a28-9b21-41b4-89f3-89b6553952a8","time":"2024-05-19T15:38:46.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"bac3c013-4bba-427c-9b10-2c58b8cff1e3_1","type":"sensor","deviceType":"openCloseSensor","createdAt":"2024-05-16T16:55:14.000Z","isReachable":true,"lastSeen":"2024-05-19T17:38:46.000Z","attributes":{"isOpen":true},"remoteLinks":[]}}

==========

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:120 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 17:38:46 (1 occurrences) Last logged: 17:38:46

Detected that custom integration 'dirigera_platform' calls async_write_ha_state from a thread at custom_components/dirigera_platform/base_classes.py, line 81: listener.async_schedule_update_ha_state(force_refresh). Please report it to the author of the 'dirigera_platform' custom integration.

========

Also when I switch a light on/off the HA status is not updated. Next error when turning a light off:

========

Logger: homeassistant.helpers.frame Source: helpers/frame.py:190 First occurred: 18:48:14 (1 occurrences) Last logged: 18:48:14

Detected that custom integration 'dirigera_platform' calls async_write_ha_state from a thread at custom_components/dirigera_platform/hub_event_listener.py, line 115: entity.async_schedule_update_ha_state(False), please report it to the author of the 'dirigera_platform' custom integration

=========

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:118 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 18:48:14 (1 occurrences) Last logged: 18:48:14

error processing hub event

========

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:119 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 18:48:14 (1 occurrences) Last logged: 18:48:14

{"id":"a336de1d-d212-447a-8be7-ba89028a180a","time":"2024-05-19T16:48:14.000Z","specversion":"3.150.0","source":"urn:com:ikea:homesmart:iotc:zigbee","type":"deviceStateChanged","data":{"id":"6afe28e4-fd52-41d6-a3a4-8c68a30098f5_1","type":"light","deviceType":"light","createdAt":"2024-05-11T18:26:18.000Z","isReachable":true,"lastSeen":"2024-05-19T18:48:14.000Z","attributes":{"isOn":false},"remoteLinks":["ceeafbc0-f9f5-4586-8eaa-fa9d587ae4cf_1"]}}

==========

This error originated from a custom integration.

Logger: custom_components.dirigera_platform Source: custom_components/dirigera_platform/hub_event_listener.py:120 integration: IKEA Dirigera Hub Integration (documentation, issues) First occurred: 18:48:14 (1 occurrences) Last logged: 18:48:14

Detected that custom integration 'dirigera_platform' calls async_write_ha_state from a thread at custom_components/dirigera_platform/hub_event_listener.py, line 115: entity.async_schedule_update_ha_state(False). Please report it to the author of the 'dirigera_platform' custom integration.

========

William-66 avatar May 19 '24 15:05 William-66