mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
70_LaMetric2: fix channels for app setter
git-svn-id: https://svn.fhem.de/fhem/trunk@18531 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
18af738e44
commit
5e74ba83d8
@ -1188,13 +1188,13 @@ sub LaMetric2_SetVolume {
|
|||||||
$body{volume} = $volume;
|
$body{volume} = $volume;
|
||||||
}
|
}
|
||||||
elsif ( lc($cmd) eq "volumeup" ) {
|
elsif ( lc($cmd) eq "volumeup" ) {
|
||||||
$currVolume = $currVolume + 10;
|
$currVolume = $currVolume + 10;
|
||||||
$currVolume = 100 if ( $currVolume > 100 );
|
$currVolume = 100 if ( $currVolume > 100 );
|
||||||
$body{volume} = $currVolume;
|
$body{volume} = $currVolume;
|
||||||
}
|
}
|
||||||
elsif ( lc($cmd) eq "volumedown" ) {
|
elsif ( lc($cmd) eq "volumedown" ) {
|
||||||
$currVolume = $currVolume - 10;
|
$currVolume = $currVolume - 10;
|
||||||
$currVolume = 0 if ( $currVolume < 0 );
|
$currVolume = 0 if ( $currVolume < 0 );
|
||||||
$body{volume} = $currVolume;
|
$body{volume} = $currVolume;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -2021,8 +2021,10 @@ sub LaMetric2_SetNotification {
|
|||||||
|
|
||||||
# push frames to private/shared indicator app
|
# push frames to private/shared indicator app
|
||||||
if ( defined( $h->{app} ) ) {
|
if ( defined( $h->{app} ) ) {
|
||||||
$notification{package} = $h->{app};
|
$notification{package} = $h->{app};
|
||||||
$notification{token} = $h->{token} if ( defined( $h->{token} ) );
|
$notification{token} = $h->{token} if ( defined( $h->{token} ) );
|
||||||
|
$notification{channels} = $h->{channels}
|
||||||
|
if ( defined( $h->{channels} ) );
|
||||||
return LaMetric2_SetApp( $hash, "app", \%notification, $h->{app},
|
return LaMetric2_SetApp( $hash, "app", \%notification, $h->{app},
|
||||||
"push" );
|
"push" );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user