parent
0643b3af38
commit
0f8961d9b6
@ -247,7 +247,11 @@ sub NTFY_Publish_Msg
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $nrPublishedMessages = ReadingsVal($hash->{NAME}, "nrPublishedMessages", 0);
|
||||||
|
$nrPublishedMessages++;
|
||||||
|
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
|
readingsBulkUpdateIfChanged($hash, "nrPublishedMessages", $nrPublishedMessages);
|
||||||
readingsBulkUpdateIfChanged($hash, "lastUsedTopic", $msg->{topic});
|
readingsBulkUpdateIfChanged($hash, "lastUsedTopic", $msg->{topic});
|
||||||
readingsBulkUpdateIfChanged($hash, "lastMessageSend", $msg->{text});
|
readingsBulkUpdateIfChanged($hash, "lastMessageSend", $msg->{text});
|
||||||
readingsBulkUpdateIfChanged($hash, "lastRawMessage", to_json($message));
|
readingsBulkUpdateIfChanged($hash, "lastRawMessage", to_json($message));
|
||||||
|
Loading…
Reference in New Issue
Block a user