-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT fan does not work in optimistic mode #22967
Comments
Optimistic mode is simply not implemented in MQTT Fan even though the configuration option is there, I'll fix that + add tests soon. |
Hey there @home-assistant/core, mind taking a look at this issue as its been labeled with a integration ( |
Thanks for the feedbacl @emontnemery. It's also described in the documentation. |
I guess you mean you want the MQTT component to SEND a numeric value, not receive one? |
Correct. I needed an HA MQTT component to SEND to my esp8266 in mqtt. BTW the MQTT light was not |
Yes, that's an undocumented "feature" of MQTT discovery. Are you using that? |
Yes, I'm using MQTT discovery. It just that in the documentation of (all?) MQTT components, it says that
If MQTT forces one, then this is not true anymore. |
Yes, it's not intuitive. I opened PR #22998 to deprecate the implicit setting of |
Hi @emontnemery , I did test #22998 . Now the light has no implicit The fan still doesn't work on optimistic mode, so I keep the bug open for now. |
I did test #22976. The fan is not optimistic.
|
I tested again #22976 and it works. MQTT fans with no state_topic are optimistic and when declared with a state_topic, they are not. All works as expected. |
Home Assistant release with the issue:
0.91.2
Operating environment (Hass.io/Docker/Windows/etc.):
pip installed; Python 3.7.3rc1
Component/platform:
MQTT Fan
Description of problem:
MQTT fan does not work in optimistic mode. When discovered without
state_topic
and/orwith
"optimistic":"true"
the fan behaves in non-optimistic mode: setting up manually to ON and it will turn back to OFF by itself.Steps to reproduce:
mosquitto_pub -t 'homeassistant/fan/underground/config' -m '{"name":"fanUnderground","cmd_t":"homeassistant/fanUnderground/set"}'
2 sec later the fans turns back to off by itself.
Same behaviour when I set a
state_topic
and/or"optimistic":"true"
in the mqtt configuration message.The text was updated successfully, but these errors were encountered: