mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 11:01:59 +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:
parent
60cdb69763
commit
3be88304ae
@ -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($$$) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user