mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +00:00
HMCCU: fixed command lookup table bug
git-svn-id: https://svn.fhem.de/fhem/trunk@28567 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
16cf8c394d
commit
2feb8c4698
@ -4365,6 +4365,7 @@ sub HMCCU_GetEnumValues ($$$$;$$)
|
||||
foreach my $cv (split(',', $argList)) {
|
||||
$valList{$cv} = $i;
|
||||
$valIndex{$i} = $cv;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6725,7 +6726,7 @@ sub HMCCU_UpdateRoleCommands ($$)
|
||||
|
||||
# Build lookup table
|
||||
my $argList = '';
|
||||
my $el = HMCCU_GetEnumValues ($ioHash, $paramDef, undef, $role, '#', $pv);
|
||||
my $el = HMCCU_GetEnumValues ($ioHash, $paramDef, $dpt, $role, '#', $pv);
|
||||
if ($el ne '') {
|
||||
my $min;
|
||||
my $max;
|
||||
|
@ -597,8 +597,7 @@ sub HMCCUCHN_Get ($@)
|
||||
Turn device off.
|
||||
</li><br/>
|
||||
<li><b>set <name> oldLevel</b><br/>
|
||||
[dimmer, blind] Set level to previous value. The command is only available if channel
|
||||
contains a datapoint LEVEL with a maximum value of 1.01.
|
||||
[dimmer, blind, jalousie, shutter] Set level to previous value.
|
||||
</li><br/>
|
||||
<li><b>set <name> on</b><br/>
|
||||
Turn device on.
|
||||
|
@ -396,8 +396,9 @@ $HMCCU_CONFIG_VERSION = '5.0';
|
||||
'close' => 'V:LEVEL:0',
|
||||
'up' => 'V:LEVEL:?delta=+20',
|
||||
'down' => 'V:LEVEL:?delta=-20',
|
||||
'oldPos' => 'V:LEVEL:1.005',
|
||||
'stop' => 'V:STOP:1'
|
||||
'oldLevel' => 'V:LEVEL:1.005',
|
||||
'stop' => 'V:STOP:1',
|
||||
'toggle' => 'V:LEVEL:0,100'
|
||||
},
|
||||
'BLIND_VIRTUAL_RECEIVER' => {
|
||||
'pct' => 'V:LEVEL:?level',
|
||||
@ -410,7 +411,8 @@ $HMCCU_CONFIG_VERSION = '5.0';
|
||||
'pctSlats' => 'V:LEVEL_2:?level V:LEVEL:1.005',
|
||||
'openSlats' => 'V:LEVEL_2:100 V:LEVEL:1.005',
|
||||
'closeSlats' => 'V:LEVEL_2:0 V:LEVEL:1.005',
|
||||
'allLevels' => 'V:LEVEL_2:?slatLevel V:LEVEL:?blindLevel'
|
||||
'allLevels' => 'V:LEVEL_2:?slatLevel V:LEVEL:?blindLevel',
|
||||
'toggle' => 'V:LEVEL:0,100'
|
||||
},
|
||||
'CLIMATECONTROL_REGULATOR' => {
|
||||
'desired-temp' => 'V:SETPOINT:?temperature',
|
||||
@ -482,10 +484,12 @@ $HMCCU_CONFIG_VERSION = '5.0';
|
||||
'up' => 'V:LEVEL:?delta=+20',
|
||||
'down' => 'V:LEVEL:?delta=-20',
|
||||
'stop' => 'V:STOP:1',
|
||||
'oldLevel' => 'V:LEVEL:1.005',
|
||||
'pctSlats' => 'V:LEVEL_SLATS:?level',
|
||||
'openSlats' => 'V:LEVEL_SLATS:100',
|
||||
'closeSlats' => 'V:LEVEL_SLATS:0',
|
||||
'allLevels' => 'V:LEVEL_SLATS:?slatLevel V:LEVEL:?blindLevel'
|
||||
'allLevels' => 'V:LEVEL_SLATS:?slatLevel V:LEVEL:?blindLevel',
|
||||
'toggle' => 'V:LEVEL:0,100'
|
||||
},
|
||||
'KEY' => {
|
||||
'on' => 'V:PRESS_SHORT:1',
|
||||
@ -529,7 +533,8 @@ $HMCCU_CONFIG_VERSION = '5.0';
|
||||
'close' => 'V:LEVEL:0',
|
||||
'up' => 'V:LEVEL:?delta=+20',
|
||||
'down' => 'V:LEVEL:?delta=-20',
|
||||
'stop' => 'V:STOP:1'
|
||||
'stop' => 'V:STOP:1',
|
||||
'toggle' => 'V:LEVEL:0,100'
|
||||
},
|
||||
'SMOKE_DETECTOR' => {
|
||||
'command' => 'V:SMOKE_DETECTOR_COMMAND:#command'
|
||||
|
Loading…
x
Reference in New Issue
Block a user