RFXtrx

Questions and comments specific to a particular plugin should go here.

Re: RFXtrx

Postby mickelin » Mon Apr 23, 2012 6:26 pm

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: 74
Joined: Sun Jan 04, 2009 5:54 pm

Re: RFXtrx

Postby mickelin » Tue Apr 24, 2012 8:20 pm

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.
mickelin
Experienced User
 
Posts: 74
Joined: Sun Jan 04, 2009 5:54 pm

Re: RFXtrx

Postby krambriw » Wed Apr 25, 2012 8:56 am

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

Best regards, Walter
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: RFXtrx

Postby a11an » Thu Apr 26, 2012 5:00 pm

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
a11an
 
Posts: 8
Joined: Thu Apr 26, 2012 4:47 pm

Re: RFXtrx

Postby krambriw » Fri Apr 27, 2012 3:30 pm

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 35 times
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: RFXtrx

Postby mickelin » Sat Apr 28, 2012 8:54 am

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
mickelin
Experienced User
 
Posts: 74
Joined: Sun Jan 04, 2009 5:54 pm

Re: RFXtrx

Postby krambriw » Sat Apr 28, 2012 4:23 pm

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
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: RFXtrx

Postby Pastis » Sat Apr 28, 2012 9:23 pm

thx for the plugin !
how can i get the variable name for temperature/humidity etc.. ?
Pastis
 
Posts: 16
Joined: Mon May 16, 2011 3:03 pm

Re: RFXtrx

Postby krambriw » Sun Apr 29, 2012 6:01 am

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
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: RFXtrx

Postby Pastis » Sun Apr 29, 2012 10:28 am

thank you very much ^^
Pastis
 
Posts: 16
Joined: Mon May 16, 2011 3:03 pm

Re: RFXtrx

Postby krambriw » Sun Apr 29, 2012 4:52 pm

Beta version released as official version
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: RFXtrx

Postby Mastiff » Thu May 03, 2012 11:41 am

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=product_link.html&link=&artnr=340662&title=Jenkinsbird%20Weather%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:
Mastiff
 
Posts: 2
Joined: Thu May 03, 2012 10:43 am

Re: RFXtrx

Postby krambriw » Thu May 03, 2012 5:26 pm

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
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: RFXtrx

Postby Mastiff » Thu May 03, 2012 5:39 pm

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:
Mastiff
 
Posts: 2
Joined: Thu May 03, 2012 10:43 am

Re: RFXtrx

Postby krambriw » Fri May 04, 2012 4:17 am

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
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 2 guests