[Solved] HM-WDS100-C6-O and CUL_HM logging issues

Begonnen von fruit, 24 März 2014, 10:07:23

Vorheriges Thema - Nächstes Thema

fruit

I am not sure this is the right place but can't find anywhere more appropriate and I can find no other related posts - perhaps due to my searching abilities.

Recent updates to 10_CUL_HM.pm have upset my weatherstation logging, it may be be my setup of course but all is working OK with 2014-03-16 version.

From yesterday's log...

2014-03-23_23:11:43 WeatherStation temperature: 0
2014-03-23_23:11:43 WeatherStation humidity: 93
2014-03-23_23:11:43 WeatherStation windSpeed: 0
2014-03-23_23:11:43 WeatherStation windDirection: 291.165
2014-03-23_23:11:43 WeatherStation windDirRange: 0
2014-03-23_23:11:43 WeatherStation rain: 310
2014-03-23_23:11:43 WeatherStation isRaining: 67.5
2014-03-23_23:11:43 WeatherStation sunshine: 183
2014-03-23_23:11:43 WeatherStation brightness: 9
2014-03-23_23:11:43 WeatherStation absFeuchte: 3.5
2014-03-23_23:11:43 WeatherStation T: 0 H: 93 W: 0 R: 291.165 IR: 0 WD: 310 WDR: 67.5 S: 183 B: 9  D: -1.1 A: 3.5
2014-03-23_23:11:43 WeatherStation dewpoint: -1.1


There is some transposition of windDirection: windDirRange: and rain: isRaining: yet  R: IR: WD: WDR: are showing correct values.

Is anyone else seeing the same?
Feel free to follow up in German if you prefer

peterk_de

Hey fruit - the definition of the stateFormat attribute of your weatherstation may be wrong (or, if not set at all, the default value has been messed up in one of the last updates).

You can check that by:

displayAttr WeatherStation stateFormat

it should be like:

T: temperature H: humidity W: windSpeed ...

and so on. There you can spot the mistake. Or maybe the attribute is not set all. Either way, you can correct it by

attr WeatherStation stateFormat T: temperature H: humidity W: windSpeed ...

FHEM auf Ubuntu-VM / 2xNUC Proxmox Cluster
UI: HomeKit, TabletUI, Grafana
IOdevs: 2xHueBridge, RaspiMatic-CCU, CUL868, 2xHarmonyHub, 6xRaspi-Roomnode mit CO2, VOC und lepresenced
Devices: 107xHomematic(IP), 96xPhilips Hue, 17xTECHEM, 12xBTLE, 8xSONOS, 2xHomeConnect, 1xShelly 3em, 1xNanoleaf ...

betateilchen

I think it would be the better solution to ask the developer of 10_CUL_HM.pm to correct the messed up state formatting.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

martinp876

there was a bug temporary - it was resolved recently.
Please make an update and report if you still have issues with teh values

fruit

I have just tried with no stateFormat set and the updated module from this morning. Even with stateFormat as suggested above I am still seeing mixed up readings so have reverted to the 2014-03-16 version again.

I am not sure that stateFormat is the issue as Event monitor is showing mixed up readings too - I assume stateFormat does not affect Event monitor but may be wrong
Feel free to follow up in German if you prefer

betateilchen

You should try version 5316 from SVN which will be delivered via update process tomorrow.

See attached file.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

fruit

Just tried the above SVN version. This is from Event monitor..

2014-03-24 11:14:50 CUL_HM WeatherStation temperature: 9.5
2014-03-24 11:14:50 CUL_HM WeatherStation humidity: 57
2014-03-24 11:14:50 CUL_HM WeatherStation windSpeed: 9.1
2014-03-24 11:14:50 CUL_HM WeatherStation windDirection: 291.165
2014-03-24 11:14:50 CUL_HM WeatherStation windDirRange: 0
2014-03-24 11:14:50 CUL_HM WeatherStation rain: 280
2014-03-24 11:14:50 CUL_HM WeatherStation isRaining: 67.5
2014-03-24 11:14:50 CUL_HM WeatherStation sunshine: 189
2014-03-24 11:14:50 CUL_HM WeatherStation brightness: 81
2014-03-24 11:14:50 CUL_HM WeatherStation absFeuchte: 4.2
2014-03-24 11:14:50 CUL_HM WeatherStation T: 9.5 H: 57 W: 9.1 R: 291.165 IR: 0 WD: 280 WDR: 67.5 S: 189 B: 81 D: 1.4 A: 4.2
2014-03-24 11:14:50 CUL_HM WeatherStation dewpoint: 1.4


no stateFormat set and still mixed up.
Feel free to follow up in German if you prefer

betateilchen

#7
@martin: please check the readings list:


      if(defined $t)  {$sM .= "T: $t "    ;push @evtEt,[$shash,1,"temperature:$t"    ];}
      if(defined $h)  {$sM .= "H: $h "    ;push @evtEt,[$shash,1,"humidity:$h"       ];}
      if(defined $w)  {$sM .= "W: $w "    ;push @evtEt,[$shash,1,"windSpeed:$w"      ];}
      if(defined $r)  {$sM .= "R: $r "    ;push @evtEt,[$shash,1,"windDirection:$r"  ];}
      if(defined $ir) {$sM .= "IR: $ir "  ;push @evtEt,[$shash,1,"windDirRange:$ir"  ];}
      if(defined $wd) {$sM .= "WD: $wd "  ;push @evtEt,[$shash,1,"rain:$wd"          ];}
      if(defined $wdr){$sM .= "WDR: $wdr ";push @evtEt,[$shash,1,"isRaining:$wdr"    ];}
      if(defined $s)  {$sM .= "S: $s "    ;push @evtEt,[$shash,1,"sunshine:$s"       ];}
      if(defined $b)  {$sM .= "B: $b "    ;push @evtEt,[$shash,1,"brightness:$b"     ];}


starting from line 4 to line 7, readings and used readingnames are totally scrambled, e.g. R: is named "windDirection" but with value $r

Maybe it should look like this:


      if(defined $t)  {$sM .= "T: $t "    ;push @evtEt,[$shash,1,"temperature:$t"    ];}
      if(defined $h)  {$sM .= "H: $h "    ;push @evtEt,[$shash,1,"humidity:$h"       ];}
      if(defined $w)  {$sM .= "W: $w "    ;push @evtEt,[$shash,1,"windSpeed:$w"      ];}
      if(defined $r)  {$sM .= "R: $r "    ;push @evtEt,[$shash,1,"rain:$r"           ];}
      if(defined $ir) {$sM .= "IR: $ir "  ;push @evtEt,[$shash,1,"isRaining:$ir"     ];}
      if(defined $wd) {$sM .= "WD: $wd "  ;push @evtEt,[$shash,1,"windDirection:$wd" ];}
      if(defined $wdr){$sM .= "WDR: $wdr ";push @evtEt,[$shash,1,"windDirRange:$wdr" ];}
      if(defined $s)  {$sM .= "S: $s "    ;push @evtEt,[$shash,1,"sunshine:$s"       ];}
      if(defined $b)  {$sM .= "B: $b "    ;push @evtEt,[$shash,1,"brightness:$b"     ];}



-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

martinp876


fruit

#9
Switching them around here I have good values again, I really should have looked a bit harder earlier.

Thanks all

Edit: All working as expected after this morning's update
Feel free to follow up in German if you prefer