RFXCOM error after upgrade - isUS not found in Dict (SOLVED)

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.
mike_c
Posts: 37
Joined: Thu Oct 03, 2013 12:55 pm

RFXCOM error after upgrade - isUS not found in Dict (SOLVED)

Post by mike_c »

I started to write a request for help. but managed to solve the issue. I thought I would write some brief notes here in case others face a similar issue.

I've been running RFXCOM plugin (v 1.4.0) for a number of years. This connects to a RFXtrx 433 to control a collection of Somfy blinds. Normal processing ensues - Indigo control on a schedule / via control pages along with the remote for each blind as a manual override.

For a while now (in honesty it's been 12 months+) the following warning can be found when starting indigo server:

Code: Select all

Warning plugin "RFXCOM 1.4.0" may not be compatible with next Indigo release without an update
In preparation for an upcoming Indigo upgrade breaking the integration to the blinds (and me getting grief from the rest of the family that the blinds no longer work), I applied the available upgrade (to version 3.0.2) via the Download New Version menu item. However, after applying the upgrade and seeing the successful startup messages, the following error was displayed when trying to control a blind:

Code: Select all

RFXCOM Error    'key isUS not found in dict'
After the usual google-foo (no joy), I started writing this post but thought I'd try one more thing. I opened up the plugin zip file, and did a recursive grep for isUS. I found two entries which I commented out, reloaded the plugin and ... all working. For reference isUS can be found in:
./RFXCOM.indigoPlugin/Contents/Server Plugin/Devices.xml (I left this file as it did not appear to call upon this value)
./RFXCOM.indigoPlugin/Contents/Server Plugin/RFXTRX.py (commented out line 616 to 624 and 660 to 661).


As I am UK based, I just commented out the python code (including the nested statements). If US based, I assume you would need to ensure the conditional statements ARE run (respecting python's indentation).

Hope that this may be of help to someone now or in the future.
User avatar
jay (support)
Site Admin
Posts: 18416
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: RFXCOM error after upgrade - isUS not found in Dict (SOL

Post by jay (support) »

Looking at the current code, isUS should always be True or False, but never missing. It's likely that at some point it wasn't part of the device definition and whoever added it didn't take this into account. I think that if you just edit the device config and save it again that would solve the problem.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “RFXCOM”