We have moved at community.getvera.com

Author Topic: Some plugin updates  (Read 1758 times)

Offline tinman

  • Full Member
  • ***
  • Posts: 215
  • Karma: +16/-0
Some plugin updates
« on: July 18, 2017, 01:36:43 pm »
I've modified some of the plugin code to make changes that I think are improvements:
* some refactoring to eliminate duplicate code
* create separate JSON files for each firmware type. The changes show up on the tab that shows the receiving protocols. Only those protocols handled by the particular firmware type (type1, type2, ext and ext2) are displayed and can be enabled or disabled. This should have no impact on whatever transmit protocols you are using to control devices. Transmit protocols are not enabled or disabled.
* collect and save additional data from temperature and humidity devices - in the future I may add a tab to the RFXtrx page to display all of this data since there doesn't seem to be a way to do it for these devices on the Vera devices page. I'm gathering max and min values and also saving the rssi value.

If you want to try these changes just unzip the attached file and upload the files to your Vera. NOTE: You should probably download each of the files to be replaced first in case you decide these changes won't work for you. You can simply upload the original files you've saved.

I'd appreciate any comments you may want to share.

Offline Mai Pensato

  • Full Member
  • ***
  • Posts: 228
  • Karma: +5/-1
Re: Some plugin updates
« Reply #1 on: July 24, 2017, 04:03:23 pm »
Hi Tinman,  fantastic that you did some modifications to this plugin, because the originial maker (lolodomo) is not updating it anymore (he does not use RFXcom anymore). Are you planning to do more modifications ?  I will for sure try your update soon and report back my experiences.

Offline tinman

  • Full Member
  • ***
  • Posts: 215
  • Karma: +16/-0
Re: Some plugin updates
« Reply #2 on: August 05, 2017, 02:45:03 pm »
I've made some additional changes and the updated files are zipped into the attachment below. I've added a tab the the transceiver device information that will display the max and min temperature and humidity readings for the life of each sensor and for the last 24 hours. There's a button to allow resetting the data for each sensor. Also, the signal strength and the age of the last data received is also shown. The table data is not dynamic but there is a button to allow the data to be refreshed. I suggest using the same method described in the initial post for uploading these files.

Offline tinman

  • Full Member
  • ***
  • Posts: 215
  • Karma: +16/-0
Re: Some plugin updates
« Reply #3 on: August 09, 2017, 10:49:20 am »
One additional data display capability added. The table displaying the sensor data can now be sorted by the contents of one of the first four columns. I've attached a new ZIP file containing all of the files. There are only two files that have changed: J_RFXtrx.js and L_RFXtrx.lua.
My focus has been on temperature and humidity sensors because that is my prime reason for obtaining an RFXtrx transceiver. I wanted to be able to use lower cost sensors. The Z-Wave sensors are too expensive. I'm currently monitoring 14 temperature/humidity sensors; a total of 28 devices.
I have recently obtained two different 433Mhz door sensors. The RFXtrx433E can decode signals from these sensors but currently the RFXtrx plugin doesn't handle them. I'm planning to investigate the use of these door sensors as simple wireless contact inputs as part of a system to monitor the efficiency of my HVAC system.

Offline Bananfluen

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Some plugin updates
« Reply #4 on: August 13, 2017, 01:48:25 pm »
Awsome! Thanks for this  :)

Offline palaxel

  • Newbie
  • *
  • Posts: 6
  • Karma: +1/-0
Re: Some plugin updates
« Reply #5 on: September 17, 2017, 03:42:01 pm »
Nice to have some start with this plugin again. I saw that you did an sensor add on in a later post. I've a pool sensor (Rubicson 48019) that is supported by the RFXtrx433 but that is not supported by the plugin. How hard was it for you to add support and what tools did you use? If it's not to hard I'll try to add support for it and upload it to you so you can add it to your files for a release.

Offline tinman

  • Full Member
  • ***
  • Posts: 215
  • Karma: +16/-0
Re: Some plugin updates
« Reply #6 on: September 26, 2017, 08:40:37 am »
Sorry for the late response - I was on vacation. If the transceiver decodes messages from this device it shouldn't be difficult to add it to the plugin. I'll take a look...

Offline JuniorJedi

  • Full Member
  • ***
  • Posts: 112
  • Karma: +3/-1
Re: Some plugin updates
« Reply #7 on: September 26, 2017, 09:52:28 am »
Great work tinman.

Offline tinman

  • Full Member
  • ***
  • Posts: 215
  • Karma: +16/-0
Re: Some plugin updates
« Reply #8 on: September 26, 2017, 11:17:46 am »
I assume that when you say that the sensor is supported by the RFXtrs433 that you've seen messages from the sensor appear when you have the transceiver connected to your PC and you're running RFXmngr. If so, could you post what is reported by RFXmngr for the pool sensor?

Offline wirefree

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Some plugin updates
« Reply #9 on: October 17, 2017, 08:47:33 pm »
@Tinman, any advice on controlling a LucciAir fan with this plugin? It was added to the RFXtrx433E firmware in late 2015 which is unfortunately after the latest Vera UI plugin was updated by @lolodomo.

Excited to see your updates to the plugin so far!

Offline amg0

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3174
  • Karma: +210/-8
Re: Some plugin updates
« Reply #10 on: November 22, 2017, 04:45:26 pm »
I noticed the file J_RFXtrx.js makes call to the wrong url. recent firwmare changes seem to have changed something and the call are failing.

here a quick change I made to restore it

Code: [Select]
OLD line
new Ajax.Request (command_url+'/data_request', {

NEW line
new Ajax.Request (data_request_url, {

Offline tinman

  • Full Member
  • ***
  • Posts: 215
  • Karma: +16/-0
Re: Some plugin updates
« Reply #11 on: November 23, 2017, 10:17:15 am »
Thanks for the tip. I'll make the change and post an update.