RFX 2.13/2.12 error coming from 2.11

About the Indigo Plugin for the new RFXTRX, a USB transceiver for X10, Oregon Scientific, Visonic, HomeEasy, KlikAanKlikUit, COCO, ELRO, NEXA, Intertechno, Düwi, Chacon, DI.O, Domia Lite, ATI Remote Wonder, RFXSensor, RFXPower, RFXMeter, LightwaveRF, Mertik, La Crosse, TFA, Robocam/Ninja, HomeEasy, Flamingo, Ikea Koppla, WaveMan, Intertek/Unitec, Harrison curtains, LightwaveRF, Mertik.
marcel langelaan
Posts: 65
Joined: Fri May 12, 2017 2:13 am

RFX 2.13/2.12 error coming from 2.11

Post 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)
User avatar
jay (support)
Site Admin
Posts: 18411
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post 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.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
kw123
Posts: 8453
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post 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))
User avatar
matt (support)
Site Admin
Posts: 21476
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post by matt (support) »

Thanks for the prompt fix Karl. I've published the new version (2.1.14) in the plugin store.
Image
marcel langelaan
Posts: 65
Joined: Fri May 12, 2017 2:13 am

Re: RFX 2.13/2.12 error coming from 2.11

Post 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)
marcel langelaan
Posts: 65
Joined: Fri May 12, 2017 2:13 am

Re: RFX 2.13/2.12 error coming from 2.11

Post 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)
User avatar
kw123
Posts: 8453
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post by kw123 »

what sensor type have you selected in device edit?
User avatar
kw123
Posts: 8453
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post 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.
marcel langelaan
Posts: 65
Joined: Fri May 12, 2017 2:13 am

Re: RFX 2.13/2.12 error coming from 2.11

Post 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.
User avatar
kw123
Posts: 8453
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post 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
User avatar
kw123
Posts: 8453
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post by kw123 »

marcel,
do you want to try the new version? its on GitHub/kw123
marcel langelaan
Posts: 65
Joined: Fri May 12, 2017 2:13 am

Re: RFX 2.13/2.12 error coming from 2.11

Post 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)
User avatar
kw123
Posts: 8453
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post 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 ..
marcel langelaan
Posts: 65
Joined: Fri May 12, 2017 2:13 am

Re: RFX 2.13/2.12 error coming from 2.11

Post 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)
User avatar
kw123
Posts: 8453
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: RFX 2.13/2.12 error coming from 2.11

Post 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
Post Reply

Return to “RFXCOM”