Skip to content

Add hood wind speed sensor and faster state feedback after commands - #371

Merged
gvigroux merged 2 commits into
gvigroux:masterfrom
louisthissen:hood-wind-speed-and-faster-refresh
Oct 30, 2026
Merged

gvigroux merged 2 commits into
gvigroux:masterfrom
louisthissen:hood-wind-speed-and-faster-refresh

Conversation

@louisthissen

Copy link
Copy Markdown
Contributor

Summary

Two small changes, tested on a Haier HATS9CBS4BWIFI hood (integration 0.8.4, Home Assistant 2026.x):

  1. New sensor for hoods: Wind speed (windSpeed, 0 = off … 5 = max).
    The hood exposes its current suction speed, but no entity reported it, so there was no way to get state feedback for the fan in Home Assistant. The sensor is only created for appliance type HO when windSpeed is present.

  2. Faster refresh after a command.
    HonBaseCoordinator now passes a Debouncer with a 1.5 s cooldown (constant REQUEST_REFRESH_COOLDOWN in base.py) instead of Home Assistant's 10 s default. With the default, a async_request_refresh() issued right after a command was often swallowed by the cooldown, so the UI showed the new state only ~20–30 s later. With 1.5 s, bursts of refresh requests are still coalesced (and immediate=True keeps the first one instant), but feedback arrives within a few seconds. The regular 60 s polling interval is unchanged, so the load on the hOn API only increases when the user actually sends commands.

Testing

  • Running in production on the hood above: the speed sensor follows changes made from the hood panel and from HA; state feedback after a command dropped from ~20–30 s to ~1–3 s.
  • No change for other appliance types except the shorter refresh cooldown.

@gvigroux
gvigroux merged commit afdb54f into gvigroux:master Oct 30, 2026
2 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