From 0c892ebb5bbc33358cc7b02ab38bb9edf5030b1b Mon Sep 17 00:00:00 2001 From: Otto123 Date: Sun, 21 Mar 2021 18:14:09 +0000 Subject: [PATCH] 99_sonos2mqttUtils:add on & off to mute git-svn-id: https://svn.fhem.de/fhem/trunk@24044 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm b/fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm index f3fc465ee..f0f01c5f2 100644 --- a/fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm +++ b/fhem/contrib/AttrTemplate/99_sonos2mqttUtils.pm @@ -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";