Skip to content

Conversation

@mode0192
Copy link

This PR addresses issues in the SmartIR Fan component:

Fixes state restoration after Home Assistant restart by using the 'percentage' attribute instead of 'speed'.
Improves oscillation handling by only sending commands when the state changes.
Enhances power sensor integration to set a valid speed instead of None.

These changes ensure the fan's UI state matches its physical state after restarts and improve reliability with external controls.
Tested and works in my setup.

@mode0192 mode0192 changed the title Fix fan state restoration and oscillation handling fan: Modernize FanEntity implementation, adopt event helpers, and harden command dispatch Oct 10, 2025
@mode0192 mode0192 changed the title fan: Modernize FanEntity implementation, adopt event helpers, and harden command dispatch fan: adopt percentage-based speeds, migrate to state-change event helper, and harden command validation Oct 10, 2025
…alidate device JSON

This updates SmartIR’s fan platform to the current FanEntity contract, improves on/off reporting with a proper is_on property, switches to the recommended state-change event helper, and adds minimal JSON/command validation to catch common configuration issues early.
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.

1 participant