View unanswered posts | View active topics It is currently Sun Apr 20, 2014 6:24 pm



Reply to topic  [ 89 posts ]  Go to page: Previous  1, 2, 3, 4, 5, 6  Next
 Proliphix™ Plugin Discussion 
Author Message
User avatar

Joined: Nov 18, 2008
Posts: 2253
Location: Berkeley, CA, USA
Post Re: Proliphix Plugin "Failed to reach device"
berkinet wrote:Ok... you won't see any more information than you now see. Because there was no one obvious "state" to use for the state column, I just close to leave it blank...

Thanks for commenting on the empty "State" column. I have now set the State column to display the current average temperature. I will get this updated on the Contribution Library this week. Look for release 1.0.5.


Sun Dec 18, 2011 11:29 am
Profile

Joined: Nov 12, 2010
Posts: 11
Post Re: Proliphix Plugin "Failed to reach device"
BTW, also be sure you are running plugin v1.0.1

I believe I'm running v1.0.2. It's one that automatically downloads from your Plugins page. When I go to Plugins/Proliphix Thermostat Control/ I see "About Proliphix Thermostat Control v1.0.2…"

I reloaded the plugin and this is the log;

Dec 18, 2011 9:50:28 AM
Reloading plugin "Proliphix Thermostat Control 1.0.2"
Stopping plugin "Proliphix Thermostat Control 1.0.2" (pid 183)
Plugin "Proliphix Thermostat Control" disconnected
Starting plugin "Proliphix Thermostat Control 1.0.2" (pid 4155)
Plugin "Proliphix Thermostat Control" connected
Plugin "Proliphix Thermostat Control 1.0.2" started
Proliphix Thermostat Control Debug Starting concurrent thread
Proliphix Plugin Waiting for availability of Proliphix Thermostat device list
Proliphix Thermostat Control Debug Added device Id 1499325312 to device list
Proliphix Plugin Plugin started. Polling thermostats every 5.0 minutes
Proliphix Thermostat Control Debug Starting concurrent thread poll for: [1499325312]
Proliphix Thermostat Control Debug readTstat: readings from device: address :
buttonGroupCount : 0
description : Proliphix Thermostat
deviceTypeId : proliphixTstat
enabled : True
errorState :
folderId : 1418405935
globalProps : MetaProps : (dict)
com.berkinet.ProliphixControl : (dict)
tstatAddress : 192.168.1.74 (string)
tstatModel : NT10e (string)
tstatPass : admin (string)
tstatPort : 81 (string)
tstatUser : admin (string)
id : 1499325312
lastChanged : 2011-12-18 09:49:01
model : Proliphix Thermostat
name : TajMaSmall Thermostat
pluginId : com.berkinet.ProliphixControl
pluginProps : com.berkinet.ProliphixControl : (dict)
tstatAddress : 192.168.1.74 (string)
tstatModel : NT10e (string)
tstatPass : admin (string)
tstatPort : 81 (string)
tstatUser : admin (string)
protocol : Plugin
remoteDisplay : True
states : States : (dict)
lastRead : 2011-12-18 09:49:01 (string)
thermAverageTemp : 68.7 (string)
thermCurrentClass : Occupied/In (string)
thermCurrentPeriod : Day (string)
thermFanState : Off (string)
thermHvacState : Off (string)
thermRelativeHumidity : 0 (string)
thermSensorTempLocal : 0 (integer)
thermSensorTempRemote1 : n/a (string)
thermSensorTempRemote2 : n/a (string)
thermSetbackCool : 85.0 (string)
thermSetbackHeat : 69.0 (string)
thermSetbackStatus : Normal (string)
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : False
version : 0
Proliphix Thermostat Control Debug Units set to: Fahrenheit
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermHvacState = OID OID4.1.2
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermFanState = OID OID4.1.4
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSetbackHeat = OID OID4.1.5
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSetbackCool = OID OID4.1.6
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSetbackStatus = OID OID4.1.9
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermCurrentPeriod = OID OID4.1.10
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermCurrentClass = OID OID4.1.11
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermAverageTemp = OID OID4.1.13
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermRelativeHumidity = OID OID4.1.14
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSensorTempRemote1 = OID OID4.3.2.2
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSensorTempRemote2 = OID OID4.3.2.3
Proliphix Thermostat Control Debug readTstat: The URL to read the update from for Device: TajMaSmall Thermostat is: http://192.168.1.74:81/get?OID4.1.2=&OI ... ID4.3.2.3=
Proliphix Thermostat Control Debug readTstat: OIDs returned for device TajMaSmall Thermostat: ['OID4.1.2', '2', 'OID4.1.4', '1', 'OID4.1.5', '690', 'OID4.1.6', '850', 'OID4.1.9', '1', 'OID4.1.10', '2', 'OID4.1.11', '1', 'OID4.1.13', '688', 'OID4.1.14', '0', 'OID4.3.2.2', 'FAILED5', 'OID4.3.2.3', 'FAILED5', '']
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 0 = OID: OID4.1.2 and OBJ: thermHvacState val = 2
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 2 = OID: OID4.1.4 and OBJ: thermFanState val = 1
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 4 = OID: OID4.1.5 and OBJ: thermSetbackHeat val = 690
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 6 = OID: OID4.1.6 and OBJ: thermSetbackCool val = 850
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 8 = OID: OID4.1.9 and OBJ: thermSetbackStatus val = 1
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 10 = OID: OID4.1.10 and OBJ: thermCurrentPeriod val = 2
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 12 = OID: OID4.1.11 and OBJ: thermCurrentClass val = 1
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 14 = OID: OID4.1.13 and OBJ: thermAverageTemp val = 688
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 16 = OID: OID4.1.14 and OBJ: thermRelativeHumidity val = 0
Proliphix Thermostat Control Debug readTstat: Completed readings update from device: TajMaSmall Thermostat
Proliphix Thermostat Control Debug Completed concurrent thread poll

