SmartIR icon indicating copy to clipboard operation
SmartIR copied to clipboard

fan: adopt percentage-based speeds, migrate to state-change event helper, and harden command validation

Open mode0192 opened this issue 5 months ago • 0 comments

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 avatar Jul 23 '25 01:07 mode0192