Problem with RFXtrx

I have a question about Vera + RFXtrx:

I have been running this for a number of years, with three devices, but I have only been using two of them. The third device seems to have stopped working. I removed it (noted that it had device number 17).

But now I have problem to add this as a new device again.

Here’s what I try to do:

Click the RFXtrx arrow in Vera

  1. Select “New device” (I can also select Managed device, and see the other Nexa stuff I have).

  2. Selects “AC”, “Switch light”, writes a device name, writes type “1000017” as ID number.

  3. Unit Code I do not know what to choose. There is a dropdown between 1 and 16. Have tried a few different ones.

  4. Click Create.

Now a green text appears next to the form, with the text “Vera will reload to validate the changes …”. Then nothing happens.

If I reload and check under “Managed device” there are no new ones. Have waited several minutes, nothing happens.

Vera says that it runs the latest firmware.

What to do?

Some devices have a way of setting the Unit Code. Does the switch have any way of setting an ID or unit code? Exactly what kind of switch is this? Manufacturer? Model number?
If no new device is created there may be an error that shows up in the Vera log. You can view the log in your browser by opening a new tab in the browser and entering:
http://your-Vera-IP-address/cgi-bin/cmh/log.sh?Device=LuaUPnP
Be sure to edit that to use your proper IP address.

Thank you for fast answer!

It is this model:
https://www.clasohlson.com/se/Fjärrströmbrytare-2-pack-Nexa-EYCR2-2300/p/Pr364603000

The only button is the pairing button, that can be used to pair it to the remote controls (and that is currently working fine).

And wow, I didn’t knew this logs. There is a lot of stuff there. It seems to log a lot of things every 20 seconds or something like that. After I did a new try to add a new device, nothing happended after about 8 seconds, and the stuff that came there does not looks like it had something to do my attempts (but I am not sure how to interpret the log). Here is what appeared:

