Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

RFXtrx

Questions and comments specific to a particular plugin should go here.
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: RFXtrx

Post by mickelin »

Hi Walter,

Yes, probably a good idea to keep it clean. I have promoted the RFXtrx, EG and your plugin over at the SwitchKing forum, so hopefully there will be more interest soon.

The plugin now shows correct wind direction and wind speed, e.g. 0 degrees for North, 90 for E, 180 for S and 270 for W. I enabled the logfile so I wouldn't have to copy down all the debug values, but I can't find the log file! Where is it and what is the file name?

Anyway, it is easy to calculate the other directions:

0 N
22,5 NNE
45 NE
67,5 ENE
90 E
112,5 ESE
135 SE
157,5 SSE
180 S
202,5 SSW
225 SW
247,5 WSW
270 W
292,5 WNW
315 NW
337,5 NNW

For some reason, the rain sensor doesn't get picked up by RFXtrx, even with all protocols enabled. The station picks it up, so it works. I have asked Bert for advice.

Regarding other calculations, let me think about that for a bit. Clearly, some kind of average for the wind speed would be nice, but I'm not sure what makes most sense. In addition to just displaying the weather data on my iPad, my use case for wind is to roll up my outside blackout curtains if it starts blowing too much from the "wrong" directions.

The rain sensor I'm not sure if I'll keep, but the use case there could be to turn off the outside watering system if it has rained more than x in the last 24 hours. I have moisture sensors in the garden connected to the watering system but they don't work very well and I have no way of reading them from afar, so the rain value could be a good complement to avoid overwatering.

My main use cases are for temp (car heater, pool heater etc) and with the RFXtrx I can finally read my UPM temp sensors from more the 2m away :D

Cheers,
Michael
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: RFXtrx

Post by mickelin »

Bert has now sorted out the rain sensor and will post a new firmware 35 shortly with the UPM wind and rain sensors supported, in addition to the temp sensors.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

Great, when I am back from my business trip, I will update the plugin accordingly

Best regards, Walter
a11an
Posts: 8
Joined: Thu Apr 26, 2012 4:47 pm

Re: RFXtrx

Post by a11an »

Great plugin, I'm completely new to EventGhost, and really impressed with what I have seen so far. I recently purchased a RFXtrx and would like to control my HomeEasy, LightwaveRF and X10 devices. I currently use HouseBot, but there is no plugin for the RFXtrx. My overall plan is to use EventGhost for RFXtrx (and I'm sure more, once I lean what it can do!) then write a plugin to communicate with HouseBot, I just need to learn python!! Anyway ....

I have successfully managed to monitor and send commands via X10 and HomeEasy, but I am getting Decoding message when eventghost picks up an x10 bright /dim command. Error is as follows: Can anyone offer any advice?

Decoding of message failed: ['07', '10', '00', '03', '41', '00', '03', '60']
Decoding of message failed: ['07', '10', '00', '04', '41', '00', '02', '60']


Thanks
Allan
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

Hi, I have made a new beta version adopted to RFXtrx FW 36.

Code: Select all

# 2012-04-27  Walter Kraembring: Beta supports:
#                    - Wind directions as text information (S, N, E, W etc)
#                    - Rain total values are multiplied by 10 (FW version 35)
#                    - TEMP6 - TS15C added
Michael, could you try and see if it shows expected results?

Best regards, Walter
__init__.py
(159.28 KiB) Downloaded 353 times
mickelin
Experienced User
Posts: 85
Joined: Sun Jan 04, 2009 5:54 pm

Re: RFXtrx

Post by mickelin »

Looks good Walter, well done! The only thing I would change is the comment: you are dividing the rain values, right? Not multiplying. The FW does that.

I'm returning the UPM rain sensor and getting the Oregon instead. The range is just too poor even with the RFXtrx.
So I'll be able to get wind and rain data for Oregon, if you don't have that already.

Cheers,
Michael
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

