Skip to content
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 fan speed state updates don't send MQTT #37

Closed
TD22057 opened this issue Mar 2, 2018 · 1 comment
Closed

FanLinc fan speed state updates don't send MQTT #37

TD22057 opened this issue Mar 2, 2018 · 1 comment

Comments

@TD22057
Copy link
Owner

TD22057 commented Mar 2, 2018

When FanLinc receives a state update, it only sends the on/off state update and doesn't update the fan speed state.

mosquitto_pub -t 'insteon/aa.bb.cc/fan/speed/set' -m 'low'
yields:
   insteon/aa.bb.cc/fan/speed/set low
   insteon/aa.bb.cc/fan/state ON

Reported by @masterdka

@TD22057
Copy link
Owner Author

TD22057 commented Mar 2, 2018

The bug is that the fanlinc mqtt class was using the dimmer template data generator so the fan speed was never set. The mqtt template then got a null payload since the payload is level_str which was null which skipped the publishing. I've fixed it to use the right template data method and it now publishes these messages:

mosquitto_pub -t 'insteon/aa.bb.cc/fan/speed/set' -m 'low'
yields:
   insteon/aa.bb.cc/fan/speed/set low
   insteon/aa.bb.cc/fan/state ON
   insteon/aa.bb.cc/fan/speed/state low

@TD22057 TD22057 closed this as completed Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant