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

Pumps stuck on #1

Closed
kiwiRickNZ opened this issue Dec 20, 2022 · 14 comments
Closed

Pumps stuck on #1

kiwiRickNZ opened this issue Dec 20, 2022 · 14 comments

Comments

@kiwiRickNZ
Copy link

@natekspencer thanks so much for getting this working!

I have one weird issue where if I turn any of the 3 pumps on for the spa they turn on but then in the ui for ha they turn straight back off. The pumps in the spa are now stuck on and running.

@natekspencer
Copy link
Owner

Can you enable debug logs for pubalboa and then post them after you toggle a pump? I'd like to see the messages that are sent/received to potentially decipher what's going on.

@kiwiRickNZ
Copy link
Author

sure thing, how do I do that?

@400killer
Copy link

I have never used any python scripts. so running pybalboa was a learning experience. I was unable to get any more detail. It looks like the problem is the spa is not giving HA status that it is running, and so the entity reverts back to off. Which doesnt allow you to send the off command. That is the error I was getting in pybalboa. I can confirm HA does have the ability to control it off. I used the service under developer tools in HA. Calling the service on the pump on switches it on. and calling the HA genertic off turns it off. It is boiling down to the statsu being sent from the spa to the handler.

******* Testing CRC **********
Expected CRC=0x77 got 0x77
Expected CRC=0x06 got 0x06

******** Testing basic commands **********
Asking for module identification
Got msg: 7e1e0abf94021480001527735be20000000000000000001527ffff735be26f7e
Mac Addr: 00:15:27:73:5b:e2
iDigi Device Id: 00000000-00000000-001527FF-FF735BE2

Asking for device configuration
Got msg: 7e0b0abf2e060001100000d27e
Pump Array: [2, 1, 0, 0, 0, 0]
Light Array: [1, 0]
Aux Array: [0, 0]
Circulation Pump: 0
Blower: 0
Mister: 0

Asking for system information
Got msg: 7e1a0abf2464c91400425035303147312001129058ff01060400e77e
Model: BP501G1
Software Version: 20.0
Configuration Signature: 129058ff
Setup Mode: 1
Software Version ID: M100_201 V20.0
Voltage: 240
Heater Type: Unknown
DIP Switch: 0000010000000000

Asking for setup parameters
Got msg: 7e0e0abf25060132635068090341637e
Min Temps: [[50, 10.0], [80, 26.5]]
Max Temps: [[99, 37.0], [104, 40.0]]
Nr of pumps: 2

Asking for filter cycle info
Got msg: 7e0d0abf23170002000800000fda7e
Filter 1: 23:00
Filter 1 Duration: 2:00
Filter 2: 8:00 (disabled)
Filter 2 Duration: 0:15

Reading panel update
Got msg: 7e1dffaf13000064121100005a00000c01000000000000000066000000d37e
New data as of 1671499062.9376657
Current Temp: 100.0
Tempscale: Fahrenheit
Set Temp: 102.0
Heat Mode: Ready
Heat State: Idle
Temp Range: High
Pump Status: [1, 0, 0, 0, 0, 0]
Circulation Pump: None
Light Status: [0, 0]
Mister Status: None
Aux Status: [0, 0]
Blower Status: None
Spa Time: 18:17 12h
Filter Mode: Off

Please add the above section to issue:
garbled1/pybalboa#1
******** Testing engine ***********
Config is loaded:
Pump Array: [2, 1, 0, 0, 0, 0]
Light Array: [1, 0]
Aux Array: [0, 0]
Circulation Pump: 0
Blower: 0
Mister: 0

New data as of 1671499063.5314002
Current Temp: 100.0
Tempscale: Fahrenheit
Set Temp: 102.0
Heat Mode: Ready
Heat State: Idle
Temp Range: High
Pump Status: [1, 0, 0, 0, 0, 0]
Circulation Pump: None
Light Status: [0, 0]
Mister Status: None
Aux Status: [0, 0]
Blower Status: None
Spa Time: 18:17 12h
Filter Mode: Off

Trying to set temperatures

