I am running Autelis 1.6.9 with the latest openHAB 2 Autelis binding and running into several issues. So far I am able to see that the pump is on, but not able to turn it off or set the speed. I can see the pool heat setpoint and changing it works, but I can’t start the heater like I could with the openhab 1 autelis binding. Finally, I am not able to see or set the chlorine level or salt level.
My items:
Switch Pool_Pump "Pool Pump" <pool_pump> (Pool) {channel="autelis:poolcontrol:Pool:pumps-pump1"}
Number Pool_Pump_Speed "Pool Pump Speed [%s]" <pool_pump> (Pool) {channel="autelis:poolcontrol:Pool:"}
Switch Pool_Heat "Pool Heat" <pool_heater> (Pool) {channel="autelis:poolcontrol:Pool:temp-poolht"}
Number Pool_SetPoint "Pool SetPoint [%.0f °F]" <temperature> (Pool) {channel="autelis:poolcontrol:Pool:temp-poolsp"}
Number Pool_Temperature "Pool Temperature [%.0f °F]" <temperature> (Pool) {channel="autelis:poolcontrol:Pool:temp-pooltemp"}
Number Pool_Chlorination "Chlorination Setpoint [%d %%]" <chlorine> (Pool) {channel="autelis:poolcontrol:Pool:chlor-poolsp"}
Number Pool_Salt "Pool Salt Level [%d ppm]" <salt> (Pool) {channel="autelis:poolcontrol:Pool:chlor-salt"}
I’m running Jandy as well (I think Dan is running the Pentair version) and I had to do a bit of hunting and pecking to find out the correct aux relays that were controlling the items that I wanted to use…I think the Pentair version is more specific in the naming of the various relays.
Thank you, but not sure that helps me since my system is not using any Aux relays. The part I am struggling with the most are pump speeds and chlorination levels.
The syntax for channels is “responseType-childName” from the XML, so system-xxxx, equipment-xxxx, temp-xxxx, chem-xxxx, pumps-xxxx. From your xml there is no pumps-pump1 and the item Pool_Pump_Speed has no channel config (maybe that was just a copy and paste error).
In any case the difference in OH1 vs OH2 here is that channels are defined in the thing type XML file. I need to give this some thought. We either need to define all the Jandy options and then have a different thing types for it… or I can remove the static channels from the thing-type xml file and add them dynamically.
I thought each of the Autelis devices have a different model number based upon the pool controller they control. Could you not look for that model # and then load the appropriate channels for that system?
Thanks for getting back to me, so names should be:
Switch Pool_Pump "Pool Pump" <pool_pump> (Pool) {channel="autelis:poolcontrol:Pool:equipment-pump"}
Number Pool_Pump_Speed "Pool Pump Speed [%s]" <pool_pump> (Pool) {channel="autelis:poolcontrol:Pool:pumps-vsp1"}
Switch Pool_Heat "Pool Heat" <pool_heater> (Pool) {channel="autelis:poolcontrol:Pool:equipment-poolht"}
Number Pool_SetPoint "Pool SetPoint [%.0f °F]" <temperature> (Pool) {channel="autelis:poolcontrol:Pool:temp-poolsp"}
Number Pool_Temperature "Pool Temperature [%.0f °F]" <temperature> (Pool) {channel="autelis:poolcontrol:Pool:temp-pooltemp"}
Number Pool_Chlorination "Chlorination Setpoint [%d %%]" <chlorine> (Pool) {channel="autelis:poolcontrol:Pool:chem-chlorp"}
Number Pool_Salt "Pool Salt Level [%d ppm]" <salt> (Pool) {channel="autelis:poolcontrol:Pool:chem-saltp"}
But if I understand you, that wont work until check and pumps are added. Will the binding take the saltp value and multiply by 50 so that it is the correct value?
2017-06-29 16:21:29.320 [autelis ] - FrameworkEvent ERROR - org.openhab.binding.autelis
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.autelis [229]
Unresolved requirement: Import-Package: org.eclipse.smarthome.io.transport.upnp
at org.eclipse.osgi.container.Module.start(Module.java:434)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)[org.eclipse.osgi-3.10.101.v20150820-1432.jar:]
[root@lisa openhab2]# more things/autelis.things
Thing autelis:jandy:Pool [host="10.88.64.89",user="admin",password="admin"]
[root@lisa openhab2]# more items/pool.items
Switch Pool_Random "Random Pool Lights" (Pool)
Switch Pool_Pump "Pool Pump" <pool_pump> (Pool) {channel="autelis:jandy:Pool:equipment-pump"}
Number Pool_Pump_Speed "Pool Pump Speed [%s]" <pool_pump> (Pool) {channel="autelis:jandy:Pool:pump-vsp1"}
Switch Pool_Heat "Pool Heat" <pool_heater> (Pool) {channel="autelis:jandy:Pool:equipment-poolht", expire="2h, command=OFF"}
Number Pool_SetPoint "Pool SetPoint [%.0f °F]" <temperature> (Pool) {channel="autelis:jandy:Pool:temp-poolsp"}
Number Pool_Temperature "Pool Temperature [%.0f °F]" <temperature> (Pool) {channel="autelis:jandy:Pool:temp-pooltemp"}
Number Pool_Chlorination "Chlorination Setpoint [%d %%]" <chlorine> (Pool) {channel="autelis:jandy:Pool:chem-chlorp"}
Number Pool_Salt "Pool Salt Level [%d ppm]" <salt> (Pool) {channel="autelis:jandy:Pool:chem-saltp"}
Logs:
2017-06-29 16:32:30.847 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate command '55' for item 'Pool_Chlorination' to handler for channel 'autelis:jandy:Pool:chem-chlorp', because no thing with the UID 'autelis:jandy:Pool' could be found.
2017-06-29 16:32:30.848 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update '55' for item 'Pool_Chlorination' to handler for channel 'autelis:jandy:Pool:chem-chlorp', because no thing with the UID 'autelis:jandy:Pool' could be found.
2017-06-29 16:32:33.348 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate command '55' for item 'Pool_Chlorination' to handler for channel 'autelis:jandy:Pool:chem-chlorp', because no thing with the UID 'autelis:jandy:Pool' could be found.
2017-06-29 16:32:33.348 [WARN ] [ome.core.thing.internal.ThingManager] - Cannot delegate update '55' for item 'Pool_Chlorination' to handler for channel 'autelis:jandy:Pool:chem-chlorp', because no thing with the UID 'autelis:jandy:Pool' could be found.
Ok, I see where the issue is, can you tell me what the URL is that the autelis web interface hits when setting those values (using something like the chrome debugger) ? The autelis documentation is not very clear when it comes to sending commands.