Page 1 of 2

RFX 2.13/2.12 error coming from 2.11

Posted: Sun Sep 09, 2018 5:49 am
by marcel langelaan
Hi I just upgraded from 2.11 to 2.13 and get the following error:
Is it possible to determine which sensor is causing this issue, just removing and re-adding is not really an option with the number of triggers related to these sensors.


RFXCOM Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 309, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2285, in startComm
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 772, in processPacket
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 1406, in handleRFXSensor
NameError: global name 'tUnits' is not defined

RFXCOM Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Sun Sep 09, 2018 8:03 am
by jay (support)
It's a bug in the code that added the temperature unit type (F or C) to the display (tUnits is used on line 1406 without first being defined). I'm not very familiar with this plugin so I've filed an issue for the developer that added that capability a few releases back. Hopefully he can get a fix done soon.

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Sun Sep 09, 2018 8:44 am
by kw123
Jay,

that was my fault.

I pushed v .14 to GitHub with a fix. In the past Matt then loaded it to the plugin store.

https://github.com/kw123/rfxcom-plugin

Karl
svalue = (ord(data[5])*256)+ord(data[6])
tUnits = self.plugin.unitsTemperature # <<<<< added line 1326
self.plugin.debugLog(u"RFXSensor %d with subtype %d and value %d" % (sensor,subtype,svalue))

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Sun Sep 09, 2018 6:21 pm
by matt (support)
Thanks for the prompt fix Karl. I've published the new version (2.1.14) in the plugin store.

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Mon Sep 10, 2018 9:19 am
by marcel langelaan
All,

Thx, but i have now the following error:

10 Sep 2018 at 17:17:11
RFXCOM Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 309, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2291, in startComm
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 772, in processPacket
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 1407, in handleRFXSensor
UnboundLocalError: local variable 'humid' referenced before assignment

RFXCOM Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Mon Sep 10, 2018 9:27 am
by marcel langelaan
after switching off the Hum sensor I get the following error:


Traceback (most recent call last):
File "plugin.py", line 309, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2291, in startComm
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 772, in processPacket
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 1415, in handleRFXSensor
KeyError: key sensorValueType not found in dict

RFXCOM Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Mon Sep 10, 2018 9:53 am
by kw123
what sensor type have you selected in device edit?

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Mon Sep 10, 2018 4:48 pm
by kw123
I believe I have fixed it ...The "RFXCOM" sensor type looks like an older version. Suggest to use "temperature" sensor type instead.

created a pull request for Matt. /Jay. version .15

Karl

also changed the refresh of the sensor internal storage to included device edit / save,
just in case eg sensor type was changed. Before after restart or dev.state update the sensor internal storage (dict) was refreshed not after device edit.

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Tue Sep 11, 2018 1:53 am
by marcel langelaan
Hi Karl,

I use RFX-sensor for the RFX-Temp sensors and temp sensor for the Oregon temp sensors
Using temp sensor for a RFX-sensor doesn't work.

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Tue Sep 11, 2018 5:01 am
by kw123
marcel langelaan wrote:Hi Karl,

I use RFX-sensor for the RFX-Temp sensors and temp sensor for the Oregon temp sensors
Using temp sensor for a RFX-sensor doesn't work.
Ok. I tried my Oregon sensors with both options and they work Don’t have rfx sensors.


Sent from my iPhone using Tapatalk

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Tue Sep 11, 2018 8:54 pm
by kw123
marcel,
do you want to try the new version? its on GitHub/kw123

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Wed Sep 12, 2018 12:53 pm
by marcel langelaan
Hi sorry for the late response, still an issue, see below.
- Switching off (disable) the RFX-temp sensors results in no error.
- Selecting Temp sensor iso RFX sensor gives a value 0 degrees (not working). Other way around (Oregon sensor) selected as RFX sensor works.

12 Sep 2018 at 20:45:08
RFXCOM Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 309, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2294, in startComm
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 772, in processPacket
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 1417, in handleRFXSensor
KeyError: key sensorValueType not found in dict

RFXCOM Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Wed Sep 12, 2018 6:56 pm
by kw123
reposted the same version.. it should be fixed now :oops: :oops:


just some background .. when I switch my sensor to and RFXcom sensor from temperature type , it still has the property defined, so the check turns out ok. I guess in your case it has always been an RFXcom and it does not have that property ..

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Thu Sep 13, 2018 8:03 am
by marcel langelaan
Hi,

The version i have downloaded from .... is 2.14, yesterday the number was 2.15 => have i downloaded the right version?
When its handy to actual see whats happening on my system sent an email and i give you access to the system.

Still an issue:

13 Sep 2018 at 15:58:05
RFXCOM Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 309, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2291, in startComm
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 772, in processPacket
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 1415, in handleRFXSensor
KeyError: key sensorValueType not found in dict

RFXCOM Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Trigger SO Office TEMP virtual
Z-Wave sent "SO HC Valve" on
RFXCOM Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 309, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 2291, in startComm
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 772, in processPacket
File "/Library/Application Support/Perceptive Automation/Indigo 7/Plugins/RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py", line 1418, in handleRFXSensor
NameError: global name 'tDigits' is not defined

RFXCOM Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Re: RFX 2.13/2.12 error coming from 2.11

Posted: Thu Sep 13, 2018 2:44 pm
by kw123
the version I posted on https://github.com/kw123/rfxcom-plugin is .15 that one should work

it is not yet on the indigo store,

Karl