Triggered Rule causing groovy error


#1

My mailbox notification rule is throwing a groovy error:

[app:1119](http://192.168.20.20/logs#app1119)2019-05-12 20:25:39.258 [error](http://192.168.20.20/installedapp/configure/1119)groovy.lang.MissingPropertyException: No such property: id for class: java.lang.String (allHandler)

[app:1119](http://192.168.20.20/logs#app1119)2019-05-12 20:25:39.226 [info](http://192.168.20.20/installedapp/configure/1119)Mail - Notify John TR: John presence present

[app:1119](http://192.168.20.20/logs#app1119)2019-05-12 20:24:32.821 [info](http://192.168.20.20/installedapp/configure/1119) --> John present [true]

[app:1119](http://192.168.20.20/logs#app1119)2019-05-12 20:24:32.805 [info](http://192.168.20.20/installedapp/configure/1119) --> Variable Mail Delivered(true) = true [true]

[app:1119](http://192.168.20.20/logs#app1119)2019-05-12 20:24:32.780 [info](http://192.168.20.20/installedapp/configure/1119) --> Variable Mail Collected(false) = false [true] 

here is the rule:

It occurs when I arrive home. I never get the message that the mail has been delivered. If I am home when the mailman comes, then I get the message. It seems that the presence trigger is the problem, b/c the variable as a trigger works fine.


#2

Unrelated to your issue, but I'm interested in the concept. I could put a sensor on my mailbox to know it was opened... but how do you know mail has been collected versus delivered?


#3

I have a few rules in addition to the one I uploaded. There are some restrictions too.

Mail Collected TR - can have its private boolean set
Mail Delivered TR - is only active between noon and midnight (my mailman usually doesn’t come until after 1 or 2pm. that way if we put something out for him to pickup in the morning it won’t mess up the rule logic.

Then everything gets reset at midnight

My notification only goes off when I’m home. I figured I really only need to know if the mail is present if I am present to go and get it (we have a long driveway). So if I’m present it sends me a notification. if I’m not present, it sends me a notification when I arrive, and then if I ignore those it sends me a final one at 8pm to remind to go get the mail.



#4

I'm not quite understanding. Is this right? You put mail in the box and with time restrictions it now knows there is something to be picked up. Then when the mailbox opens around the time the mailman comes, it changes both variables - collected and delivered? If so, then there is a possibility the mailman collected but didnt deliver anything, and you would still be notified that something was delivered?

I guess my confusion is - did you find some way to actually know if the mailbox has anything in it after it has been opened?


#5

No, the rule only fires after the mailman delivers the mail. Then the variable “mail delivered” is true. Once someone retrieves the mail “mail collected” is true and the notifications no longer fire.

The restriction prevents “mail delivered” from turning true if the mailbox is opened before noon. As you can see from the rule, the trigger is simply the door contact sensor opening and closing.


#6

Oh! Ok I get it now. I thought mail collected meant the mailman picked up your outgoing and was confused how you were determining if he picked something up or left something or both. Going to have to see if a contact sensor will be able to reach my hub from the mailbox!


#7

@bravenel any thoughts about my error?


#8

I will look into it.

I am able to reproduce this error. Investigation continues...