Closed Gamerayers closed 2 years ago
Hey,
thank you for opening the issue. I've not neglegted the project - rather, I'm glad to enjoy it working ;-)
So your tub is completely different than mine in its configuration. I think we can work this out. Please post as many details of the controller you can get hold of (control unit, controller...) for others to find this quicker.
Your first step should be to remove the comment slashes in this line: https://github.com/cribskip/esp8266_spa/blob/015e468864a35a08b53799d69ec0e647002d2343/src/esp8266_spa.ino#L865
Then you get on Spa/rcv the received data stream. Then we can check if the messages are the same format.
Additionally, you referenced https://github.com/cribskip/esp8266_spa/blob/015e468864a35a08b53799d69ec0e647002d2343/src/esp8266_spa.ino#L418
Those comments before each block helped me to keep in sync with the wiki. It simply means: Q_in[18] holds byte 13 of the wiki documented message. Wiki documentation simply used an offset to my implementation and I didn't want to drop bytes just to make it fit.
HTH Sascha
Hi Sascha,
Thanks for the reply. I've made some progress, but definitely some odd things. I had to swap out the board since the previous one must have been shocked or something and can't be updated by USB and stopped communicated. No biggy because the different board is acting a little different.
Looking at the below, it appears that the temp is correct, but maybe is being scaled to F even though it is already in F. 93 is what my spa is set to in F, but Home Assistant now says it is 199. The Jet_1 and Jet_2 appear to be correct now. Light is also correct, but when I try to command them from the Home Assistant, it doesn't do anything.
RCV goes through a number of values, but it moves too quickly. I've posted a graph below.
Highrange, heat state, heat_mode, blow and circ aren't really options on my spa, so might be part of it. I also can't enable heatingmode on the hot tub, so not sure if this is something simply that should be a sensor instead of a switch for my tub.
Info about my hot tub. Its a 2020 Master Spa. Clarity Series Balance 7. Here's some images.
Spa/rcv contains the instantly received bytes and is very fast for human eye :-) Please consider viewing it with a MQTT Client capable of displaying the history (e.g. mosquitto-sub on Linux).
Really seems to do C to F conversion twice. Maybe you're the first user with imperial units. Welcome :-D We may fix this with a compile time define-switch for now.
Did you see Spa/config messages? If now, this may cause the conversation problem: https://github.com/cribskip/esp8266_spa/blob/015e468864a35a08b53799d69ec0e647002d2343/src/esp8266_spa.ino#L307
I'd really like to view one or two complete messages from your tub using the rcv message channel. Just to get to know your controller better and decide on the way to go.
Cheers, Sascha
I don't seem to see the config message. Simply doesn't ever seem to populate. So I'm guessing that is part of the issue with the temperature. (image below)
As the messages doesn't seem to repeat exactly, I am not sure where the start of the rcv message and the end is. So I logged it for a little bit. <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:277 -- | -- | -- Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:277 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:278 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:278 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:278 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:278 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:279 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:279 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:279 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:279 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:280 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:280 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:280 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:280 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:280 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:281 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:281 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:281 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:282 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:282 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:282 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:282 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:282 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:283 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:283 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:283 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:283 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:284 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:284 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:284 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:285 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:285 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:285 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:285 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:286 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:286 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:286 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:286 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:287 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:287 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:287 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:287 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:288 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:288 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:288 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:288 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:289 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:289 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:289 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:289 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:290 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:290 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:290 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:290 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:291 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:291 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:291 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:292 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:292 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:292 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:292 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:292 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:292 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:293 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:293 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:293 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:294 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:294 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:294 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:295 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:295 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:295 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:295 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:296 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:296 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:296 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:296 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:297 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:297 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:297 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:297 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:297 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:298 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:298 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:298 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:298 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:299 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:299 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:299 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:299 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:299 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:302 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:302 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:302 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:302 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:303 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:303 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:303 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:303 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:304 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:305 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:305 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:306 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:306 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:306 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:307 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:307 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:307 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:307 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:308 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:308 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:308 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:308 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:309 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:310 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:311 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:312 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:312 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:313 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:313 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:313 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:313 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:314 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:314 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:314 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:314 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:315 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:315 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:316 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:316 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:316 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:317 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:317 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:317 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:317 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:318 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:320 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:320 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:320 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:321 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:321 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:321 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:322 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:322 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:322 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:323 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:323 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:323 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:323 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:324 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:324 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:324 Topic: Spa/rcvQoS: 0 | 0 | 2022-04-26 13:55:45:325 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:325 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:325 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:326 Topic: Spa/rcvQoS: 0 | 5 | 2022-04-26 13:55:45:326 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:326 Topic: Spa/rcvQoS: 0 | 62 | 2022-04-26 13:55:45:326 Topic: Spa/rcvQoS: 0 | 6 | 2022-04-26 13:55:45:327 Topic: Spa/rcvQoS: 0 | 92 | 2022-04-26 13:55:45:327 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:327 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:327 Topic: Spa/rcvQoS: 0 | 126 | 2022-04-26 13:55:45:328 Topic: Spa/rcvQoS: 0 | 16 | 2022-04-26 13:55:45:328 Topic: Spa/rcvQoS: 0 | 191 | 2022-04-26 13:55:45:328 Topic: Spa/rcvQoS: 0 | 7 | 2022-04-26 13:55:45:328 Topic: Spa/rcvQoS: 0 | 17 | 2022-04-26 13:55:45:329
After I finally got it hooked up to my hot tub on Friday, I've been trying to figure out how to understand why the data is all incorrect. The temperature is really bad, but ultimately, I want to publish the entire read data, all the flags, from the spa to 1 or 2 MQTT messages. What's the easiest way to do this. I'm guessing, based on reading the information on the wiki, that my hot tub is using differen bits for most things on here. My Jet has 2 speeds, but the jets on here is only 1. My aux controls a jet, but there are 2 controls for jets on here which are different. My thinking is go through, figure out why the data is all off. Once I have the correct data, I can realign the signals and publish it correctly.
I guess where I'm most confused at this point is this line of code: if (bitRead(Q_in[18], 1) == 1). Why is Q_in[18] byte 13?
It seems like both the developers working on this maybe aren't working on anything on github since Oct 2021. It would be helpful is anybody has some insight on to how to make this work for my specific spa. I know I'm really close, but getting the exact right parameters maybe is the hardest part. I am concerned that the temperature is off by so much though.