Skip to content

Ignore unknown Xiaomi door events - #1602

Merged
Ernst79 merged 2 commits into
custom-components:masterfrom
IoannisArmamentos:fix/xiaomi-obj1019-unknown-events
Sep 11, 2026
Merged

Ernst79 merged 2 commits into
custom-components:masterfrom
IoannisArmamentos:fix/xiaomi-obj1019-unknown-events

Conversation

@IoannisArmamentos

Copy link
Copy Markdown
Contributor

Summary

Prevent unknown Xiaomi door event values from generating false closed states.

Problem

The Xiaomi 0x1019 parser supports the known door-event values 0 through 3.

However, any unsupported value previously fell through to a default result with
opening = 0, which could incorrectly report the door as closed.

Fix

Ignore unsupported 0x1019 event values instead of generating a door state update.

@Ernst79 Ernst79 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Ernst79
Ernst79 merged commit 1c5e655 into custom-components:master Sep 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants