Skip to content

Commit 5a23c98

Browse files
authored
Minor change to support Sonoff iFan02 controller flashed with ESPHome firmware
The Sonoff iFan02 flashed with ESPHome firmware doesn't send tyhe "on" command along with the "set speed" command. I added the functionality to send both commands simultaneously.
1 parent a7656b8 commit 5a23c98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dist/fan-control-entity-row.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class CustomFanRow extends Polymer.Element {
206206
this.hass.callService('fan', 'turn_off', {entity_id: this._config.entity});
207207
} else {
208208
this.hass.callService('fan', 'set_speed', {entity_id: this._config.entity, speed: speed});
209+
this.hass.callService('fan', 'turn_on', {entity_id: this._config.entity});
209210
}
210211
}
211212

0 commit comments

Comments
 (0)