gcmsend: playsound attribute
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6919 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -124,10 +124,15 @@ sub gcmsend_fillGeneralPayload($$) {
|
|||||||
if (AttrVal($name, "vibrate", "false") eq "true") {
|
if (AttrVal($name, "vibrate", "false") eq "true") {
|
||||||
$vibrate = "true";
|
$vibrate = "true";
|
||||||
}
|
}
|
||||||
|
my $playSound = "false";
|
||||||
|
if (AttrVal($name, "playSound", "false") eq "true") {
|
||||||
|
$playSound = "true";
|
||||||
|
}
|
||||||
|
|
||||||
return $payloadString . "," .
|
return $payloadString . "," .
|
||||||
"\"source\":\"gcmsend_fhem\"," .
|
"\"source\":\"gcmsend_fhem\"," .
|
||||||
"\"vibrate\":\"$vibrate\"";
|
"\"vibrate\":\"$vibrate\"," .
|
||||||
|
"\"playSound\":\"$playSound\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
sub gcmsend_sendNotify($$$) {
|
sub gcmsend_sendNotify($$$) {
|
||||||
|
|||||||
Reference in New Issue
Block a user