Zitat von: AnonymousHolger am 30 November 2024, 16:00:31DateTimeLastOpened:state.*
diff --git a/10_CUL_HM.pm b/10_CUL_HM.pm
index 3a855c2..b936309 100644
--- a/10_CUL_HM.pm
+++ b/10_CUL_HM.pm
@@ -4040,6 +4040,7 @@ sub CUL_HM_parseCommon(@){#####################################################
delete $mhp->{devH}{READINGS}{"RegL_00."};
delete $mhp->{devH}{READINGS}{".RegL_00."};
push @evtEt,[$defs{$ioOwn},1,"hmPair:name:$mhp->{devN} SN:".$regser." model:$attr{$mhp->{devN}}{model}"];
+ $mhp->{md} = $attr{$mhp->{devN}}{model}; #plie80: $mhp->{md} has already been set in CUL_HM_parse before the device data was actually parsed from $mhp->{p}.
if (!$modules{CUL_HM}{helper}{hmManualOper}){
if($ioOwn){
$attr{$mhp->{devN}}{IOgrp} = "$ioOwn:$ioHash->{NAME}";
sub newspamentry {
my $cmdev = shift // return; # FB_CALLMONITOR Name
my $fbdev = shift; # FRITZBOX Name
my $entries= fhem("get $cmdev showPhonebookEntries 1",1); # read current Spambook
my @numbers = $entries =~ m/(0\d+)/gm; # determine numbers
my $entriename = 'Spam'.(scalar(@numbers)+1); # new entriename Spam+number numbers
Debug $entriename;
my $entrienumber = (ReadingsNum($cmdev,'external_number',-1) == 123456 ? ReadingsVal($cmdev,'internal_number','-1'):ReadingsVal($cmdev,'external_number','-1')); # Don't use call forwarding number
Debug $entrienumber;
fhem("set $fbdev phoneBookEntry new 1 0 $entriename work: $entrienumber;sleep 2;set $cmdev rereadPhonebook;fonbook2sipfilter");
}
sub getPhonebookEntrieswritesip {
my $cmdev = shift;
my $sipdev = shift;
my $strnrs = fhem("get $cmdev showPhonebookEntries 1",1);
#Debug $strnrs;
fhem("sleep 2;attr $sipdev sip_filter ".join(",",$strnrs =~ m/(0\d+)/gm));
}
pi@R4:~ $ ls -la /opt/fhem
insgesamt 1708
drwxr-xr-x 20 fhem dialout 4096 15. Dez 2023 .
drwxr-xr-x 7 root root 4096 17. Dez 2022 ..
drwx------ 2 fhem dialout 4096 3. Nov 2021 .alexa
-rw-rw-rw- 1 fhem dialout 311 8. Apr 2020 alexa-fhem.cfg
drwxr-xr-x 12 fhem dialout 4096 24. Nov 11:15 backup
drwxr-xr-x 3 fhem dialout 4096 7. Mär 2023 .cache
drwxr-xr-x 3 fhem dialout 4096 12. Feb 2021 cache
-rw-rw-rw- 1 fhem dialout 434374 16. Nov 10:57 CHANGED
-rw-rw-rw- 1 fhem dialout 46886 30. Aug 2023 configDB.pm
drwxrwxrwx 46 fhem dialout 4096 7. Apr 2020 contrib
drwxrwxrwx 3 fhem dialout 4096 7. Apr 2020 demolog
drwxrwxrwx 4 fhem dialout 4096 7. Apr 2020 docs
-rw-rw-rw- 1 fhem dialout 5996 7. Mai 2020 fb_phonebook.xml
drwxrwxrwx 7 fhem dialout 24576 3. Mär 2024 FHEM
-rw-rw-rw- 1 fhem dialout 314131 28. Nov 11:35 fhem.cfg
-rw-rw-rw- 1 fhem dialout 21936 19. Jun 2023 fhem.cfg.demo
-rwxrwxrwx 1 fhem dialout 174410 16. Nov 10:57 fhem.pl
drwxr-xr-x 3 fhem dialout 4096 15. Dez 2023 .fhempy
-rw-r--r-- 1 fhem dialout 18092 11. Sep 2021 GPL_V2.txt
drwxr-xr-x 3 fhem dialout 4096 11. Sep 2021 lib
drwx------ 4 fhem dialout 4096 7. Mär 2023 .local
drwxrwxrwx 2 fhem dialout 20480 30. Nov 08:46 log
-rw-rw-rw- 1 fhem dialout 47157 11. Apr 2024 MAINTAINER.txt
drwxr-xr-x 3 root root 4096 5. Jul 2023 opt
-rw-rw-rw- 1 fhem dialout 935 26. Jan 2020 README_DEMO.txt
drwxrwxrwx 5 fhem dialout 4096 26. Okt 2021 restoreDir
drwxrwxrwx 2 fhem dialout 540672 30. Nov 14:21 SonosSpeak
drwx------ 2 fhem dialout 4096 3. Nov 2021 .ssh
drwxrwxrwx 2 fhem dialout 4096 8. Apr 2020 unused
drwxrwxrwx 11 fhem dialout 4096 3. Okt 2021 www
find: kommt: '.fhempy': Datei oder Verzeichnis nicht gefunden
2024-11-30 17:04:29,253 - ERROR - __main__: Failed to load fhempy
Traceback (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/start_fhempy.py", line 141, in <module>
import fhempy.lib.fhem_pythonbinding as fpb
ModuleNotFoundError: No module named 'fhempy'
2024-11-30 17:04:29,254 - INFO - __main__: Attempting install of fhempy>=0.1.462
2024-11-30 17:04:29,361 - ERROR - __main__: Unable to install package fhempy>=0.1.462: /opt/fhem/.fhempy/fhempy_venv/bin/python3: No module named pip
2024-11-30 17:04:29,362 - ERROR - __main__: Failed to install fhempy, exit now...