mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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") {
|
||||
$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($$$) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user