2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

gcmsend: playsound attribute

git-svn-id: https://svn.fhem.de/fhem/trunk@6919 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klassm 2014-11-08 18:45:52 +00:00
parent 60cdb69763
commit 3be88304ae

View File

@ -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($$$) {