mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
TRX_LIGHT level corrected
git-svn-id: https://svn.fhem.de/fhem/trunk@3064 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a35aacff94
commit
2ed3f3fba1
@ -303,6 +303,7 @@ TRX_LIGHT_Set($@)
|
|||||||
$hex_command = sprintf "%02x%02x%s%02x%02x00", $device_type_num & 0xff, $seqnr, $deviceid, $cmnd, $level;
|
$hex_command = sprintf "%02x%02x%s%02x%02x00", $device_type_num & 0xff, $seqnr, $deviceid, $cmnd, $level;
|
||||||
if ($command eq "level") {
|
if ($command eq "level") {
|
||||||
$command .= sprintf " %d", $level;
|
$command .= sprintf " %d", $level;
|
||||||
|
$command_state = $command;
|
||||||
}
|
}
|
||||||
Log 1,"TRX_LIGHT_Set lighting2 name=$name device_type=$device_type, deviceid=$deviceid command=$command" if ($TRX_LIGHT_debug == 1);
|
Log 1,"TRX_LIGHT_Set lighting2 name=$name device_type=$device_type, deviceid=$deviceid command=$command" if ($TRX_LIGHT_debug == 1);
|
||||||
Log 1,"TRX_LIGHT_Set lighting2 hexline=$hex_prefix$hex_command" if ($TRX_LIGHT_debug == 1);
|
Log 1,"TRX_LIGHT_Set lighting2 hexline=$hex_prefix$hex_command" if ($TRX_LIGHT_debug == 1);
|
||||||
@ -325,6 +326,7 @@ TRX_LIGHT_Set($@)
|
|||||||
$hex_command = sprintf "%02x%02x%s%02x00", $device_type_num & 0xff, $seqnr, $koppla_id, $cmnd;
|
$hex_command = sprintf "%02x%02x%s%02x00", $device_type_num & 0xff, $seqnr, $koppla_id, $cmnd;
|
||||||
if ($command eq "level") {
|
if ($command eq "level") {
|
||||||
$command .= sprintf " %d", $level;
|
$command .= sprintf " %d", $level;
|
||||||
|
$command_state = $command;
|
||||||
}
|
}
|
||||||
Log 1,"TRX_LIGHT_Set lighting3 name=$name device_type=$device_type, deviceid=$deviceid command=$command" if (1 ||$TRX_LIGHT_debug == 1);
|
Log 1,"TRX_LIGHT_Set lighting3 name=$name device_type=$device_type, deviceid=$deviceid command=$command" if (1 ||$TRX_LIGHT_debug == 1);
|
||||||
Log 1,"TRX_LIGHT_Set lighting3 hexline=$hex_prefix$hex_command" if (1 || $TRX_LIGHT_debug == 1);
|
Log 1,"TRX_LIGHT_Set lighting3 hexline=$hex_prefix$hex_command" if (1 || $TRX_LIGHT_debug == 1);
|
||||||
@ -371,6 +373,7 @@ TRX_LIGHT_Set($@)
|
|||||||
$hex_command = sprintf "%02x%02x%s%02x%02x00", $device_type_num & 0xff, $seqnr, $deviceid, $cmnd, $level;
|
$hex_command = sprintf "%02x%02x%s%02x%02x00", $device_type_num & 0xff, $seqnr, $deviceid, $cmnd, $level;
|
||||||
if ($command eq "level") {
|
if ($command eq "level") {
|
||||||
$command .= sprintf " %d", $level;
|
$command .= sprintf " %d", $level;
|
||||||
|
$command_state = $command;
|
||||||
}
|
}
|
||||||
Log 1,"TRX_LIGHT_Set lighting5 name=$name device_type=$device_type, deviceid=$deviceid command=$command" if ($TRX_LIGHT_debug == 1);
|
Log 1,"TRX_LIGHT_Set lighting5 name=$name device_type=$device_type, deviceid=$deviceid command=$command" if ($TRX_LIGHT_debug == 1);
|
||||||
Log 1,"TRX_LIGHT_Set lighting5 hexline=$hex_prefix$hex_command" if ($TRX_LIGHT_debug == 1);
|
Log 1,"TRX_LIGHT_Set lighting5 hexline=$hex_prefix$hex_command" if ($TRX_LIGHT_debug == 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user