Closed jshank closed 2 years ago
You are absolutely correct! It seems when the last round of patches were merged someone had done some refactoring of the way that messages were sent to the spa that didn't work with my code. I have pulled the latest version and can replicate the issue.
I spent a bit of time understanding the refactoring and updating the the filter code and with some minimal testing, it is now working for me. I will do some more testing tomorrow and package it up into a pull request.
Thanks so much for the report.
@BowenMarmot I pulled ccutrer/balboa_worldwide_app#46 and it's working great on my tub. Thanks!
Thanks, that is great to hear!
Just as a heads up since I gather from your commits you are using HomeAssistant, there is one race condition I have discovered and resolved in my own branch. When an automation sends updates to a number of the filter cycle values in rapid succession it can cause a second (or third or ..) message to be sent to the spa before the previous, new values, get updated from the spa. The somewhat inelegant but functional "fix" is to slow down the calls to the message with a "sleep" in the client.rb. I am going to hold off submitting another PR for the moment in case there are other edge cases that come up in testing/use.
this is working on main
; I'll release a new gem in the next day or two
I've not had any luck setting any of the new filter options via MQTT. They all throw
NoMethodError
and then Balboa MQTT Bridge restarts.Setting filter1hour to 12
Setting filter1minute to 10