Current Set Temp: 102.0
Set to 104.0
Set Temp is now 104.0
Current Set Temp: 104.0
Set to 102.0
Set Temp is now 102.0

Trying to operate pump 0 (first pump)

Current Status: Low
Set to Low
Pump Status is now Low
Current Status: Low
Set to Off
Pump Status was not changed to Off after 5 seconds
Current Status: Low
Set to High
Pump Status is now High
Current Status: High
Set to Off
Pump Status was not changed to Off after 5 seconds

Play with heatmode

Heat Mode: Ready
Set to Ready
Heat Mode is now Ready
Heat Mode: Ready
Set to Rest
Heat Mode is now Rest
Heat Mode: Rest
Set to Ready
Heat Mode is now Ready

@natekspencer
Copy link
Owner

@kiwiRickNZ / @400killer,

In Home Assistant, edit your configuration.yaml file and add this section (if there is already a logger section, just add the custom_components.balboa: debug and pybalboa: debug to it) and restart Home Assistant:

logger:
  default: warning
  logs:
    custom_components.balboa: debug
    pybalboa: debug

@400killer
Copy link

That makes since, I was trying to get it to debug in Python 3.11. I already had them set to debug. I enabled the integration, turned on pump 2 through the entity. In home assistant it showed on, then went back to off. However pump 1 showed on. Since I couldn't turn it off, and HA assumed the state was already off. I went to services and called the generic turn off service for pump 2. And it turned off. the logs are below.

2022-12-19 19:05:37.567 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -- establishing connection
2022-12-19 19:05:37.586 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -- connected
2022-12-19 19:05:37.586 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- DEVICE_PRESENT: 050abf0477
2022-12-19 19:05:37.586 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- REQUEST_SYSTEM_INFORMATION: 080abf2202000089
2022-12-19 19:05:37.586 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- REQUEST_SETUP_PARAMETERS: 080abf22040000f4
2022-12-19 19:05:37.586 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- REQUEST_DEVICE_CONFIGURATION: 080abf2200000158
2022-12-19 19:05:37.586 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- REQUEST_FILTER_CYCLE: 080abf2201000034
2022-12-19 19:05:37.608 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> MODULE_IDENTIFICATION: 1e0abf94021480001527735be20000000000000000001527ffff735be26f
2022-12-19 19:05:37.660 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> SYSTEM_INFORMATION: 1a0abf2464c91400425035303147312001129058ff01060400e7
2022-12-19 19:05:37.692 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> SETUP_PARAMETERS: 0e0abf2506013263506809034163
2022-12-19 19:05:37.730 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> DEVICE_CONFIGURATION: 0b0abf2e060001100068cd
2022-12-19 19:05:37.759 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> FILTER_CYCLE: 0d0abf23170002000800000fda
2022-12-19 19:05:37.811 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> STATUS_UPDATE: 1dffaf13000066130500005a0000040000000000000000006600000064
2022-12-19 19:05:37.811 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Temperature range is now HIGH
2022-12-19 19:05:37.811 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Light 1 is now OFF
2022-12-19 19:05:37.811 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Heat mode is now READY
2022-12-19 19:05:37.811 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 1 is now OFF
2022-12-19 19:05:37.811 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 2 is now OFF
2022-12-19 19:05:49.682 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- TOGGLE_STATE: 060abf1105e5
2022-12-19 19:05:49.804 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> STATUS_UPDATE: 1dffaf13000066130500005a00000c0900000000000000006600000071
2022-12-19 19:05:49.804 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 1 is now LOW
2022-12-19 19:05:49.806 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 2 is now UNKNOWN
2022-12-19 19:06:00.275 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> STATUS_UPDATE: 1dffaf13000066130600005a00000c0900000000000000006600000005
2022-12-19 19:06:00.275 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 2 is now UNKNOWN
2022-12-19 19:06:04.395 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- TOGGLE_STATE: 060abf1104e2
2022-12-19 19:06:04.396 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- TOGGLE_STATE: 060abf1104e2
2022-12-19 19:06:27.301 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- TOGGLE_STATE: 060abf1105e5
2022-12-19 19:06:27.546 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> STATUS_UPDATE: 1dffaf13000066130600005a00000c01000000000000000066000000b9
2022-12-19 19:06:27.547 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 2 is now OFF
2022-12-19 19:06:37.090 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- TOGGLE_STATE: 060abf1104e2
2022-12-19 19:06:37.090 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 <- TOGGLE_STATE: 060abf1104e2
2022-12-19 19:06:37.144 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> STATUS_UPDATE: 1dffaf13000066130600005a00000c0200000000000000006600000002
2022-12-19 19:06:37.144 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 1 is now HIGH
2022-12-19 19:06:37.481 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> STATUS_UPDATE: 1dffaf13000066130600005a00000c01000000000000000066000000b9
2022-12-19 19:06:37.481 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 1 is now LOW
2022-12-19 19:06:54.828 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> STATUS_UPDATE: 1dffaf13000066130600005a0000040000000000000000006600000010
2022-12-19 19:06:54.829 DEBUG (MainThread) [pybalboa.control] 192.168.2.70 -- Pump 1 is now OFF
2022-12-19 19:07:00.243 DEBUG (MainThread) [pybalboa.client] 192.168.2.70 -> STATUS_UPDATE: 1dffaf13000066130700005a000004000000000000000000660000003c

