Revision 16362: 11_OWX_CCC.pm: Neue Version 7.08 11_OWX_FRM.pm: Neue Version 7.0

Begonnen von ffdec, 11 März 2018, 14:42:46

Vorheriges Thema - Nächstes Thema

ffdec

Ich finde den Code nicht in der OWX_FRM, OWX_CCC und auch nicht in der fhem.pl. Ich habe ebenso im letzten SVN geschaut, da ist er auch nicht zu finden. Oder habe ich die falsche Datei?
HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

jensb

Du hast dich verlaufen. Der Code steck in OWX_Define, also in 00_OWX.pm.

Grüße,
Jens
FHEM 6.1 - RPi 4 Raspbian 12 + PiTFT - OPi Zero Armbian 5.35
EnOcean - (W)LAN/Firmata: BMP180, TSL2561, SHT21, Heatronic 3, OBIS - WLAN/ESP8266: Gardena 1251, Zirkulationspumpe - RTL433: Oregon - Bluetooth - MQTT
Contributions: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/jensb

Prof. Dr. Peter Henning

Ah, sorry, da ist eine "(" zu viel.

#-- check if we have a COC/CUNO interface attached
  }elsif(  $defs{$dev}->{VERSION}  && $defs{$dev}->{VERSION} =~ m/CSM|CUNO|MapleCUN...(4|5|6|7|C|D|E|F)/ ){
     require "$attr{global}{modpath}/FHEM/11_OWX_CCC.pm";
     $hwdevice = OWX_CCC->new($hash);
   


LG

pah

ffdec

Leider noch nicht

2018.03.17 15:46:28.290 1: Including fhem.cfg
2018.03.17 15:46:28.492 1: HMLAN_Parse: LAN new condition disconnected
2018.03.17 15:46:28.500 1: HMLAN_Parse: LAN new condition init
2018.03.17 15:46:30.102 1: [Alarm_Define] data hash restored from save file with date 2018-03-16 22:57:08
2018.03.17 15:46:30.404 1: OWX_FRM::Define warning: version 7.10 not identical to OWX version 7.08
2018.03.17 15:46:34.832 1: PERL WARNING: Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 2055, <$fh> line 654.
2018.03.17 15:46:34.835 1: PERL WARNING: Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 2055, <$fh> line 661.
2018.03.17 15:46:34.839 1: PERL WARNING: Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 2055, <$fh> line 668.
2018.03.17 15:46:34.843 1: PERL WARNING: Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 2055, <$fh> line 675.
2018.03.17 15:46:34.847 1: PERL WARNING: Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 2055, <$fh> line 682.
2018.03.17 15:46:34.854 1: PERL WARNING: Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 2055, <$fh> line 690.
2018.03.17 15:46:35.244 1: PERL WARNING: Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 2055, <$fh> line 872.
2018.03.17 15:46:35.387 1: PERL WARNING: Use of uninitialized value in numeric comparison (<=>) at fhem.pl line 2055, <$fh> line 968.
2018.03.17 15:46:35.494 1: Error: >OWX:6< has no TYPE, but following keys: ><
2018.03.17 15:46:35.514 1: Including ./log/fhem.save
2018.03.17 15:46:36.293 1: usb create starting
2018.03.17 15:46:36.820 1: usb create end
2018.03.17 15:46:36.821 0: Featurelevel: 5.8
2018.03.17 15:46:36.821 0: Server started with 147 defined entities (fhem.pl:16403/2018-03-13 perl:5.024001 os:linux user:fhem pid:1833)
2018.03.17 15:46:38.060 1: HMLAN_Parse: LAN new condition ok
2018.03.17 15:46:41.157 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/10_FRM.pm line 1051.
HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

Prof. Dr. Peter Henning

Sehr seltsam. Wie man sich leicht durch Eingabe von
{$defs{"irgendeindevicename"}->{VERSION} =~ m/xx/;; Dumper($defs{"irgendeindevicename"}->{VERSION})}
überzeugen kann, wird durch die Prüfung des regulären Ausdrucks gar nichts am Definitionshash verändert.

LG

pah

jensb

  }elsif(defined($defs{$dev}) && defined($defs{$dev}->{VERSION}) && $defs{$dev}->{VERSION} =~ m/CSM|CUNO|MapleCUN...(4|5|6|7|C|D|E|F)/ ){

funktioniert für OWX_FRM.

Grüße,
Jens
FHEM 6.1 - RPi 4 Raspbian 12 + PiTFT - OPi Zero Armbian 5.35
EnOcean - (W)LAN/Firmata: BMP180, TSL2561, SHT21, Heatronic 3, OBIS - WLAN/ESP8266: Gardena 1251, Zirkulationspumpe - RTL433: Oregon - Bluetooth - MQTT
Contributions: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/jensb

ffdec

HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868

Prof. Dr. Peter Henning

Dann würde ich aber bevorzugen

}elsif( $defs{$dev} && $defs{$dev}->{VERSION}  && $defs{$dev}->{VERSION} =~ m/CSM|CUNO|MapleCUN...(4|5|6|7|C|D|E|F)/ ){

LG

pah

ffdec

HMUARTLGW HMLAN Alarmanlage ZPumpe VCONTROL Viessmann 333-F MySensors CO2 Floorplan IT Raspberry 3 CC1101 Firmata Arduino nanoCUL868