[RELEASE] Device Check Plus - Check selected devices, then warn you what's not in the right state

New version on GitHub...

1.1.7 - 08/23/20 - No wrong state device Notification is now optional

I just tried it out and it is working great! Thanks for the quick turnaround.

1 Like

@bptworld, I'm getting an error on a device check I run at night to check lights/fans and turn them off if they are on. The error is on a fan connected via the Bond integration. Copying @dman2306 for info from the Bond integration side.

Device Check Plus log w/fan status check and error:


This error stops the device check.

I think the relevant line of code referred to in the error is below:

Appreciate any help/suggestions on this.

New version on GitHub...

1.1.8 - 08/30/20 - Fixed a typo, other changes

1 Like

Looks like the update fixed my issue! Thanks.

1 Like

Hey @bptworld, would it be possible for you to add some more options to the notification page?
I would like to remove the name of the child app from the notification, and make the pre and post message optional, and an option to show the state of each listed device next to it, or maybe the reason it triggered (such as "has been on for X minutes" or "was on when mode changed").
Thank you so much and awesome job on the app!

Hey @bptworld!

First, thank you for making so many useful apps!

I am having a problem with DCP. Specifically, in push notifications, the device in question is never included in the notifications. From the log:

app:3232020-11-24 15:17:36.347 debugIn checkTimeInState - Contacts Open should be Closed - Running again in 2 minutes
app:3232020-11-24 15:17:36.325 debugIn pushNow - Sending message: Door left open - Alert!,  has been left open.
app:3232020-11-24 15:17:36.324 debugIn pushNow (1.1.6)
app:3232020-11-24 15:17:36.323 debugIn letsTalk - *** Finished ***
app:3232020-11-24 15:17:36.321 debugIn dayOfTheWeekHandler - daysMatch: true
app:3232020-11-24 15:17:36.319 debugIn dayOfTheWeek (1.1.6)
app:3232020-11-24 15:17:36.317 debugIn letsTalk (1.1.6) - Sending the message to Follow Me - msg: Alert!,  has been left open.
app:3232020-11-24 15:17:36.316 debugIn messageHandler - theMsg: Alert!,  has been left open.
app:3232020-11-24 15:17:36.314 debugIn messageHandler - Random Post - vSize: 1, randomKey: 0, Msg: has been left open.
app:3232020-11-24 15:17:36.299 debugIn messageHandler - Random Pre - vSize: 3, randomKey: 0, Pre Msg: Alert!
app:3232020-11-24 15:17:36.298 debugIn messageHandler (1.1.6)
app:3232020-11-24 15:17:36.296 debugIn checkTimeInState - Contacts Open should be Closed - timeDiff: 480 vs. timeInState: 2
app:3232020-11-24 15:17:36.294 debugIn getTimeDiff (1.1.6)
app:3232020-11-24 15:17:36.292 debugIn checkTimeInState - Contacts Open should be Closed - Working on: Entry - Inner Door Sensor
app:3232020-11-24 15:17:36.284 debugIn checkTimeInState (1.1.6)

Any suggestions?

Scott

Update the app. Your a couple of versions behind. :wink:

Am I? I am using HPM and looking at the App and Driver code shows Parent 1.0.2, Child, 1.1.8. and Driver, 1.0.0. Isn't that the same as Github?

Device Check Plus Documentation | Community Thread | Donate

  • Device Check Plus v1.0.2 (app)
  • Device Check Plus Child v1.1.8 (app)
  • Device Check Plus Driver v1.0.0 (driver)

Your log is showing you're on 1.1.6

Yes, I see that too. The only thing that is 1.1.6 is Hub Watchdog, which I'm not actually using at the moment. Clicking on the "Debug" link in the look does take me to DCP, which appears to be the versions reported by HPM (as in: HPM reports the versions that I posted above and checking the Apps and Driver Code confirms those versions are installed).

Should I just try uninstalling and reinstalling (via HPM or manually)? I will have to recreate my child apps, but it shouldn't be that hard.

@bptworld, okay, so I have reinstalled DCP via HPM. I have realized I am experiencing two problems. The DCP child is set to inform me via one of three random pre-messages if any of four contact switches remain open for more than 2 minutes. However, whenever any door (with one of those switches) is opened, the push notification immediately fires, and it does not contain the name of the switch in question.