I made sure I was in debug mode, then Refresh_All_Thermostats and this is what I got;

Dec 18, 2011 9:53:58 AM
Proliphix Thermostat Control Debug readTstat: readings from device: description : plugin action
deviceId : 1499325312
pluginId : com.berkinet.ProliphixControl
pluginTypeId : readTstat
props : com.berkinet.ProliphixControl : (dict)
Proliphix Thermostat Control Debug Units set to: Fahrenheit
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermHvacState = OID OID4.1.2
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermFanState = OID OID4.1.4
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSetbackHeat = OID OID4.1.5
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSetbackCool = OID OID4.1.6
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSetbackStatus = OID OID4.1.9
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermCurrentPeriod = OID OID4.1.10
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermCurrentClass = OID OID4.1.11
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermAverageTemp = OID OID4.1.13
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermRelativeHumidity = OID OID4.1.14
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSensorTempRemote1 = OID OID4.3.2.2
Proliphix Thermostat Control Debug readTstat: Build query URL... Object: thermSensorTempRemote2 = OID OID4.3.2.3
Proliphix Thermostat Control Debug readTstat: The URL to read the update from for Device: TajMaSmall Thermostat is: http://192.168.1.74:81/get?OID4.1.2=&OI ... ID4.3.2.3=
Proliphix Thermostat Control Debug readTstat: OIDs returned for device TajMaSmall Thermostat: ['OID4.1.2', '2', 'OID4.1.4', '1', 'OID4.1.5', '690', 'OID4.1.6', '850', 'OID4.1.9', '1', 'OID4.1.10', '2', 'OID4.1.11', '1', 'OID4.1.13', '689', 'OID4.1.14', '0', 'OID4.3.2.2', 'FAILED5', 'OID4.3.2.3', 'FAILED5', '']
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 0 = OID: OID4.1.2 and OBJ: thermHvacState val = 2
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 2 = OID: OID4.1.4 and OBJ: thermFanState val = 1
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 4 = OID: OID4.1.5 and OBJ: thermSetbackHeat val = 690
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 6 = OID: OID4.1.6 and OBJ: thermSetbackCool val = 850
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 8 = OID: OID4.1.9 and OBJ: thermSetbackStatus val = 1
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 10 = OID: OID4.1.10 and OBJ: thermCurrentPeriod val = 2
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 12 = OID: OID4.1.11 and OBJ: thermCurrentClass val = 1
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 14 = OID: OID4.1.13 and OBJ: thermAverageTemp val = 689
Proliphix Thermostat Control Debug readTstat: parsing data returned for device TajMaSmall Thermostat. Record number 16 = OID: OID4.1.14 and OBJ: thermRelativeHumidity val = 0
Proliphix Thermostat Control Debug readTstat: Completed readings update from device: TajMaSmall Thermostat
Proliphix Plugin Refreshed data for device Id TajMaSmall Thermostat


