[RfxCom] Oregon WTGR800

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
Minus
Starting Member
Starting Member
Posts: 12
Joined: Tue Feb 10, 2009 11:33 am
Location: France

[RfxCom] Oregon WTGR800

Post by Minus »

I test DomotiGa with Oregon WTGR800 Anemometer/Outside Temp-Hygro.

I had to add the device "Oregon WTGR800" to the app (Devices -> Modules/groups -> and then saw the pic of this sensor.
-> I suppose you just need to add it on the table to be fully "natively" listed.

The real problem :
On Wiki, the list of Oregon Sensor is not clear about this Oregon WTGR800.
WTGR800 is displayed 2 times (one time Anemometer and one time Outside Temp-Hygro) but in fact, this is both :!:

The problem is this sensor sends data for 2 types (wind and temp/hum) with the same address.

Code: Select all

    50FAB81420800180C94F1B   TH5[8192] WTGR800 addr:20 temp:1,8°C | 35,24°F hum:98 Wet      Battery OK bits=80
    581A99042080C00000002D9C WIND1[8192] WTGR800 addr:20 direction 180° S  speed 0 m/sec  0 Bft  av. speed 0 m/sec  0 Bft   Battery OK bits=88 
DomotiGa uses address like a primary key and you can't add 2 devices with same address.

I haven't fully understood the device management in the source code but
I suppose WTGR800 Sensor need an exception about this limitation.

My investigation finish in Devices.module which checks if more than a device has the address given in parameter :

Code: Select all

PUBLIC SUB Find(sAddress AS String, iInterface AS Integer, OPTIONAL sDevice AS String) AS Integer
Hope to be clear :roll:
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: [RfxCom] Oregon WTGR800

Post by RDNZL »

It's not a good idea to allow two devices with the same address on the same interface, but I have changed the code a bit, update and add a second WTGR800 type device, just append a W behind the address to get the wind values in one of them.

So in your case you have:
'Oregon Temp' with Address 20, you get 1.8C, 87% humid, Wet
'Oregon Wind' with Address 20W, you get 180°, S, 0 m/sec speed, 0m/sec av speed.

Boy, 7 values from one device (excluding Battery level info) ... a though one, but we made it :wink:

Does anyone (Bert?) know if other anemo devices of Oregon have the same behavior?
So output WIND and TH on same address?

I also added the devicetype to the database dump files, but kept the version the same so you can reload upgrade/01177to01178.sql if you want.

Thanks.
Regards, Ron.
Minus
Starting Member
Starting Member
Posts: 12
Joined: Tue Feb 10, 2009 11:33 am
Location: France

Re: [RfxCom] Oregon WTGR800

Post by Minus »

Fantastic, your solution is working like a charm :wink:
Post Reply

Return to “DomotiGa Forum”