mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
37_NotifyAndroidTV.pm: allow to use numerical parameter values instead of names
git-svn-id: https://svn.fhem.de/fhem/trunk@16095 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9d3c579da1
commit
267000f457
@ -158,7 +158,13 @@ NotifyAndroidTV_Set($$@)
|
||||
my $error;
|
||||
foreach my $option (keys %{$param_h}) {
|
||||
if( $options->{$option} ) {
|
||||
if( defined( $options->{$option}{$param_h->{$option}}) ) {
|
||||
$param_h->{$option} = $options->{$option}{$param_h->{$option}};
|
||||
} elsif( grep {$_==$param_h->{$option}} values $options->{$option} ) {
|
||||
$param_h->{$option} = $param_h->{$option};
|
||||
} else {
|
||||
$param_h->{$option} = undef;
|
||||
}
|
||||
|
||||
if( !defined($param_h->{$option}) ) {
|
||||
$error .= "\n";
|
||||
@ -322,7 +328,8 @@ NotifyAndroidTV_Attr($$$)
|
||||
<b>Set</b>
|
||||
<ul>
|
||||
<li>msg [options] <message><br>
|
||||
possible options are: bkgcolor, interrupt, position, transparency, duration, offset, offsety, type, icon, title, imageurl. use <code>set <name> notify</code> to see valid values.</li>
|
||||
possible options are: bkgcolor, interrupt, position, transparency, duration, offset, offsety, width, type, icon, image, title, imageurl. use <code>set <name> notify</code> to see valid values.<br>
|
||||
it is better to use imageurl instad of image as it is non blocking!</li>
|
||||
</ul><br>
|
||||
|
||||
<a name="NotifyAndroidTV_Get"></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user