Skip to content

fix: keep event entity available when a device disappears (#28), release 3.1.0 - #29

Merged
odtgit merged 1 commit into
masterfrom
fix/issue-28-event-availability
Oct 15, 2026
Merged

odtgit merged 1 commit into
masterfrom
fix/issue-28-event-availability

Conversation

@odtgit

@odtgit odtgit commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Fixes #28.

Event entity went unavailable on device loss; on reconnect HA restored the old timestamp with event_type/key, so state-triggered automations replayed the last key on every reconnect (sleeping BT remotes).

  • HACS: event entity always available; switch keeps presence-based availability.
  • MQTT discovery: event follows gateway status only; switch keeps gateway + per-device availability.
  • Validate script, README, tests updated. Version 3.1.0.

Verified in HA 2026.9.4 with a uinput repro: 1 press + 3 unplug/replug cycles fired the automation 4x before, 1x after.

Event entity follows gateway status only (MQTT discovery) or stays
available (HACS), so reconnects no longer replay the last key to state
triggers. Switch keeps presence-based availability. Release 3.1.0.
@odtgit
odtgit merged commit 747e1f3 into master Oct 15, 2026
15 of 16 checks passed
@odtgit
odtgit deleted the fix/issue-28-event-availability branch October 15, 2026 17:20
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.

Automation gets in an endless loop because of connect/reconnect behaviour of bluetooth remote

1 participant