From f6352a5771dee2b220250d9259cdd20b2e020cbc Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 6 Jan 2020 11:59:05 +0100 Subject: [PATCH 1/2] Update 99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm added modifications posted in https://forum.fhem.de/index.php/topic,18071.msg326473.html#msg326473 since needed for operation with recent fhem version --- fhem/99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm | 36 ++++++++-------------- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/fhem/99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm b/fhem/99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm index 9c1ae89..2e3dc9c 100644 --- a/fhem/99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm +++ b/fhem/99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm @@ -5,30 +5,18 @@ use warnings; use POSIX; use Switch; -sub -Asksin_HM_LC_Sw1PBU_FM_CustomFW_Initialize($$) -{ - my ($hash) = @_; -} - -sub -registerHM_LC_Sw1PBU_FM_CustomFW() -{ - {$HMConfig::culHmModel{"F0A9"} = {name=>"HM-LC-Sw1PBU-FM-CustomFW",st=>'remoteAndSwitch',cyc=>'',rxt=>'',lst=>'1,3:3p.4p,4:1p.2p',chn=>"Btn:1:2,Sw:3:4"}} - {$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW00"}{fwUpdate} =""}; - {$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW01"} = $HMConfig::culHmSubTypeSets{"THSensor"}}; - {$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW02"} = $HMConfig::culHmSubTypeSets{"THSensor"}}; - {$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW03"} = $HMConfig::culHmSubTypeSets{"switch"}}; - {$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW04"} = $HMConfig::culHmSubTypeSets{"switch"}}; - {$HMConfig::culHmRegChan{"HM-LC-Sw1PBU-FM-CustomFW01"} = $HMConfig::culHmRegType{remote}}; - {$HMConfig::culHmRegChan{"HM-LC-Sw1PBU-FM-CustomFW02"} = $HMConfig::culHmRegType{remote}}; - {$HMConfig::culHmRegChan{"HM-LC-Sw1PBU-FM-CustomFW03"} = $HMConfig::culHmRegType{switch}}; - {$HMConfig::culHmRegChan{"HM-LC-Sw1PBU-FM-CustomFW04"} = $HMConfig::culHmRegType{switch}}; - #Log(1, "Registered F0A9"); -} - -#Log(1, "Loaded CustomFS"); -InternalTimer(gettimeofday()+10,"registerHM_LC_Sw1PBU_FM_CustomFW","nothing", 0); +#define device +{$HMConfig::culHmModel{"F0A9"} = {name=>"HM-LC-Sw1PBU-FM-CustomFW",st=>'remoteAndSwitch',cyc=>'',rxt=>'',lst=>'1,3:3p.4p,4:1p.2p',chn=>"Btn:1:2,Sw:3:4"}} +{$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW00"}{fwUpdate} =""}; +{$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW01"} = $HMConfig::culHmSubTypeSets{"THSensor"}}; +{$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW02"} = $HMConfig::culHmSubTypeSets{"THSensor"}}; +{$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW03"} = $HMConfig::culHmSubTypeSets{"switch"}}; +{$HMConfig::culHmChanSets{"HM-LC-Sw1PBU-FM-CustomFW04"} = $HMConfig::culHmSubTypeSets{"switch"}}; +{$HMConfig::culHmRegChan{"HM-LC-Sw1PBU-FM-CustomFW01"} = $HMConfig::culHmRegType{remote}}; +{$HMConfig::culHmRegChan{"HM-LC-Sw1PBU-FM-CustomFW02"} = $HMConfig::culHmRegType{remote}}; +{$HMConfig::culHmRegChan{"HM-LC-Sw1PBU-FM-CustomFW03"} = $HMConfig::culHmRegType{switch}}; +{$HMConfig::culHmRegChan{"HM-LC-Sw1PBU-FM-CustomFW04"} = $HMConfig::culHmRegType{switch}}; +#Log(1, "Registered F0A9"); sub CUL_HM_ParseremoteAndSwitch($$$$$$) { my($mFlg,$mTp,$src,$dst,$p,$target) = @_; From 1a8623975a55186efdc2d4dd920bb47bff494e2b Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 6 Jan 2020 12:01:45 +0100 Subject: [PATCH 2/2] Rename 99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm to HMConfig_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm --- ...FM_CustomFW.pm => HMConfig_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename fhem/{99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm => HMConfig_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm} (100%) diff --git a/fhem/99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm b/fhem/HMConfig_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm similarity index 100% rename from fhem/99_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm rename to fhem/HMConfig_Asksin_HM_LC_Sw1PBU_FM_CustomFW.pm