Jandy Aqualink Pool / Spa Control - AppleScripts updated

Posted on
Sun Jan 08, 2012 6:12 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

Yeah, if the try block's catch doesn't pass the exception up then it won't be logged.

Image

Posted on
Sun Jan 08, 2012 6:25 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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

Posted on
Sun Jan 08, 2012 6:29 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

"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.

Image

Posted on
Sun Jan 08, 2012 6:37 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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 !!

Posted on
Sun Jan 08, 2012 6:52 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

Looks like I have some cleanup to do. Thanks everyone.

Posted on
Sun Jan 08, 2012 7:02 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

nlagaros wrote:
Looks like I have some cleanup to do. Thanks everyone.



No worries ! Thanks for the great plugin !

Posted on
Tue Jan 10, 2012 10:22 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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?

Posted on
Wed Jan 11, 2012 7:29 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

I've got a typo in there - will get to it this weekend and post the update.

Posted on
Sat Jan 14, 2012 9:46 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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.

Posted on
Sun Jan 15, 2012 10:24 am
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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.
Attachments
Pool Heat Off.png
Pool Heat Off.png (79.02 KiB) Viewed 6714 times
Pool Heat Enabled.png
Pool Heat Enabled.png (78.73 KiB) Viewed 6714 times
Pool Heat On.png
Pool Heat On.png (102.64 KiB) Viewed 6714 times

Posted on
Sun Jan 15, 2012 12:02 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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...

Posted on
Sun Jan 15, 2012 12:09 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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

Posted on
Sun Jan 15, 2012 12:16 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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.

Posted on
Sun Jan 15, 2012 5:23 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

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?

Posted on
Sun Jan 15, 2012 5:38 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Jandy Aqualink Pool / Spa Control - AppleScripts updated

I kept the version number the same - I replaced the file with the updated one. It was minor so did not change version numbers.

Page 6 of 8 1 ... 3, 4, 5, 6, 7, 8

Who is online

Users browsing this forum: No registered users and 4 guests