diff --git a/fhem/contrib/70_Pushover.pm b/fhem/contrib/70_Pushover.pm index d4aeccfa4..3c94d1e7d 100644 --- a/fhem/contrib/70_Pushover.pm +++ b/fhem/contrib/70_Pushover.pm @@ -42,6 +42,7 @@ sub Pushover_Initialize($$) my ($hash) = @_; $hash->{DefFn} = "Pushover_Define"; $hash->{SetFn} = "Pushover_Set"; + $hash->{AttrList} = "timestamp:0,1"; } sub Pushover_Define($$) @@ -189,6 +190,13 @@ sub Pushover_Set_Message $body = $body . "&" . "expire=" . $expire; } + my $timestamp = AttrVal($hash->{NAME}, "timestamp", 0); + + if (1 == $timestamp) + { + $body = $body . "&" . "timestamp=" . time(); + } + return Pushover_HTTP_Call($hash, $body); } else