Getting more out of notifications

Are you getting an error? Haven’t looked at Lock History for a while, but willing to take a look at it if you can describe what isn’t working. Notify Tile I still use every day and haven’t seen any issues.

So the error probably is caused by the app, once I use its notifications on Notify Tile.

Lock Story just stopped to send notifications one week ago, and when I tried to access the History or the Maintain alternate names in the app it stucked with a message saying that An unexpected error has occurred trying to load the app. Check Logs for more information.

Is there an error in the log?

Nop, it is empty. It seems to be the same kind of problem that affected another app I use, Device Activity Check. When I hit the internal links the same error appear! I believe it is related to some hub update.

I’m on the road again, so it will be a couple of days before I can look at it, but I’ll take a look when I get back.

1 Like

@thebearmay, the other app I said was with an analog issue had a string that was causing the error. The solution was indicated by an user here.

I hope it be useful! By the way, is there some way to show just the last notification instead of the last five in your Notification Device Tile?

Thanks I’ll take a look at that. As for number of messages displayed try changing line 66 to

input("msgLimit", "number", title:"Number of messages from 1 to 20",defaultValue:5, range:1..20)

Edit: Same issue as thread you pointed out -embedded sections, Would have taken me a while to see that. New verision of Lock History is out on Github. Thanks.

1 Like

Who thanks again it is me, @thebearmay! Changing the value indicated made the magic.

Greetings directly from Brazil!

@thebearmay your notification driver is perfect! However, it doesn’t seem to work correctly with Webcore (but worked as expected with RM). In Webcore, only the latest notification can updated, and overwritten without “pushing” the previous ones pdown. I attempted to troubleshoot the issue without success. Any idea what the issue might be?

For webCoRE there are two ways to use it, but only one results in a push message going out. The first is using the device command sendMessage (required by the capability), this will add the message to the Notification Tile and push the previous messages down the stack, but not send a system push message - think of this as a way of testing the functionality of the device. The second, and correct way of using it, is to define the Location Tile as a notification device for webCoRE, and use the webCoRE Location command Send Push Message - this will again add the message to the device stack, but will also invoke HE's push message function.

I believe this is how I have set it up, but still only the last entry get updated rather pushing previous ones down. Here is the code I use to test:

.

And the way the tile is setup in the dashboard:

Again it works fine in RM, but misbehave in Webcore.

I’d appreciate your help!

I find it takes a couple of seconds sometimes to get the update. Try something like:

Using your approach I still get the same results…



Actually this time only notification #2 made it, rather than the last one (notification #3).

What does the Events tab look like?

Are you on v2.0.8? notify1 was removed in 2021 IIRC

I downloaded the driver at the beginning of this post. Is there something more recent?

/*

  • Notify Tile Device
  • Licensed Virtual the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at:
  •  http://www.apache.org/licenses/LICENSE-2.0
    
  • Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
  • on an "AS IS" BASIS, WIyTHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
  • for the specific language governing permissions and limitations under the License.
  • Change History:
  • Date Who What

  • 2021-01-06 thebearmay Original version 0.1.0
  • 2021-01-07 thebearmay Fix condition causing a loss notifications if they come in rapidly
  • 2021-01-07 thebearmay Add alternative date format
  • 2021-01-07 thebearmay Add last5H for horizontal display
  • 2021-01-07 thebearmay Add leading date option
  • 2021-01-22 thebearmay Add a span tag and id to allow custom CSS on the text

*/

Forgot that I had posted a copy of the code back then (will update that to a link). The current version is at https://raw.githubusercontent.com/thebearmay/hubitat/main/notifyTile.groovy or can be pulled down using HPM.

That should explain the issue. I’ll check in a bit. By the way, for some reason, I could not find the code on GitHub or HPM