@natekspencer
Copy link
Owner

Thanks, @400killer, can you also confirm the details of your spa again? Expected pumps/speed of each

@400killer
Copy link

It is a Image IMSB6312. The heat pack is a Balboa BP501G1 with a TP600 controller. It has a single light. and Two pumps.

The first Pump1 is a 2 speed pump. one for filtering and one for high pressure jets. If you turn Pump 1 on it will come on at low speed initially, push the jet button again and it will go to high speed. The speed selection also comes up in HA and acts as it should. Pump 2 is unaffected and never changes state based on Pump1.

The second pump is a single speed pump that does high pressure only. That pump bypasses the heat pack. So when you turn on Pump 2, it also turns on Pump 1 at low speed, so it can run the heater to keep the spa at temp. So turning on Pump 2 also turns on Pump 1 on. You turn it on and off with a single press of the jet 2 button. HA has this pump populated correctly with just an on and off switch. As it is a single speed pump.

@natekspencer
Copy link
Owner

@400killer try deleting the balboa integration and restart HA, then install it again (this is necessary to get it to update the underlying package)

@400killer
Copy link

I will try that again, and report back. I have done it a few times today though.

I think it maybe the pybalboa script has an issue with maybe new firmware on the wifi module? When I was running pybalboa to post above I wasn't running it on HA. I installed Python 3 and ran it from a PC. And it was unable to the status of off on the pumps (see above). The HA integration was disabled when I did this so there was no conflicts. So I am thinking it might be the underline issue. I will report back on the reinstallation above.

@natekspencer
Copy link
Owner

Correct, it is an issue with the underlying library. I'm using a custom version of it for this beta release, so I updated that to hopefully resolve the issue you are seeing. Because I haven't actually published the library though and am doing this as a beta, the way to force it to update the library is by doing the uninstall/restart/install.

@400killer
Copy link

@natekspencer Thanks, I didn't realize you were making a change to the library. I uninstalled everything, and rebooted the host. I then reinstalled all the way to installing from HACS. It seems to be working! I can turn on the pumps independently. And I am getting the status feedback from HA. All seems to be well. I hope @kiwiRickNZ will reinstall and report back too.

Thanks for all the help and work!! I was not expecting to get this repaired the same day. I know most of these are done by people in their spare time. You have a paypal I can buy you a beer or something?

@natekspencer
Copy link
Owner

Glad it worked! https://www.paypal.me/natekspencer if you'd like to

@kiwiRickNZ
Copy link
Author

ive just tried to uninstall the beta and im not sure what has gone wrong but it won't uninstall and all the entries are gone from within the devices page.

ive tried to reboot and then install and uninstall it but its not working.

@kiwiRickNZ
Copy link
Author

the error that comes up is

Error
Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble

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

3 participants