RFXCom binding does not decode TEMPERATURE_RAIN (Alecto WS-1200) message

Other thing is that if Rain Rate is empty, it shows -NaN. I think it should be 0 (zero)

I think, the outdoor unit is not calculating any RainRate and therefore don’t transmit a value for it. The hour/today/weekly… values are calculated by the indoor part.

The sensor just sends values for temperature, rain total, battery low…

I found the problem regarding accidentally mapping temperature-rain to rain, a new version:

https://github.com/martinvw/openhab2-addons/files/753043/org.openhab.binding.rfxcom-2.1.0-SNAPSHOT.jar.zip

Maybe this also resolves the incorrect rainTotal otherwise I need some debug output to test it locally

We’ll try. Thanks Martin!

Excellent! Temperature is working too now :wink:

TEMPERATURE_RAIN61441_Temperature changed from 8.300000000000000710542735760100185871124267578125 to 8.2000000000000010658141036401502788066864013671875

But the RainTotal is still not right decoded. 93,9mm on display vs. 95,1mm in OpenHAB. This could not be blamed on some rounding etc.

TEMPERATURE_RAIN61441_RainTotal2 changed from NULL to 95.1000000000000085265128291212022304534912109375

Could we dig into the wrong RainTotal?

Yes, I would love too, I need some debug output, like the one mentioned in the opening post:

18:07:46.506 [ERROR] [.rfxcom.internal.RFXComBinding:292 ] - Error occured during packet receiving, data: 0A4F0104D4000096005A79

If you sign into the Karaf console you can enable it, see

Works almost properly here:
16:12:21.051 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 0A4F010ADA090050024369, Packet type = TEMPERATURE_RAIN, Seq number = 10, - Sub type = WS1200, - Id = 55817, - Temperature = 8.0, - Rain total = 57.900000000000006, - Signal level = 6, - Battery level = 9
16:12:21.062 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:38ad4eac message: Raw data = 0A4F010ADA090050024369, Packet type = TEMPERATURE_RAIN, Seq number = 10, - Sub type = WS1200, - Id = 55817, - Temperature = 8.0, - Rain total = 57.900000000000006, - Signal level = 6, - Battery level = 9

The RainTotal is exactly the same as on the display, but on the paperUI, it is Rounded to 57, where I think it should round to 58 MM. Temperature is working properly here…
I will try to put some “rain” on it, since I think it should show the rain_rate as well.

2017-02-05 16:20:21.983 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:51dd5bd0 message: Raw data = 0A4F01CCF001004F03B759, Packet type = TEMPERATURE_RAIN, Seq number = 204, - Sub type = WS1200, - Id = 61441, - Temperature = 7.9, - Rain total = 95.10000000000001, - Signal level = 5, - Battery level = 9

Values on Display:
7,9 Grd. C
93,9 mm rain total

Just “had it rain”:
Display:
7.8 C
60.9 MM rain total

openhab.log:
7.8 C
60.9 MM Rain total

Openhab UI:
7.8 C
60 mm

Have to apologize:

I did some hex decoding of the raw message. This give the 95.1 degree as well. So I plugged the RFXTRX into a windows box and let RFXmgr decode the transmissions:

------------------------------------------------
Packettype    = TEMP_RAIN
subtype       = TR1 - WS1200
Sequence nbr  = 11
ID            = 61441
Temperature   = 7,4 °C
Total rain    = 95,1 mm
Signal level  = 5  -80dBi
Battery       = OK
------------------------------------------------

Exactly, what the binding decodes. So sorry for the noise!
If @flagg 's rfxcom decodes exactly what’s on the display it could be in my rfxcom transceiver itself.
Newer noticed this difference between display and openhab before.
I’m going to check, if there’s a newer rfxtrx firmware than mine…

So @martinvw many thanks for your effort and sorry again!

@Curlyel: 2 days ago I have flashed the rfxcom 1014 firmware. I just noticed the 1015 Firmware is published as well…

@martinvw: Thank you very much! I really enjoy Openhab, but I missed this sensor for automating on rain and temp occurences

In my experience the makers of the rfxcom are quick in responding so you might be able to get some help from them / him?

I will create a pull request for the addition.

I changed the rounding of the displayed value, can you try once more :slight_smile:

https://github.com/martinvw/openhab2-addons/files/753094/org.openhab.binding.rfxcom-2.1.0-SNAPSHOT.jar.zip

According to the SDK the temperatureRain sensor does not support a rainrate

Flashed now the release 1015. Still the same inconsistent results…

Mmh. But what if the values the sensor is sending are not the values displayed at the indoor unit?
So I pulled out the batteries out of the display and put them in again.

Guess what: The display is showing RainTotal=0,0mm. Obviously the WS1200 shows the difference between the initial counter at batterie change and the current as “rain total” and not the value the outdoor unit is sending.

So you will see the same behaviour as me when you change the batteries of the outdoor unit and the display not at the same time…

I prefer to have another pull request merged first, I based this branch on that branch/pull-request. So you are also testing that PR: https://github.com/openhab/openhab2-addons/pull/1817

Are you helped for now or is merging the branch essential for you? I expect that the other PR could be merged in a few weeks its quite a tough pull-request :slight_smile:

I’m absolutely happy with the .jar you’ve provided. Not neccessary for me to get the branch merged at the moment.
Many thanks for your help!

I am also very happy with the provided Jar. I can understand that it will take some time to put in into the merged branch…
@Curlyel: It is true that I switched the batteries of both the sensor and the indoor unit at the same time. That explains why there is no difference at my site…

Hooray, its already merged if I have time tonight I create the PR for this in the first half of this week :slight_smile:

And the PR has been created