Page 6 of 8

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 08, 2012 6:12 pm
by matt (support)
Yeah, if the try block's catch doesn't pass the exception up then it won't be logged.

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 08, 2012 6:25 pm
by asw24b
support wrote:
Yeah, if the try block's catch doesn't pass the exception up then it won't be logged.




Hmmm.... it does.



def startup(self):
self.debugLog(u"Method: startup")
try:
if valuesDict[u"showDebugInfo"] == True:
self.debug = True
else:
self.debug = False
except:
pass

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 08, 2012 6:29 pm
by matt (support)
"pass" is just a NOP in python that is required because of how block syntax uses spaces/tabs. If you change the pass to raise, then it should be logged.

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 08, 2012 6:37 pm
by asw24b
support wrote:
"pass" is just a NOP in python that is required because of how block syntax uses spaces/tabs. If you change the pass to raise, then it should be logged.



Duh.

Thanks !!

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 08, 2012 6:52 pm
by nlagaros
Looks like I have some cleanup to do. Thanks everyone.

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 08, 2012 7:02 pm
by asw24b
nlagaros wrote:
Looks like I have some cleanup to do. Thanks everyone.



No worries ! Thanks for the great plugin !

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Tue Jan 10, 2012 10:22 pm
by hamw
I have a pool/spa combo with a single pump and valves. With the pump running I tried activating the spa via a control page button set up from the plugin's "Pumps" device menu, selecting "Spa Pump" and the action "Toggle On/Off". The "Spa =" device state did not register "On" and the Autelis Spa did not register "On". The plugin generated this error:

Code: Select all
  Autelis Jandy Error             Error in plugin execution ExecuteAction:

Traceback (most recent call last):
  File "plugin.py", line 60, in actionPump
  File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/AutelisJandy.indigoPlugin/Contents/Server Plugin/Autelis.py", line 156, in actionGeneric
<type 'exceptions.NameError'>: global name 'Pumpdev' is not defined


Using the Autelis web page, when the "Spa" setting is turned on, the "Spa =" device state registers "On" and the Control Page device state icon changes color. Is there another way to have the Spa enabled via the plugin?

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Wed Jan 11, 2012 7:29 am
by nlagaros
I've got a typo in there - will get to it this weekend and post the update.

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sat Jan 14, 2012 9:46 pm
by hamw
Is it possible to have device states for Pool and Spa such that we get values for "Pool Heat Enabled", "Pool Heat On", "Pool Heat Off", as well as "Spa Heat Enabled", "Spa Heat On" and "Spa Heat Off"? The current device states indicate "Pool Heater On/Off", "Pool Heater 2 On/Off" and "Spa Heater On/Off". The One Touch and the Autelis Temperature Control Menu keeps track as to whether heat is enabled, on or off.

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 15, 2012 10:24 am
by hamw
Here are the pics showing the states and the Autelis page. The first pic is heat off, pump off. Second is heat enabled, pump off. Third is heat enabled, pump on = heat on. This could be done with variables and triggers, but when one adds in the spa and whether the heater is actually turned on (e.g. temp is achieved and heater is shut off, leaving "heat enabled" "pump on" as correct state but the heater is not actually running) it might get more complex.

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 15, 2012 12:02 pm
by nlagaros
I'm going to run through these scenarios with my controller and see if the Autelis will broadcast out the proper modes. If not, will contact the vendor and see if they can modify the TCP API so we get the correct states. Stand by...

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 15, 2012 12:09 pm
by asw24b
nlagaros wrote:
I'm going to run through these scenarios with my controller and see if the Autelis will broadcast out the proper modes. If not, will contact the vendor and see if they can modify the TCP API so we get the correct states. Stand by...



I'm pretty sure that the Jandy serial box behaves the exact same way....

Mike

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 15, 2012 12:16 pm
by nlagaros
Ok folks. Please download the revised plugin from the wiki page. I've fixed the typo that was pointed out the other day and think I have the heat states correct for testing. Let me know if this does the trick. I was able to see my main heater zone switch states from off to enabled to on - so think this may do the trick.

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 15, 2012 5:23 pm
by hamw
Went to your other download site, https://vulture.lagaros.com/wiki/pages/ ... ugin.html# and it's still the v1.01 plugin. Is there another site?

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

PostPosted: Sun Jan 15, 2012 5:38 pm
by nlagaros
I kept the version number the same - I replaced the file with the updated one. It was minor so did not change version numbers.