From 3be88304aeb5d7324cf33c3e1098ce6f6bc31c36 Mon Sep 17 00:00:00 2001 From: klassm <> Date: Sat, 8 Nov 2014 18:45:52 +0000 Subject: [PATCH] gcmsend: playsound attribute git-svn-id: https://svn.fhem.de/fhem/trunk@6919 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/98_gcmsend.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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($$$) {