Sun Dec 18, 2011 11:55 am
Profile
User avatar

Joined: Nov 18, 2008
Posts: 2253
Location: Berkeley, CA, USA
Post Re: Proliphix Plugin "Failed to reach device"
That all looks pretty good. There was one bug fixed with the NT10e in 1.0.3, but that only affected reading data, not writing to the thermostat.

I have placed a copy of 1.0.5 on dropbox at http://dl.dropbox.com/u/50307533/Prolip ... -1-0-5.zip
Try that and see if there is any difference. After installing the update, open the device, click on edit config, and then save it.

If you still have problems try putting the plugin into debug mode, sending something to the stat, and then paste the log here.


Sun Dec 18, 2011 12:14 pm
Profile

Joined: Nov 12, 2010
Posts: 11
Post Proliphix™ Thermostat plugin
Ok, did all of the above and this is what I get;

Dec 18, 2011 10:33:28 AM
Action Group Set Heat to 70
Proliphix Thermostat Control Debug writeTstat: received: description : set the heat setpoint
deviceId : 1499325312
pluginId : com.berkinet.ProliphixControl
pluginTypeId : writeTstat1
props : com.berkinet.ProliphixControl : (dict)
theObject : thermSetbackHeat (string)
theVal : 70 (string)
Proliphix Thermostat Control Debug writeTstat: Found OID data for object: thermSetbackHeat
Proliphix Thermostat Control Debug writeTstat: Using 700 as the value
Proliphix Thermostat Control Debug readTstat: URL = http://192.168.1.74/pdp?OID4.1.5=700/php
Proliphix Thermostat Control Error readTstat: Failed to reach device "TajMaSmall Thermostat" at 192.168.1.74. Reason = <urlopen error (61, 'Connection refused')>


Sun Dec 18, 2011 12:35 pm
Profile
User avatar

Joined: Nov 18, 2008
Posts: 2253
Location: Berkeley, CA, USA
Post Re: Proliphix Plugin "Failed to reach device"
Good, so you should now be seeing the temperature in the state column on the Thermostat device.

Next step, try connecting to this url in your browser:
http://192.168.1.74/pdp?OID4.1.5=700/php

Let me know what happens.

Then, I have added a little more debugging information and placed a new version of the plugin at http://dl.dropbox.com/u/50307533/Prolip ... 1-0-5a.zip

Try that, in debug mode, and post the output.


Sun Dec 18, 2011 12:58 pm
Profile

Joined: Nov 12, 2010
Posts: 11
Post Re: Proliphix Plugin "Failed to reach device"
I am not seeing the temperature in the state column.

I had to add the port number (81) in the url address (before /pdp) to get it through, but this is what it gave me;

OID4.1.5=700/php&

I tried installing the newest version you dropboxed me, but I get the window I've attached below. So I physically removed the old plugin from the plugins folder and dragged that one in.

Reloaded, configured (made sure debugging was on), Refreshed_all_thermostats, then tried again. Here's what I got;


Dec 18, 2011 11:22:05 AM
Action Group Set Heat to 70
Proliphix Thermostat Control Debug writeTstat: received: description : set the heat setpoint
deviceId : 1499325312
pluginId : com.berkinet.ProliphixControl
pluginTypeId : writeTstat1
props : com.berkinet.ProliphixControl : (dict)
theObject : thermSetbackHeat (string)
theVal : 70 (string)
Proliphix Thermostat Control Debug writeTstat: Found OID data for object: thermSetbackHeat
Proliphix Thermostat Control Debug writeTstat: Using 700 as the value
Proliphix Thermostat Control Debug readTstat: URL = http://192.168.1.74/pdp?OID4.1.5=700/php
Proliphix Thermostat Control Error readTstat: Failed to reach device "TajMaSmall Thermostat" at 192.168.1.74. Reason = <urlopen error (61, 'Connection refused')>