02 12/07/20 22:35:22.718 ZWaveNode::HandlePollUpdate node 34 device 46 Ignoring class 0x32 command 0x2 m_iFrameID 120145/15656848 data 0x1 0x44 0x0 0x0 0x1 0x88 (#D####) <0x76bea520>
04 12/07/20 22:35:22.719 <0x76bea520>
02 12/07/20 22:35:22.719 Device_Basic::AddPoll 46 poll list full, deleting old one <0x76bea520>
06 12/07/20 22:35:22.720 Device_Variable::m_szValue_set device: 46 service: urn:micasaverde-com:serviceId:HaDevice1 variable: PollRatings was: 4.90 now: 4.90 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x76bea520>
06 12/07/20 22:35:22.721 Device_Variable::m_szValue_set device: 46 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: LastPollSuccess was: 1607376775 now: 1607376922 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76bea520>
06 12/07/20 22:35:22.721 Device_Variable::m_szValue_set device: 46 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: ConsecutivePollFails was: 0 now: 0 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x76bea520>
01 12/07/20 22:35:22.750 JobHandler_LuaUPnP::REQ_VariableGet variable not found <0x73167520>
02 12/07/20 22:35:40.817 ZWaveNode::HandlePollUpdate node 9 device 6 got a secure command for unsecure command class 0x31 command 0x5 m_iFrameID 120171/17876912 data 0x4 0x22 0x0 0x0 (#"##) <0x76bea520>
06 12/07/20 22:35:40.818 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:EnergyMetering1 variable: Watts was: 0.0 now: 0.0 #hooks: 0 upnp: 0 skip: 0 v:0xa2aff0/NONE duplicate:1 <0x76bea520>
06 12/07/20 22:35:40.818 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:EnergyMetering1 variable: ActualUsage was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xa2b068/NONE duplicate:1 <0x76bea520>
02 12/07/20 22:35:43.176 ZWaveNode::HandlePollUpdate node 9 device 6 got a secure command for unsecure command class 0x32 command 0x2 m_iFrameID 120184/18401528 data 0x1 0x44 0x0 0x0 0x8 0xf2 (#D####) <0x76bea520>
06 12/07/20 22:35:43.177 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:EnergyMetering1 variable: KWH was: 22.9000 now: 22.9000 #hooks: 0 upnp: 0 skip: 0 v:0xa40c08/NONE duplicate:1 <0x76bea520>
06 12/07/20 22:35:43.177 Device_Variable::m_szValue_set device: 6 service: urn:micasaverde-com:serviceId:EnergyMetering1 variable: KWHReading was: 1607376793 now: 1607376943 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76bea520>
01 12/07/20 22:35:43.213 JobHandler_LuaUPnP::REQ_VariableGet variable not found <0x73dea520>
06 12/07/20 22:35:49.978 Device_Variable::m_szValue_set device: 5 service: urn:micasaverde-com:serviceId:EnergyMetering1 variable: Watts was: 0.0 now: 0.0 #hooks: 0 upnp: 0 skip: 0 v:0xa2aff0/NONE duplicate:1 <0x76bea520>
06 12/07/20 22:35:49.979 Device_Variable::m_szValue_set device: 5 service: urn:micasaverde-com:serviceId:EnergyMetering1 variable: ActualUsage was: 1 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xa2b068/NONE duplicate:1 <0x76bea520>
06 12/07/20 22:35:52.106 Device_Variable::m_szValue_set device: 5 service: urn:micasaverde-com:serviceId:EnergyMetering1 variable: KWH was: 22.9000 now: 22.9000 #hooks: 0 upnp: 0 skip: 0 v:0xa40c08/NONE duplicate:1

It looks like these switches come with a remote control. If the remote control is working to turn the switches on and off I would suggest that you try to use the remote control to discover the ID and unit code.
Make sure that you have the AC / KAKU,DIO protocol enabled. Press the remote control buttons that operate the switch and note the exact time that you do that. After a few seconds, get a fresh look at the vera log. Look for log entries around the time you noted containing LastReceivedMsg. In the same log entry look for was:0B 11 00
If you find these copy that log entry to a reply here.

I have a few of these, and i’ve just used a random ID and unit code, and they just store whatever calls ot when they are in pairing mode… using a remote and “auto create” works fine too.

Thanks again. I have tried to following your instructions. I have AC protocol enabled, but there is nothing like “KAKU” or “DIO” in the protocol list. Nothing happends in the log when I turn the switch on or off by the remote control. Not even when i switch the lamps that already works from Vera, using the remote. However, if Vera change this (already working) lamps, I can see it in the log, and their device number (that I already knew).

I have now been trying a lot of numbers, but the same things happends whatever I write: “Vera will reload to validate the changes…” appears, and then nothing more. Nothings changes in the list. What is supposed to happend? How long time should I wait after this text appears, until I know it does not works? (Afraid being to quick, the testing of each number takes a lot of time…)

The ID code can a value in range 1 - 67108863. The “Unit code” can only be 1 to 16. Is it just to take something randomly there?

What version of the plugin do you have installed? The protocol you need is labeled AC/KAKU,DIO. If you don’t see that then you’re not running the latest version.

It was several (3? 4?) years since I installed this and I honestly don’t remember how I installed the plugins.
RFXtrx settings, it says: “Version: beta 3”. Not sure if that is plugin version or something else? Witch version is the latest? I will try to upgrade.

You can download the latest plugin here: Plugin update Version 1.96 - USB RFXtrx Transceiver - Ezlo Community

I have downloaded version 1.96, and start following this instructions:
RFXtrx Plugin Notes - USB RFXtrx Transceiver - Ezlo Community
On the second point, to upload the PNG (“icon”) files, I run into problem. There is no /www/cmh/skins/default/icons/ directory in the system. However, I found /www/cmh/skins/default/img/icons/ and tried to put them there instead, but got error:

scp: /www/cmh/skins/default/img/icons//FanIcon0L.png: Read-only file system

I took a quick look at the file system:

# df -h|grep /$
rootfs                   10.6M      1.0M      9.6M   9% /
overlayfs:/overlay       10.6M      1.0M      9.6M   9% /
# mount |grep /\ 
rootfs on / type rootfs (rw)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
#

Not sure how to solved this. Is this PNG files really needed, or is it just cosmetical?

And if that is the case,how do I continue – do I need to do the “create device” again, or can that part be skipped because I just upgrading? (Or should I remove some old device first)?

The icons are just cosmetic but if the directory isn’t there you can create it. I assume you’re using or can get WinSCP. If so you can create the directories you need.
Upgrading to the latest version of the plugin should not impact any devices already in use by the plugin.

Strangely I could create the directory (I logged in by ssh from my linux laptop for that), thought it said it was a “Read-only file system”, and have now uploaded the PNG files by scp (from linux).

Do I need to create a new RFXtrx device or will this uploaded files be working with my old device directly?

You should not have to create a new RFXtrx device. If fact if your existing RFXtrx device is lost, any devices associated with it will probably be lost as well.

OK, it is upgrading and looks a bit better now, but still not working. After upgrade, I got a nice icon that wasn’t there before. When I create new devices, it still not reloads, but the devices now appears under “Managed device”, a big step forward!

I also get the logs, but they does not seems to help me. Here is one “turn off” quickly followed with one “turn on”:

06	12/10/20 0:42:36.909	Device_Variable::m_szValue_set device: 12 service: urn:rfxcom-com:serviceId:rfxtrx1 variable: LastReceivedMsg was: 0B 11 00 0B 00 E5 8C 9A 04 01 0F 60  now: 0B 11 00 0C 00 E5 8C 9A 04 00 00 60  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73d9e520>
06	12/10/20 0:42:36.910	Device_Variable::m_szValue_set device: 12 service: upnp-rfxcom-com:serviceId:rfxtrx1 variable: VeraTime was: 1607557179 now: 1607557356 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73d9e520>
06	12/10/20 0:42:36.945	Device_Variable::m_szValue_set device: 19 service: urn:micasaverde-com:serviceId:SceneController1 variable: sl_SceneDeactivated was: 4 now: 4 #hooks: 0 upnp: 0 skip: 0 v:0xf738a8/NONE duplicate:0 <0x73d9e520>
06	12/10/20 0:42:37.907	Device_Variable::m_szValue_set device: 12 service: urn:rfxcom-com:serviceId:rfxtrx1 variable: LastReceivedMsg was: 0B 11 00 0C 00 E5 8C 9A 04 00 00 60  now: 0B 11 00 0D 00 E5 8C 9A 04 01 0F 60  #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73d9e520>
06	12/10/20 0:42:37.907	Device_Variable::m_szValue_set device: 12 service: upnp-rfxcom-com:serviceId:rfxtrx1 variable: VeraTime was: 1607557356 now: 1607557357 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x73d9e520>
06	12/10/20 0:42:37.910	Device_Variable::m_szValue_set device: 19 service: urn:micasaverde-com:serviceId:SceneController1 variable: sl_SceneActivated was: 4 now: 4 #hooks: 0 upnp: 0 skip: 0 v:0xf65880/NONE duplicate:0 <0x73d9e520>

The unit 12 seems to be the Vera, or RFXtrx unit itself (it appears in actions also on the other units), and unit 19 is named “RFX Remote L2.0/0E58C9A Group control”, so it is the remote control.

Or is it possible to read something importand from the HEX data?

Also: I have tried to create a lot of devices, from 9 to 26 (but not the ones that I now already exists) and tried if they turn the switch, but failed. Then I noticed that they don’t get the ID I enter! As an example, the device I called “K26” (witch mean I gave it ID number 26) instead now have the ID 83. It seems to be just increasing.

I tried to change the ID in the Vera Devices menu, on the device and then “Advanced”, but with no success. The ID was changed, but it didn’t improved anything. It also felt like I was out in deep water.

Device ID in vera is not the same as the Unit ID in the plugin, which is a part of the coding of the 433 device. Vera Device ID is a number that increases for each new device, old deleted ones will not be reused (which i think is a good thing).

The group control that comes in with the new devices is made by default in order to control devices in the same unit code (i think) collectively.

It may be that the Nexa devices don’t accept the full range of IDs, so i think your best bet to get it in there is to turn on auto create, and use the remote control that came with the units. When you push the remote control button and the device responds, RFX plugin will adopt the unit code and ID from the remote control, using that that code to actuate the device.
This will however mean that you can’t use the remote control again for other devices, as its unit code/id is hard coded in the remote…

Tinman: Could the Unit Code and ID’s for each device be added to the table in “managed devices”? That would be useful if one has to remake a device for some reason.

Perhaps you have figured it out, but:
I have several of these >20. You should use AC and unit code 1, Id what ever you want but I recommend to use higher numbers. I use 100001, 100002, … and up for these. As said above this number is not the same ID number as the switch created in the Vera UI. Plug the switch in the wall socket and flip the switch in the UI within 3 seconds (when the wall switch is flashing) to pair them.

Thanks, I did the pairing procedure, and now it works! And actually the remote still works with the same buttons. :slight_smile:

Thanks everybody!