mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
99_sonos2mqttUtils:add on & off to mute
git-svn-id: https://svn.fhem.de/fhem/trunk@24044 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
702e97964e
commit
a90c2d4e9a
@ -118,7 +118,7 @@ if($cmd eq 'joinGroup') {return qq($topic { "command": "joingroup", "input": "$
|
||||
if($cmd eq 'setAVTUri') {return qq($topic { "command": "setavtransporturi", "input": "$payload"})}
|
||||
if($cmd eq 'notify') {return qq($topic { "command":"notify","input":{"trackUri":"$arr[2]","onlyWhenPlaying":false,"timeout":100,"volume":$arr[1],"delayMs":700}})}
|
||||
|
||||
my %t=('true'=>'mute','false'=>'unmute');
|
||||
my %t=('true'=>'mute','false'=>'unmute','on'=>'mute','off'=>'unmute');
|
||||
if($cmd eq 'mute') {return qq(sonos/$uuid/control { "command": "$t{$payload}" } )}
|
||||
if($cmd eq 'input') {
|
||||
$value = $payload eq "TV" ? "tv" : $payload eq "Line_In" ? "line" : "queue";
|
||||
|
Loading…
x
Reference in New Issue
Block a user