Thanks Michael,
I'll change the comment in the official version (just copied paste without thinking...). Oregon is a better choice. I can read neighbors Oregon meters but I have not figured out yet where it is located.

Best regards, Walter
Pastis
Posts: 19
Joined: Mon May 16, 2011 3:03 pm

Re: RFXtrx

Post by Pastis »

thx for the plugin !
how can i get the variable name for temperature/humidity etc.. ?
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

For events from RFXtrx, the static data is in the event suffix and the dynamic is in the payload. A typical event looks like this:

Code: Select all

07:49:24   RFXtrx.Type: WT450H id: 3841 ' temperature: -22.1 deg C humidity: 42 %RH status: normal signal: 5 battery: 9'


The payload is in this part: ' temperature: -22.1 deg C humidity: 42 %RH status: normal signal: 5 battery: 9'

To get the actual data, make for instance a macro with a python script inside and drag the events you are looking for to the same macro.
Image2.jpg
This sample macro will give you an example.

Code: Select all

eg.event.payload_copy = eg.event.payload
my_data = eg.event.payload_copy.split(' ')
#print my_data

td = my_data[2] #temperature
hd = my_data[6] #humidity
sd = my_data[11] #signal
bd = my_data[13] #battery

print "temperature: ", td
print "humidity: ", hd
print "signal: ", sd
print "battery: ", bd
Of course it is possible to make more advanced solutions like a plugin with actions that are capturing and processing this data. All depends what you want to do with it. Myself I use this data together with web socket suits to update web pages.

Best regards, Walter
Pastis
Posts: 19
Joined: Mon May 16, 2011 3:03 pm

Re: RFXtrx

Post by Pastis »

thank you very much ^^
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

Beta version released as official version
Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: RFXtrx

Post by Mastiff »

Hi, and thanks for this Plug-in. I am an temporary user, waiting for the XPL to be done, so I can use Girder (which my whole house is built on). That may take some time, though. In the meantime I have installed the plug-in and I am able to turn off and on the ovens in my cabin without any problems. But I have two questions:

1. Is it possible to check status on the switches (which are NEXA type)? I am using ARC as the setting.

2. I am expecting a couple of thermometers from a brand called Jenkinsbird, this thing here http://www.teknikmagasinet.no/db.pl?tf= ... her%20Pro&. I have read a bit in the thread and wonder if I have to program to get the readings from them or if I can simply use an event or something and see it in the log. I don't really need this to show up anywhere advanced, like a webpage or something, like I said this is a temprorary solution.

I hope I at least get enough points for honesty for you guys to help me a bit! :lol:
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

Well, I give you a temporary answer....just joking

1) No, the devices do not have a two way communication

2) If the Jenkins are supported, you will get events in the EG log provided you have enabled them (to enable you have first to check that the RFXtrx has them enabled, then also that the plugin has them enabled. If you enable all to start you should be fine)

Welcome back once you upgrade from Girder :)

Bets regards, Walter
Mastiff
Experienced User
Posts: 872
Joined: Thu May 03, 2012 10:43 am

Re: RFXtrx

Post by Mastiff »

A temporary thanks for answering! :lol: Seriously, I should be able to deal with this, so thanks for answering. I'll just turn on or off instead of wondering if they are on or off. And the log is enabled, I think. If not I'll do that. As for downgrading, I don't think so... :mrgreen:
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post by krambriw »

Dear Allan, I missed your message earlier, sorry for that.

Code: Select all

I have successfully managed to monitor and send commands via X10 and HomeEasy, but I am getting Decoding message when eventghost picks up an x10 bright /dim command. Error is as follows: Can anyone offer any advice?

Decoding of message failed: ['07', '10', '00', '03', '41', '00', '03', '60']
Decoding of message failed: ['07', '10', '00', '04', '41', '00', '02', '60']
I see the problem here, I did not expect unit codes starting with '00', I have implemented it starting from '01' (it is in the sixt position from left).

I will fix it easy but I need to check with RFXCOM first since it is specified the way I implemented it.


Best regards, Walter
Post Reply