Closed boojew closed 4 years ago
Playing around a bit, I am wondering if calling the speed is a better approach? Not sure. Perhaps there should be a variable. I essentially just changed line 208 to
this.hass.callService('fan', 'set_speed', {entity_id: this._config.entity, speed: speed});
And it solved my issue and also worked for my other fans. What do you think?
which mqtt based fan is it?
if you go to the services tab and select the fan.turn_off service and put in your entity_id for your fan does the fan turn off when you call the service?
It’s a zigbee fan through zigbee2mqtt. I’ve tried calling the service, but it does not stop.
Sorry for all the questions but I'm trying to fully understand the situation before making changes...
If you use a regular entity row for the fan controls and click on the toggle switch for the fan are you able turn the fan off from there?
and if you can what does the speed shown in the drop down menu below that say?
Yea, it doesnt work.. Perhaps this is actually more of a Zigbee2Mqtt issue in the way the fan domain is implemented Before turning off After turning off
Setting the speed as off does work
Yeah I think it is a zigbee2mqtt issue.
Does that fan happen to be a Hampton Bay fan controller?
I just bought one of those a week ago and it gives me the exact same "speed list".
I have it connected to my system using the ZHA integration and it works the same as the rest of my fans do and works fine with my control row config.
Yea, that's the fan!
then it has to be a problem with zigbee2mqtt since mine is working perfectly using the control row with it connected via ZHA.
EDIT: seems I misunderstood how sendStateWithSpeed was supporsed to work. That is not the issue...
I have a MQTT based fan that, for some reason, will not turn off when using v1.5 of this plugin w/ hass 0.110. Works w/ my 3 other Insteon based fans. From what I can see the service call fan.turn_off doesnt seem to be sufficient, but rather the fan expects fan.set_speed set to off..