sfeakes / AqualinkD

Daemon to control Jandy Aqualink RS pool equipment from any home automation hub (Alexa, Homekit & Siri, Home Assistant, smartthings, domoticz etc) or web browser.
Other
176 stars 48 forks source link

Communicating directly with Pump - Message Timing and Sequence Issues #105

Closed timelery closed 4 years ago

timelery commented 4 years ago

@sfeakes I was hoping to ask for your insight base don all the work you have done here.

I am struggling to figure out why I get inconsistent results when powering off and on my Intelliflow pump. After spending a few days looking at your code I have the following. It works but not consistently and it makes me think my timing or sequence if off or more importantly I am missing a packet that needs to be included.

Do you have any ideas?

To Power On the Pump into Program 3 Packet 1 (Set to Remote) 165,0,96,33,4,1,255 Packet 2 (Set Program 3) 165,0,96,33,1,4,3,33,0,24 -- 175ms after previous message Packet 3 (Turn Pump On) 1165,0,96,33,6,1,10 -- 175ms after previous message

To Power Off the Pump from Program 3 165,0,96,33,4,1,255 165,0,96,33,1,4,3,33,0,0 -- 175ms after previous message 165,0,96,33,6,1,4 -- 175ms after previous message

sfeakes commented 4 years ago

Can you explain a little more on what you have connected & available, and what you're trying to do? But few pointers that may help

timelery commented 4 years ago

@sfeakes Thank you for the insight. I will spend some time looking at the issue list.

Lastly,

If I have a schedule set on the pump locally and I control it remotely by turning it off or setting a new speed and turning it on I am unable to set the pump back to local schedule mode and have to physically press it on the pump to switch the pump back to local schedule mode.

Are you aware of a command I can send the pump to set it back to local schedule mode?

Thanks, Tim

sfeakes commented 4 years ago

I believe the pump works the same way as a SWG, where it will go back to local control when it doesn't get any probe messages. But I do remember seeing something in someones logs that looked suspiciously like a message to set it back to local mode. I'll see if I can find it.

sfeakes commented 4 years ago

If you pull the logs from the below thread there are some Pentair commands that I decoded as "go back to local control". Problem is I didn't document what they were. https://github.com/sfeakes/AqualinkD/issues/95

I think one of these are the the go back to local control (bottom two), but you should go over the logs in that thread.

Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x60|0x10|0x04|0x01|0xff|0x02|0x19|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x60|0x10|0x04|0x01|0xff|0x02|0x19|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x10|0x60|0x04|0x01|0xff|0x02|0x19|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x10|0x60|0x04|0x01|0xff|0x02|0x19|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x60|0x10|0x06|0x01|0x0a|0x01|0x26|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x60|0x10|0x06|0x01|0x0a|0x01|0x26|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x10|0x60|0x06|0x01|0x0a|0x01|0x26|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x10|0x60|0x06|0x01|0x0a|0x01|0x26|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x60|0x10|0x01|0x04|0x02|0xc4|0x06|0xa4|0x02|0x8a|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x60|0x10|0x01|0x04|0x02|0xc4|0x06|0xa4|0x02|0x8a|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x10|0x60|0x01|0x02|0x06|0xa4|0x01|0xc2|
 Pentair Packet | HEX: 0xff|0x00|0xff|0xa5|0x00|0x10|0x60|0x01|0x02|0x06|0xa4|0x01|0xc2|