maartenvantjonger / omnilogic-smartapp

Hayward Omnilogic Smartapp for use with Samsung Smartthings and Hubitat
MIT License
4 stars 2 forks source link

Unable to turn relay ON but can turn OFF #16

Open xytras78 opened 1 year ago

xytras78 commented 1 year ago

Thanks so much for this driver! I've recently upgraded my ProLogic to an OmniLogic PL system and have set up your driver package. Everything works great except for an inability to turn ON relays.

In my setup, I have one "Water Feature" and one "Water Fall", each connected as a "valve" relay. When I click "ON" nothing happens. However I can go into the OmniLogic app (iPhone) and turn them on just fine. After I do that, the device in Hubitat shows that it's ON. From that point, I am able to turn the relays OFF in Hubitat perfectly. However once they're off, I cannot turn them back ON in Hubitat. I have to rely on the OmniLogic app to turn them on.

Any thoughts or pointers on how I can get your driver to turn the relay ON? Thanks so much!!!

maartenvantjonger commented 1 year ago

Hey @xytras78, could you send me what's in Hubitat -> Apps -> OmniLogic -> Telemetry after the relay is turned on using the official OmniLogic app? The relay driver sets the value to 100 which may not be what your relays are expecting.

g2ti98fl6zs023is commented 1 year ago

I just ran into the same issue. The relay needs to be set to 1. At least, that's the value I see in telemetry when I flip the relay via Omnilogic app. It's the same for both high and low voltage relays.

g2ti98fl6zs023is commented 1 year ago

Changing the value in the relay code from 100 to 1 (as seen below) fixed the issue.

[name: "IsOn", dataType: "int", value: isOn ? 1 : 0],

Thank you for this integration, really nice.