Attachments:
Screen Shot 2011-12-18 at 11.16.24 AM.png
Screen Shot 2011-12-18 at 11.16.24 AM.png [ 34.31 KiB | Viewed 614 times ]
Sun Dec 18, 2011 1:24 pm
Profile
User avatar

Joined: Nov 18, 2008
Posts: 2253
Location: Berkeley, CA, USA
Post Re: Proliphix Plugin "Failed to reach device"
Captain Audio wrote:...I had to add the port number (81) in the url address (before /pdp) to get it through...


Ahh, that's it. I left the port number out of the URL on writes. I'll get that fixed today and bomb the re;lease number to 1.0.6 so it will load. You will need to go through the definition process for the thermostat again to start seeing the state column. You don't need to change anything, just open and save all the windows.


Sun Dec 18, 2011 1:50 pm
Profile

Joined: Nov 12, 2010
Posts: 11
Post Re: Proliphix Plugin "Failed to reach device"
Cool! I'll wait with bated breath. Thanks!


Sun Dec 18, 2011 1:57 pm
Profile
User avatar

Joined: Nov 18, 2008
Posts: 2253
Location: Berkeley, CA, USA
Post Re: Proliphix Plugin "Failed to reach device"
Try this and let me know. http://dl.dropbox.com/u/50307533/Prolip ... n1-0-6.zip
and thanks for the help and patience debugging this.


Sun Dec 18, 2011 2:55 pm
Profile

Joined: Nov 12, 2010
Posts: 11
Post Re: Proliphix Plugin "Failed to reach device"
Ok, we're getting a little closer. The temp does show up in the state column now. I deleted the old device description and made a new one. I did the Refresh_All_Thermostats. But before I can even create an action group, this keeps showing up in the log window;


Proliphix Thermostat Control Debug Starting concurrent thread
Proliphix Plugin Plugin started. Polling thermostats every 5.0 minutes with a 8.0 second timeout
Proliphix Thermostat Control Debug Starting concurrent thread poll for: [1499325312]
Proliphix Thermostat Control Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 135, in runConcurrentThread
<type 'exceptions.KeyError'>: 'key id 1499325312 not found in database'

Proliphix Thermostat Control Error plugin runConcurrentThread function returned or failed; will attempt again in 10 seconds


Sun Dec 18, 2011 6:43 pm
Profile
User avatar

Joined: Nov 18, 2008
Posts: 2253
Location: Berkeley, CA, USA
Post Re: Proliphix Plugin "Failed to reach device"
Yeah... Looks like the preferences file is out of sync - there were some changes that affected earlier versions. You can just delete it... and then reconfigure the plugin.

[code]
rm /Library/Application\ Support/Perceptive\ Automation/Indigo\ 5/Preferences/Plugins/com.berkinet.ProliphixControl.indiPref
[code]


Sun Dec 18, 2011 6:49 pm
Profile

Joined: Nov 12, 2010
Posts: 11
Post Re: Proliphix Plugin "Failed to reach device"
Alright, definitely making progress. After trashing the prefs (not just yours but the other one in the folder) and re-creating the device, this is what I get when I try to send my action;



Dec 18, 2011 5:06:32 PM
Action Group Set Heat to 70
Proliphix Thermostat Control Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 179, in writeTstat
<type 'exceptions.NameError'>: global name 'port' is not defined


Sun Dec 18, 2011 7:08 pm
Profile
User avatar

Joined: Nov 18, 2008
Posts: 2253
Location: Berkeley, CA, USA
Post Re: Proliphix Plugin "Failed to reach device"
DOH!. I'll get you a fix in a few minutes


Sun Dec 18, 2011 7:10 pm
Profile
User avatar

Joined: Nov 18, 2008
Posts: 2253
Location: Berkeley, CA, USA
Post Re: Proliphix Plugin "Failed to reach device"
I figured the fix was so simple I didn't bother to test it. Shows ya.

Ok, this is tested. There should be no need to rebuild the device or trash prefs again.

http://dl.dropbox.com/u/50307533/Prolip ... -1-0-7.zip


Sun Dec 18, 2011 7:18 pm
Profile

Joined: Nov 12, 2010
Posts: 11
Post Re: Proliphix Plugin "Failed to reach device"
Yeah! Totally works! Thank you.


Sun Dec 18, 2011 11:52 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 89 posts ]  Go to page: Previous  1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.