Log:

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:20.697 [debug](http://192.168.1.138/installedapp/configure/323)In checkTimeInState (1.1.8)

[dev:71](http://192.168.1.138/logs#dev71)2020-11-25 19:50:20.547 [info](http://192.168.1.138/device/edit/71)Entry - Inner Door Sensor was closed

[dev:76](http://192.168.1.138/logs#dev76)2020-11-25 19:50:18.657 [info](http://192.168.1.138/device/edit/76)Entry - Nanoleaf, effect was was set to Flames

[dev:6184](http://192.168.1.138/logs#dev6184)2020-11-25 19:50:18.466 [info](http://192.168.1.138/device/edit/6184)Entry - Dimmed pushed is 1

[dev:324](http://192.168.1.138/logs#dev324)2020-11-25 19:50:18.181 [info](http://192.168.1.138/device/edit/324)Outer Hallway Motion - Ceiling: motion is active

[dev:6184](http://192.168.1.138/logs#dev6184)2020-11-25 19:50:16.493 [info](http://192.168.1.138/device/edit/6184)Entry - Dimmed pushed is 1

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.325 [debug](http://192.168.1.138/installedapp/configure/323)In checkTimeInState - Contacts Open should be Closed - Running again in 2 minutes

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.299 [debug](http://192.168.1.138/installedapp/configure/323)In pushNow - Sending message: Door left open - Alert!, has been left open.

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.295 [debug](http://192.168.1.138/installedapp/configure/323)In pushNow (1.1.8)

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.291 [debug](http://192.168.1.138/installedapp/configure/323)In letsTalk - *** Finished ***

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.287 [debug](http://192.168.1.138/installedapp/configure/323)In dayOfTheWeekHandler - daysMatch: true

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.284 [debug](http://192.168.1.138/installedapp/configure/323)In dayOfTheWeek (1.1.8)

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.278 [debug](http://192.168.1.138/installedapp/configure/323)In letsTalk (1.1.8) - Sending the message to Follow Me - msg: Alert!, has been left open.

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.275 [debug](http://192.168.1.138/installedapp/configure/323)In messageHandler - theMsg: Alert!, has been left open.

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.272 [debug](http://192.168.1.138/installedapp/configure/323)In messageHandler - Random Post - vSize: 1, randomKey: 0, Msg: has been left open.

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.269 [debug](http://192.168.1.138/installedapp/configure/323)In messageHandler - Random Pre - vSize: 3, randomKey: 0, Pre Msg: Alert!

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.259 [debug](http://192.168.1.138/installedapp/configure/323)In messageHandler (1.1.8)

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.255 [debug](http://192.168.1.138/installedapp/configure/323)In checkTimeInState - Contacts Open should be Closed - timeDiff: 480 vs. timeInState: 2

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.243 [debug](http://192.168.1.138/installedapp/configure/323)In getTimeDiff (1.1.8)

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.237 [debug](http://192.168.1.138/installedapp/configure/323)In checkTimeInState - Contacts Open should be Closed - Working on: Entry - Inner Door Sensor

[app:323](http://192.168.1.138/logs#app323)2020-11-25 19:50:16.176 [debug](http://192.168.1.138/installedapp/configure/323)In checkTimeInState (1.1.8)

[dev:71](http://192.168.1.138/logs#dev71)2020-11-25 19:50:15.977 [info](http://192.168.1.138/device/edit/71)Entry - Inner Door Sensor was opened

Please help me figure this out. Although the push notifications haven't worked in a while, the immediate notification (instead of two minute waiting) is new.

Okay, first issue is your log. Please read the first post "When reporting problems..." :wink:

Also, show a few screenshots on how you have this setup.

Thanks

Also, I uploaded a new version that just has more logging so I can see what device names are being added to the message

1.1.9 - 11/24/20 - Added more logging

I updated this morning. Here is another log:

dev:762020-11-26 07:28:34.582 errorsetEffect error status:408
dev:762020-11-26 07:28:32.988 errorsetEffect error status:408
dev:762020-11-26 07:28:30.157 infoEntry - Nanoleaf, effect was was set to Warm White
dev:61832020-11-26 07:28:29.078 infoEntry - Bright pushed is 1
app:3232020-11-26 07:28:28.956 debugIn checkTimeInState (1.1.8)
dev:712020-11-26 07:28:25.514 infoEntry - Inner Door Sensor was closed
dev:61832020-11-26 07:28:24.428 infoEntry - Bright pushed is 1
dev:3242020-11-26 07:28:24.183 infoOuter Hallway Motion - Ceiling: motion is active
dev:61832020-11-26 07:28:22.894 infoEntry - Bright pushed is 1
app:3232020-11-26 07:28:22.710 debugIn checkTimeInState - Contacts Open should be Closed - Running again in 2 minutes
app:3232020-11-26 07:28:22.680 debugIn pushNow - Sending message: Door left open - Please note,  has been left open.
app:3232020-11-26 07:28:22.676 debugIn pushNow (1.1.8)
app:3232020-11-26 07:28:22.672 debugIn letsTalk - *** Finished ***
app:3232020-11-26 07:28:22.668 debugIn dayOfTheWeekHandler - daysMatch: true
app:3232020-11-26 07:28:22.664 debugIn dayOfTheWeek (1.1.8)
app:3232020-11-26 07:28:22.660 debugIn letsTalk (1.1.8) - Sending the message to Follow Me - msg: Please note,  has been left open.
app:3232020-11-26 07:28:22.655 debugIn messageHandler - theMsg: Please note,  has been left open.
app:3232020-11-26 07:28:22.650 debug---------- End - Devices in the Wrong State ----------
app:3232020-11-26 07:28:22.646 debug---------- Start - Devices in the Wrong State ----------
app:3232020-11-26 07:28:22.641 debugIn messageHandler - Random Post - vSize: 1, randomKey: 0, Msg: has been left open.
app:3232020-11-26 07:28:22.637 debugIn messageHandler - Random Pre - vSize: 3, randomKey: 2, Pre Msg: Please note
app:3232020-11-26 07:28:22.632 debugIn messageHandler (1.1.8)
app:3232020-11-26 07:28:22.628 debugIn checkTimeInState - Contacts Open should be Closed - timeDiff: 480 vs. timeInState: 2
app:3232020-11-26 07:28:22.624 debugIn getTimeDiff (1.1.8)
app:3232020-11-26 07:28:22.619 debugIn checkTimeInState - Contacts Open should be Closed - Working on: Entry - Inner Door Sensor
app:3232020-11-26 07:28:22.572 debugIn checkTimeInState (1.1.8)
dev:712020-11-26 07:28:22.383 infoEntry - Inner Door Sensor was opened
app:572020-11-26 07:28:21.494 infoNot turning on, already on
app:572020-11-26 07:28:21.477 infoMotion active Toilet Motion
dev:822020-11-26 07:28:21.441 infoToilet Motion is active
app:572020-11-26 07:28:19.716 infoDelaying off for 2 minutes
app:572020-11-26 07:28:19.673 infoMotion inactive Toilet Motion
dev:822020-11-26 07:28:19.638 infoToilet Motion is inactive

I included a few entries before and after the event in the log this time. How much more would you like for diagnosis? You want hours, I'll give you hours. :slight_smile:

App screenshots here: https://1drv.ms/u/s!AoyHZiRU1jT-zpc_5bA11YFHwafiQw?e=89YDXg

Edit: I just read the OP again; is the problem with my earlier posted logs that they weren't screenshots? I screenshotted this one just in case. Added to the same location as the app screenshots.

Hi @bptworld,

I gave up. I couldn't get the app to work reliably. In the time that I've awaited you to be available to help me, I've set up the equivalent functionality in RM 4.0. Is it as elegant as the app you created? No. Does it work reliably? Yes.

Please note, I am disappointed, but as a fellow dev, I know I have no claims on your time, effort, and energy. You make many amazing mods and your contributions to the HE community are undeniable.

Wow, where to start with this! I asked you to post screenshots of how you have the app setup and logs. You post a link that wants me to login. NOT going to happen.

Edited to remove negative comments. Not worth it.

Glad you got what you needed with RM. Stick with it as I won't be looking into this any further.

Wow as well. I didn't expect or intend such a response from you. I literally thanked you for all you do for the community even though I couldn't get one app to work. Yes, I expressed disappointment that I couldn't get the app to work on my own, but I immediately followed that up by noting that I have no right to expect you to solve my problems; that my request for assistance was just that, a request.

So we're clear, I posted the logs three times to this forum. I took screenshots of the app setup on your request, the links to which I had set to expire this morning. When I share a link that does not require the person to sign in to Onedrive, I typically set them to auto-expire. I don't expect you or anyone else to get an account or sign in on any service.

Let me end with this. There has clearly been a miscommunication here. I will accept responsibility for it. I think you are a credit to the HE community. I am disappointed I couldn't get one app out of the many you create to work. I have moved on to other, less elegant, solutions, and I no longer request any assistance. I certainly didn't intend to offend or provoke the response I received. You do good work that you generously share with the community, and you don't owe me or anyone else anything.

2 Likes

Thanks for all the hard work! It looks like a great app! I set up my first child app to monitor garage fridge and freezer doors that my kids often leave open. So, I set it up to monitor the contact sensors and used the "time in state" trigger for 2 minutes. I set a notification to my phone as the action. The problem I experience is that I get a notification as soon as any of the monitored doors is opened that gives the pre and post message phrases, but no mention of which door, and of course, it was two minutes early. Please see logs here...

Please show me how you have this setup. Thanks