From e9736f8925c3a0ce51ccaa0dddc4341f9f0d67d1 Mon Sep 17 00:00:00 2001 From: martinp876 Date: Sat, 17 Jul 2021 08:36:36 +0000 Subject: [PATCH] HM_Config: bugfix led cmd for HM-OU-LED16 git-svn-id: https://svn.fhem.de/fhem/trunk@24763 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/HMConfig.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/HMConfig.pm b/fhem/FHEM/HMConfig.pm index 46c1ed945..f1cfeab29 100644 --- a/fhem/FHEM/HMConfig.pm +++ b/fhem/FHEM/HMConfig.pm @@ -1827,8 +1827,7 @@ $culHmSubTypeSets{motionAndBtn} = $culHmSubTypeSets{threeStateSensor}; ,display =>"-text- (comma|no) -unit- (off|1|2|3) (off|on|slow|fast) -symbol-" } ,"HM-PB-4DIS-WM-2" =>{ text =>"-txt1- [-txt2-]" } - ,"HM-OU-LED16" =>{ led =>"(off|red|green|orange)" - ,ilum => "(0..15;1) (0..127;1)" + ,"HM-OU-LED16" =>{ ilum => "(0..15;1) (0..127;1)" ,statusRequest =>"" } ,"HM-OU-CFM-PL" =>{ "on-for-timer" =>"-sec-" @@ -1931,6 +1930,8 @@ $culHmModelSets{"HM-HM-LC-DW-WM"} = $culHmSubTypeSets{dimmer}; ##### re ,tempTmplSet =>"-tempTmpl-" ,peerChan =>"-btnNumber- -actChn- [({single})] [({set}|unset)] [(actor|remote|{both})]" } + ,"HM-OU-LED1600" =>{ led =>"-color-"} + ,"HM-OU-LED1601" =>{ led =>"(off|red|green|orange)"} ,"HM-OU-CFM-PL01" =>{ led =>"(redL|greenL|orangeL|redS|greenS|orangeS|pause)[,(-color2-...)] 'rep:' [(1..255;1|{1})]"} ,"HM-OU-CFM-PL02" =>{ playTone =>"[{replay}|-MP3No-[,-MP3No-...]] 'rep:' [(1..255;1|{1})] 'vol:' [(0..10;1|{10})] 'dur:' [(-duration-|{108000})]" ,pct =>"-value- [-ontime-]"} @@ -1976,6 +1977,7 @@ $culHmModelSets{"HM-HM-LC-DW-WM"} = $culHmSubTypeSets{dimmer}; ##### re ,off =>"" ,up =>"'change:'[(0..100;1|{10})] [(-ontime-|{})] [(-ramptime-|{})]" ,down =>"'change:'[(0..100;1|{10})] [(-ontime-|{})] [(-ramptime-|{})]" + ,statusRequest =>"" } ,"HM-LC-RGBW-WM03" =>{ colProgram =>"(0..255;1|{0})" ,brightAuto =>"'bright:' (0..100;0.5|{100}) 'colProg:' [(0..255;1|{0})] 'min:' [(0..255;1|{0})] 'max:' [(0..255;1|{255})] [(-ontime-|{0})] [(-ramp-|{5})]" @@ -2009,6 +2011,9 @@ $culHmModelSets{"HM-HM-LC-DW-WM"} = $culHmSubTypeSets{dimmer}; ##### re ); # clones- - - - - - - - - - - - - - - - - +for (my$ch = 1;$ch < 17;$ch++){ + $culHmChanSets{"HM-OU-LED16".uc(sprintf("%02x",$ch))} = $culHmChanSets{"HM-OU-LED1601"}; +} $culHmChanSets{"HM-DIS-EP-WM5502"} = $culHmChanSets{"HM-DIS-EP-WM5501"}; $culHmChanSets{"HM-DIS-EP-WM5504"} = $culHmChanSets{"HM-DIS-EP-WM5505"} =