diff --git a/fhem/contrib/98_gcmsend.pm b/fhem/contrib/98_gcmsend.pm index 7b5303ac1..7dcc85cf8 100644 --- a/fhem/contrib/98_gcmsend.pm +++ b/fhem/contrib/98_gcmsend.pm @@ -124,10 +124,15 @@ sub gcmsend_fillGeneralPayload($$) { if (AttrVal($name, "vibrate", "false") eq "true") { $vibrate = "true"; } + my $playSound = "false"; + if (AttrVal($name, "playSound", "false") eq "true") { + $playSound = "true"; + } return $payloadString . "," . "\"source\":\"gcmsend_fhem\"," . - "\"vibrate\":\"$vibrate\""; + "\"vibrate\":\"$vibrate\"," . + "\"playSound\":\"$playSound\""; } sub gcmsend_sendNotify($$$) {