Compare commits
No commits in common. "3e2944594fdbea3169316c32773b2359dd08bc6b" and "761c8b639d4b159aa1342dc7fce5b9470d83e9b7" have entirely different histories.
3e2944594f
...
761c8b639d
@ -254,29 +254,9 @@ sub NTFY_Publish_Msg
|
||||
|
||||
readingsBeginUpdate($hash);
|
||||
readingsBulkUpdateIfChanged($hash, "nrPublishedMessages", $nrPublishedMessages);
|
||||
readingsBulkUpdateIfChanged($hash, "lastUsedTopic", join(",", @{$msg->{topics}}));
|
||||
readingsBulkUpdateIfChanged($hash, "lastUsedTopic", $msg->{topic});
|
||||
readingsBulkUpdateIfChanged($hash, "lastMessageSend", $msg->{text});
|
||||
readingsBulkUpdateIfChanged($hash, "lastRawMessage", to_json($message));
|
||||
if ($msg->{priority} == PRIO_MAX)
|
||||
{
|
||||
readingsBulkUpdateIfChanged($hash, "lastUsedPriority", "max");
|
||||
}
|
||||
elsif ($msg->{priority} == PRIO_HIGH)
|
||||
{
|
||||
readingsBulkUpdateIfChanged($hash, "lastUsedPriority", "high");
|
||||
}
|
||||
elsif ($msg->{priority} == PRIO_DEFAULT)
|
||||
{
|
||||
readingsBulkUpdateIfChanged($hash, "lastUsedPriority", "default");
|
||||
}
|
||||
elsif ($msg->{priority} == PRIO_LOW)
|
||||
{
|
||||
readingsBulkUpdateIfChanged($hash, "lastUsedPriority", "low");
|
||||
}
|
||||
elsif ($msg->{priority} == PRIO_MIN)
|
||||
{
|
||||
readingsBulkUpdateIfChanged($hash, "lastUsedPriority", "min");
|
||||
}
|
||||
readingsBulkUpdateIfChanged($hash, "lastEror", "");
|
||||
readingsEndUpdate($hash,1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user