Skip to content

Fix delays in rules processing and event propagation - #6398

Merged
manup merged 1 commit into
dresden-elektronik:masterfrom
manup:fix_delays
Oct 7, 2022
Merged

manup merged 1 commit into
dresden-elektronik:masterfrom
manup:fix_delays

Conversation

@manup

@manup manup commented Oct 7, 2022

Copy link
Copy Markdown
Member

When ResourceItems where updated in the "parse" function outside of the JS engine the related events weren't emitted. This leads to rules to fire too late and also Websocket events not emitted.

Affected where:

  • IAS Zone devices {"fn": "ias:zonestatus"}
  • Time sync {"fn": "time"} (likely not so important for rules/websocket)
  • Air Quality sensors using {"fn": "numtostr"}

When ResourceItems where updated in the "parse" function outside of the JS engine
the related events weren't emitted. This leads to rules to fire too late and also Websocket
events not emitted.

Affected where:
- IAS Zone devices `{"fn": "ias:zonestatus"}`
- Time sync `{"fn": "time"}` (likely not so important for rules/websocket)
- Air Quality sensors using `{"fn": "numtostr"}`
@manup manup added this to the v2.19.0-beta milestone Oct 7, 2022
@manup manup added the Fix label Oct 7, 2022
@manup manup mentioned this pull request Oct 7, 2022
@manup
manup merged commit fb9b322 into dresden-elektronik:master Oct 7, 2022
@manup
manup deleted the fix_delays branch January 3, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant