RFX 2.13/2.12 error coming from 2.11

Posted on
Sun Sep 09, 2018 5:49 am
marcel langelaan offline
Posts: 65
Joined: May 12, 2017

RFX 2.13/2.12 error coming from 2.11

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)

Posted on
Sun Sep 09, 2018 8:03 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: RFX 2.13/2.12 error coming from 2.11

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Sep 09, 2018 8:44 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: RFX 2.13/2.12 error coming from 2.11

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

Posted on
Sun Sep 09, 2018 6:21 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: RFX 2.13/2.12 error coming from 2.11

Thanks for the prompt fix Karl. I've published the new version (2.1.14) in the plugin store.

Image

Posted on
Mon Sep 10, 2018 9:19 am
marcel langelaan offline
Posts: 65
Joined: May 12, 2017

Re: RFX 2.13/2.12 error coming from 2.11

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)

Posted on
Mon Sep 10, 2018 9:27 am
marcel langelaan offline
Posts: 65
Joined: May 12, 2017

Re: RFX 2.13/2.12 error coming from 2.11

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)

Posted on
Mon Sep 10, 2018 9:53 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: RFX 2.13/2.12 error coming from 2.11

what sensor type have you selected in device edit?

Posted on
Mon Sep 10, 2018 4:48 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: RFX 2.13/2.12 error coming from 2.11

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.

Posted on
Tue Sep 11, 2018 1:53 am
marcel langelaan offline
Posts: 65
Joined: May 12, 2017

Re: RFX 2.13/2.12 error coming from 2.11

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.

Posted on
Tue Sep 11, 2018 5:01 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: RFX 2.13/2.12 error coming from 2.11

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

Posted on
Tue Sep 11, 2018 8:54 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: RFX 2.13/2.12 error coming from 2.11

marcel,
do you want to try the new version? its on GitHub/kw123

Posted on
Wed Sep 12, 2018 12:53 pm
marcel langelaan offline
Posts: 65
Joined: May 12, 2017

Re: RFX 2.13/2.12 error coming from 2.11

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)

Posted on
Wed Sep 12, 2018 6:56 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: RFX 2.13/2.12 error coming from 2.11

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

Posted on
Thu Sep 13, 2018 8:03 am
marcel langelaan offline
Posts: 65
Joined: May 12, 2017

Re: RFX 2.13/2.12 error coming from 2.11

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)

Posted on
Thu Sep 13, 2018 2:44 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: RFX 2.13/2.12 error coming from 2.11

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

Who is online

Users browsing this forum: No registered users and 3 guests