rflink-to-mqtt icon indicating copy to clipboard operation
rflink-to-mqtt copied to clipboard

Dk2012 humidity issues

Open matt2005 opened this issue 7 years ago • 4 comments

My maplin weather station reports humidity as decimal. This appears to be correct as per the rflink protocol reference. HUM=99 => Humidity (decimal value: 0-100 to indicate relative humidity in %) I noticed a if statement in the code specifically for the dk2012 so didn't want to change it as you may have reasons for the behaviour.

matt2005 avatar Dec 29 '16 15:12 matt2005

Here is a message from the gateway. {"raw":"20;33;DKW2012;ID=001e;TEMP=0001;HUM=99;WINSP=0000;WINGS=0000;RAIN=0060;WINDIR=0004;\r","TEMP":0.10,"WINSP":0.00,"WINGS":0.00,"RAIN":9.60,"WINDIR":"E"}

matt2005 avatar Dec 29 '16 16:12 matt2005

The humidity conversion is because my weather station (digitech XC0348, which is detected by RFLink as DKW2012 in R44) was delivering humidity as hex.

Are you using R44 or R45 (the latest at this point?) - we may need some kind of switch for this if we are getting different value basis for the same protocol!

Phileep avatar Jan 01 '17 04:01 Phileep

I'm using R45 and reading the release notes there was a fix for dk2012. I guess you could run 10;VERSION; and then save that to a variable to use additional logic for specific versions.

matt2005 avatar Jan 06 '17 23:01 matt2005

matt - will upgrade to R45 and see if it fixes my issue also - then we can treat the same in all cases.

Otherwise will need some switching (PITA)

Phileep avatar Jan 10 '17 11:01 Phileep