Hayward Omnilogic Pool Automation Binding

@matchews Howdy! Seems like a lot of good work here. Running stable OH 3.3.0. Installed this binding fine, but when I put in my creds it says unable to login to hayward servers. Anything with the API link or other things I should know about? Where can I get logs/telemetry for this binding?

Make sure you are entering your username, not your email address associated with the Hayward account. The endpoint url should be set to its default:

https://www.haywardomnilogic.com/HAAPI/HomeAutomation/API.ashx

Here is the console command to set the logging level:

log:set TRACE org.openhab.binding.haywardomnilogic

That’s what I was doing. The API is reporting a message format failure. See below. Any ideas?

16:23:25.824 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'haywardomnilogic:bridge:8621af6d78' changed from UNINITIALIZED to INITIALIZING
16:23:27.157 [TRACE] [internal.handler.HaywardBridgeHandler] - Hayward Connection thing:  login Hayward http command: <?xml version="1.0" encoding="utf-8"?><Request><Name>Login</Name><Parameters><Parameter name="UserName" dataType="String">g*******7</Parameter><Parameter name="Password" dataType="String">*******</Parameter></Parameters></Request>
16:23:27.163 [TRACE] [internal.handler.HaywardBridgeHandler] - Hayward Connection thing:  login Hayward http response: The message format is wrong. <Response><Name>Unknown</Name><Parameters><Parameter dataType="int" name="Status">1</Parameter><Parameter dataType="int" name="StatusMessage">The message format is wrong.</Parameter></Parameters></Response>
16:23:27.173 [DEBUG] [internal.handler.HaywardBridgeHandler] - Hayward Connection thing: Login XML response: <Response><Name>Unknown</Name><Parameters><Parameter dataType="int" name="Status">1</Parameter><Parameter dataType="int" name="StatusMessage">The message format is wrong.</Parameter></Parameters></Response>
16:23:27.185 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'haywardomnilogic:bridge:8621af6d78' changed from INITIALIZING to OFFLINE (COMMUNICATION_ERROR): Unable to Login to Hayward's server```

Greg,
The outgoing login http command is identical to mine (except the username and password). What version of the binding are you running? Which exact Hayward controller do you have? What firmware are running on the Hayward controller? Are there any special characters in your username or password?

Thanks

@matchews Ok. First thanks for the PM, I actually really appreciate the responsiveness, and hope I can match you in attention.

So to answer your questions:

  1. Version of binding: I can’t check this at the moment because I’m actually in the process of rebuilding openhab for another reason, but it’s the version from the repository for a stable, vanilla openhab 3.3 install on a raspberry pi according to the apt-package instructions on the website. Next time I have it up and running I’ll grab the version
  2. I have the OG Omnilogic Panel (HLBASE) connected via ethernet.
  3. I’m running MSP firmware 3.1.0-b35069 and MP firmware 3.0.0.
  4. Yes there are two underscores in my username. FWIW omnilogic website login works fine, although it nags me to login with email when I log into the portal.

Looks like Hayward has firmware version up to 3.2.0 for MP and 4.4.1 for MSP. I can upgrade if needed, but honestly I think it’s the call to the website itself, as there seems to be a login error in the API, but you’d know better than me.

I tried to add some underscores into my username and was not able to reproduce your login response. However, I was able to reproduce your response message (The message format is wrong) by adding an ampersand to the password. I ask again, do you have any special characters in your password? Please note that the API I am using is different than the API the Hayward application uses. This could easily be an oversight in this API and would explain why the Hayward application/API is working.

Let me know when you have your OpenHab instance back online and if the problem reproduces with a clean password. I’m also wondering if there was some underlying issue in your old OpenHab instance that was causing this. Yes, I’m reaching.

Here is my Login Request compared to yours. They are identical (other than the username and password).

10:32:15.897 [TRACE] [internal.handler.HaywardBridgeHandler] - Hayward Connection thing:  login Hayward http command: <?xml version="1.0" encoding="utf-8"?><Request><Name>Login</Name><Parameters><Parameter name="UserName" dataType="String">********</Parameter><Parameter name="Password" dataType="String">**********</Parameter></Parameters></Request>
16:23:27.157 [TRACE] [internal.handler.HaywardBridgeHandler] - Hayward Connection thing:  login Hayward http command: <?xml version="1.0" encoding="utf-8"?><Request><Name>Login</Name><Parameters><Parameter name="UserName" dataType="String">g******7</Parameter><Parameter name="Password" dataType="String">**********</Parameter></Parameters></Request>

Thanks

Thank you so much for the response. There is indeed an ampersand in my password. I will change it and try again as my Openhab has now been rebuilt. Any ideas which special chars are not allowed?

@matchews Hi there. It was the ampersand in my password causing the issue. After I removed them it worked great. Thanks for helping out! I appreciate it.