We have moved at community.getvera.com

Author Topic: USB RFXtrx on openLuup/RPi?  (Read 697 times)

Offline jswim788

  • Hero Member
  • *****
  • Posts: 809
  • Karma: +58/-2
USB RFXtrx on openLuup/RPi?
« on: September 06, 2017, 11:26:35 pm »
Is the USB RFXtrx plugin likely to work with openLuup on a RPi?  Any advice before I take a deeper look?  I'm referring to this plugin: http://forum.micasaverde.com/index.php/topic,9563.msg63795.html#msg63795

I see this thread on openLuup serial connections - if I am very lucky, that's all it might need?  http://forum.micasaverde.com/index.php/topic,39088.msg292406.html#msg292406

Or is there a better way to communicate on 433MHz with openLuup?

thanks!


Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 227
  • Karma: +5/-0
Re: USB RFXtrx on openLuup/RPi?
« Reply #1 on: May 23, 2018, 07:03:17 am »
Any updates on this? I could use it too..
Vera Plus - RFXtrx433e

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 227
  • Karma: +5/-0
Re: USB RFXtrx on openLuup/RPi?
« Reply #2 on: May 25, 2018, 05:59:32 pm »
Is there a way to install this plugin?
Vera Plus - RFXtrx433e

Offline jswim788

  • Hero Member
  • *****
  • Posts: 809
  • Karma: +58/-2
Re: USB RFXtrx on openLuup/RPi?
« Reply #3 on: May 25, 2018, 07:11:32 pm »
I'm guessing that you can install it by finding the latest files and putting them on your openLuup system (possibly from here: http://code.mios.com/trac/mios_rfxtrx/browser/tags/beta3# ?).  Then create a device as usual in openLuup.

Getting it to work is the harder part of it.  If it works, let me know.

My main interest in this was for temperature sensors, but I'm currently leaning towards the Xiaomi sensors instead.  If they don't work out, I may come back to this.

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 227
  • Karma: +5/-0
Re: USB RFXtrx on openLuup/RPi?
« Reply #4 on: May 26, 2018, 04:28:50 am »
Ok, so the plugin is installed, and it looks ok in the GUI, but how to link it to the USB device like in "Serial communication" on the Vera?

Vera Plus - RFXtrx433e

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 227
  • Karma: +5/-0
Re: USB RFXtrx on openLuup/RPi?
« Reply #5 on: June 04, 2018, 01:49:56 am »
OK, so i've done the steps described in the "Serial Connection" thread.

For Step 4, i put this in L_RFX...lua at line 8324 under the "local function startup(lul device)" function.

I still can't see any communication with it, but the LuaUPnP.log shows no error. Is there any other log files i can tail to see if its up and running to see that the RFX plugin works?

I'll try to connect from another computer to verify that ser2net is running, but my RFX manager throws an exeption when i press "Connect" for some reason..
Vera Plus - RFXtrx433e

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 227
  • Karma: +5/-0
Re: USB RFXtrx on openLuup/RPi?
« Reply #6 on: June 07, 2018, 06:56:51 am »
Ok, so the last try didnt work. Now I try to use the LAN connection in the RFX code.

I see in the openluup startup log that L_RFXtrx.lua requires a package called "bit", and it can't locate it. Can anyone tell me what debian package to install?

Line 3 in L_RFXtrx.lua:
Code: [Select]
Local bitw = require("bit")
Vera Plus - RFXtrx433e

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: USB RFXtrx on openLuup/RPi?
« Reply #7 on: June 07, 2018, 07:04:22 am »
This should do it (from the RPi command prompt, or, indeed, the AltUI OS Command line):

Code: [Select]
pi@raspberrypi:~ $ sudo apt-get install lua-bitop
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 227
  • Karma: +5/-0
Re: USB RFXtrx on openLuup/RPi?
« Reply #8 on: June 07, 2018, 05:42:41 pm »
That did the trick, its up and running.  :D

Thanks for all help and patience!
Vera Plus - RFXtrx433e