Rfxcom Rainsensor

HI

I have added my rain sensor, and it seems that it can not show 0,x numbers, integer works fine

does anyone have the solution to it

20:08:04.648 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:8afe7518 message: Raw data = 0B550758010100000000737 9, Packet type = RAIN, Seq number = 88, Sub type = UNKNOWN, Device Id = 257, Rain rate = 0.0, Rain total = 11.5, Signal level = 7, Battery level = 9

20:08:05.279 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘11.5’ of item RFXCOMRainSensor_RainTotal with format ‘%d mm’: java.util.IllegalFormatConversionException: d != java.math.BigDecimal

I have good and bad news for you :slight_smile:

It is already solved but most likely not in the version 2.0, you can either upgrade to the snapshot or only upgrade the RFXCom binding to a newer version.

Hi
how do i upgrade to a snapshot, I can see there is some in github, but how do i install them om my Raspberry pi OH2

How did you install the current version?

in paperIU Add-ons

Sorry how did install openHAB itself?

I use openhabian

Then we will only upgrade the binding, do you know how to log in to karaf?

yes

i

ssh openhab@localhost -p 8101

i did find this link for a snapshot

but cant find the jar file

Ok, if you stop the binding and add the new one to the addons folder (should be close the configuration folder I suppose)

Then you can download the binding via the build server, which stores them at jfrog

I found the file via this one, it should new enough:

https://openhab.jfrog.io/openhab/libs-snapshot-local/org/openhab/binding/org.openhab.binding.rfxcom/2.1.0-SNAPSHOT/org.openhab.binding.rfxcom-2.1.0-20170331.091800-31.jar

Some commands from http://docs.openhab.org/administration/console.html

bundle:list | grep rfxcom
bundle:stop XXX
bundle:uninstall XXX

it workes :slight_smile:

if a want to upgrade other bindings, where can I then get the snapshots ?
maby from github ?

Great!

You can get snapshots from cloudbees, but its a little broken since a week, so the best you can do now is go to this recent but not up-to-date build, its the last successful one which published results to artifactory:

https://openhab.ci.cloudbees.com/job/openHAB2-Bundles_old/346/

And click ‘Artifactory Build Info’

Thanks i loot

I will take a look on the site :slight_smile:

Could you help my making a rule for the rain sensor,
Like this

I can’t use this guide because I use OH2

You can use the same rules, you should not forget to link the rainrate and raintotal to the proper channel.

An example of linking an item in a file to a channel can be found here: