Skip to content

Commit

Permalink
Minor change to support Sonoff iFan02 controller flashed with ESPHome…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
finity69x2 authored Jun 17, 2019
1 parent a7656b8 commit 5a23c98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/fan-control-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class CustomFanRow extends Polymer.Element {
this.hass.callService('fan', 'turn_off', {entity_id: this._config.entity});
} else {
this.hass.callService('fan', 'set_speed', {entity_id: this._config.entity, speed: speed});
this.hass.callService('fan', 'turn_on', {entity_id: this._config.entity});
}
}

Expand Down

0 comments on commit 5a23c98

Please sign in to comment.