From d4e7ee1deff2d39b45115003d98546c2b1a8197e Mon Sep 17 00:00:00 2001 From: Otto123 <> Date: Sat, 12 Jun 2021 16:20:25 +0000 Subject: [PATCH] mqtt2.template:bugfix in sonos2mqtt_speaker Template git-svn-id: https://svn.fhem.de/fhem/trunk@24622 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index 4b69ef6b6..6a63c031c 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -4526,7 +4526,7 @@ attr DEVICE devStateIcon (STOPPED|PAUSED_PLAYBACK):rc_PLAY:toggle PLAYING:rc_PAU attr DEVICE alias ALIAS attr DEVICE model sonos2mqtt_speaker attr DEVICE devicetopic BASE_TOPIC -attr DEVICE userReadings Master:groupName.* {(split(' +',ReadingsVal($name,'groupName','')))[0]},\ +attr DEVICE userReadings Master:groupName.* {(split(' \+',ReadingsVal($name,'groupName','')))[0]},\ isMaster:coordinatorUuid.* {ReadingsVal($name,'coordinatorUuid','') eq ReadingsVal($name,'uuid','')?1:0},\ inGroup:groupName.* {ReadingsVal($name,'groupName','') =~ / \+ /?1:0},\ inCouple:coordinatorUuid.* {(ReadingsVal($name,'coordinatorUuid','') ne ReadingsVal($name,'uuid','') and (index(ReadingsVal($name,'groupName',''), ReadingsVal($name,'name','')) != -1))?1:0},\