-
Notifications
You must be signed in to change notification settings - Fork 43
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
FanLinc not reporting speed #126
Comments
The default config entry for fan_linc only publishes on/off on the fan/state topic. It publishes the speed on fan/speed. So you may want to check the config first and make sure that the fan_state_payload input is set to output speed variable. ps: I'm in the process of writing test cases for the fan_linc mqtt class now and think I found a bug in the set speed mqtt input. Once I finish the tests and update the dev branch, it would be great if you could help test it (I don't own a fanlinc so I have to code from the spec file only). |
The log message I put in my first post is what I received on HA. This was the only message; no speed one.
HA:
Happy to help with any testing. Running insteon-mqtt on a Raspberry Pi, HA in a pyvenv on a server. |
Look at the fan_state payload template:
on_str is "on" or "off" so that's what it's going to report. In HA, the speed state topic should be |
That helps... I can now see to speed settings–thank you! Not sure I if you want me to file this as a separate issue, but when I send a command through insteon-mqtt to change the fan (on/off, speed), there is no MQTT message broadcasting the final state. What this means is that if I turn a fan on to medium directly from HA, HA never sees that the fan is on and does not display accordingly. Here is a log of this exact scenario:
Should there be a final message from the FanLinc saying "I'm on, here is my speed"? |
Yes - devices should update their state (which emits an mqtt message on the state topic) when the ACK arrives. Let me take a look since I'm in the middle of writing unit tests for the fan linc right now. It may be the bug I found in the initial set of tests fixes this - I'll check. |
Let me know if I can do any testing on a "live" FanLinc. |
This has been fixed (b941a4e) and pushed to the dev branch. Looks like I accidentally removed the line that updated the speed when I was cleaning up some logging messages recently. If you want to test it out, please grab the dev branch and try it. |
Running v0.6.7. The FanLinc does not seem to be reporting its speed. When I turn the FanLinc ON (speed to LOW):
insteon/aa.bb.cc/fan/state: b'ON'
If I change speed from LOW to MEDIUM, same message:
insteon/aa.bb.cc/fan/state: b'ON'
The text was updated successfully, but these errors were encountered: