I’m not sure why it was working better before, but it’s very timing sensitive. It needs to wait until it sees a keepalive and then it has a short window to send the key press. If it doesn’t make it in time, it’s discarded. There was code in the original implementation that would do retries if the state didn’t change.
Using the script on the EW11 gets it much closer to the serial connection and doesn’t have the network latency to worry about.
I just updated my repository with my latest changes. I made it configurable and it’s not p4 or EW11 specific anymore (though I think the EW11 is the way to go). I also renamed it so that it’s not an override of the built-in aqualogic integration. Some people were having issues with old code being used, so this should remove that issue.
That’s amazing! Thank you so much for this contribution. If I understand properly, you added some checks to ensure that your code could be used with hardware supporting scripting or not. That means that I could be using your code with my USR-TCP232-304 using this configuration :
aqualogic_p4p8:
host: 192.168.2.56 #Set to HostName, IP Address, or Serial path
port: 4328 #Set port if using a network device
device: serial #Set to socket or serial
usescript: False #Set to False if not using script on a network device
p4p8: p4 #Set to p4 or p8
And only have to change the configuration the following with the EW11:
aqualogic_p4p8:
host: 192.168.2.XYZ #Set to HostName, IP Address, or Serial path
port: 4328 #Set port if using a network device
device: socket #Set to socket or serial
usescript: True #Set to False if not using script on a network device
p4p8: p4 #Set to p4 or p8
Correct, but you would use socket for both. serial is for installs that are using a serial device and not a network device.
If you had installed a previous version of my code, when you install this version it will duplicate the entities because I changed the name and domain.
You can just delete the old entities (they should show as unused) or if you want to prevent the duplicates do this:
Comment out or remove the aqualogic, sensor and switches YAML in your configuration.YAML.
Restart HA
Go to entities and remove all the aqualogic entities.
Enable the new aqualogic_p4p8, sensor and switches YAML in configuration.YAML
Hi John, thanks for sharing your contribution via github!
I added your integration to my HA and the delay script to my EW11. I am getting data from the prologic but still no joy when it comes to button presses. Similar to what @ronkmd reported in an earlier post. I am successfully able to control it via the iOS app, so I believe the EW11 script is working.
I am not sure whether I missed anything to get it working in HA?
Thanks in advance for any suggestions.
PS, Hi @b3nj1 and thank you for replying to a question I posted over a year ago! I had tried getting this integration to work back then, but it seemed to go nowhere. I wasn’t notified when you replied.
Are there any errors in the log? If you can control via Mark’s iOS app, then my version of the HA integration should work. Can you post your configuration.yaml for aqualogic_p4p8?
Thank you for that fix John. Seems to have removed the log error. And the display in the dashboard seems to be updating nicely now with info from the panel.
I’ve pasted some logs. Included are my attempts at sending the command to the lights switch and one command to the filter switch, neither of which seem to be responded to by the prologic panel. What’s worse there isn’t even an error message to investigate.
Care to have a look to see if you spot anything strange?
@J4yDubs , @Sierra I finally received my EW11A and I’m trying to hook it up properly however I am not able to see the EW11 SSID. I’ve followed the setup page (AQL-PS-8 & EW11 Setup Instructions - Google Docs) and reversed my configuration to make sure I was wiring things in the right order. Here’s my current setup:
Are you having this working on HA with button press? I’m seeing EW11 Script v006 HA Mod.txt and EW11 Script v007.txt, which one should I use, and also, would that be compatible with what we talked about last week (your implementation for aqualogic_p4p8)?
Thanks!
I have “EW11 Script v006.txt” on the github repository. That’s what I used, but the 007 should work as well. When you import it, you won’t see it loaded. If you do a export, you can then see if the export is what you imported.
Yes, all button presses work for me, even all the menus and settings changes. There’s a quick video in my repository showing going through menus and making a settings change.
Are the button presses not working for you? Have you downloaded one of Mark’s apps to make sure it’s working with those?
Well, finally got it working. Deleted all my Aqualogic folders and references. Got display, sensors and switch state reporting working fine but still couldn’t activate switches. Then I changed the line in core.py to “text = frame.replace(b’\xdf’, b’\xc2\xb0’).decode(‘latin-1’)” and THE SWITCHES WORKED!
Now the only thing is my Temperature display is messed up, The space between the digits and the degree sign is displaying as some weird capital-A with a caret over it. Any ideas.