STV: add mute:on,off and volume slider

git-svn-id: https://svn.fhem.de/fhem/trunk@7522 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
bentele
2015-01-11 13:13:49 +00:00
parent b1750bd2de
commit caa5a1a323

View File

@@ -180,10 +180,10 @@ sub STV_Define($$)
$hash->{Host} = $args[2];
if (defined $args[3]) {
$hash->{Port} = $args[3];
$hash->{".validcommands"} = "mute volume call sms date";
$hash->{".validcommands"} = "mute:on,off volume:slider,0,1,100 call sms date";
} else {
$hash->{Port} = 52235;
$hash->{".validcommands"} = "mute volume call sms date";
$hash->{".validcommands"} = "mute:on,off volume:slider,0,1,100 call sms date";
Log3 undef, 3, "[STV] defined with host: $hash->{Host} port: $hash->{Port}";
}
@@ -586,7 +586,7 @@ sub STV_52235($@)
if ( $kind ne 0 ){
connection($message, $TV);
}else{
return "Unknown argument $name, choose one of mute volume call sms date";
return "Unknown argument $name, choose one of mute:on,off volume:slider,0,1,100 call sms date";
}
}