Thank you, long slow process but getting better every day.
I just ran a test scenario,
- I opened my front door
- Waited 5 minutes and then made a virtual presence sensor come home.
- Nothing triggered because the door was already open.
- Waited a few minutes past the 'considered' time
- Opened a second contact and no announcement needed because I've been here too long.
- I then went over and closed the front door. No announcement needed, been here too long.
The key to any announcement is the 'last activity time' found within any device page.
I recommend the next time you get an out of place message, go check the 'last activity date' of the presence sensor associated with that announcement (right away ). Would be interesting to see if it is within your 'considered time', even though you haven't left or come home recently.
Here is the log from my test:
app:53552019-06-03 11:50:42.482 am debugIn contactSensorHandler - Contact: Living Room Front Door Sensor - Status: closed
app:53552019-06-03 11:50:10.081 am infoBryan - Front Door - Sensor 1 - No announcement needed. Time Diff = 5
app:53552019-06-03 11:50:10.047 am debugSensor 1 - timeDiff: 5
app:53552019-06-03 11:50:10.027 am debugSensor 1 getTimeDiff4 - lastActivity: 2019-06-03 11:45:17.293
app:53552019-06-03 11:50:09.917 am debugSensor 1 getTimeDiff4 - Global Been Here: no
app:53552019-06-03 11:50:09.909 am debugSensor 1 getTimeDiff4 - Presence Sensor Status - 4: present
app:53552019-06-03 11:50:09.896 am debugIn getTimeDiff4 - Sensor 1
app:53552019-06-03 11:50:09.884 am infoBryan - Front Door - Bryan - No announcement needed. Time Diff = 132
app:53552019-06-03 11:50:09.812 am debugBryan - timeDiff: 132
app:53552019-06-03 11:50:09.802 am debugBryan - lastActivity: 2019-06-03 09:38:19.57
app:53552019-06-03 11:50:09.772 am debugBryan - Global Been Here: no
app:53552019-06-03 11:50:09.769 am debugBryan - Presence Sensor Status - 1: present
app:53552019-06-03 11:50:09.736 am debugIn getTimeDiff1 - Bryan
app:53552019-06-03 11:50:09.697 am debugIn contactSensorHandler...
app:53552019-06-03 11:50:09.662 am debugIn contactSensorHandler - Contact: Test Virtual Contact Sensor 1 - Status: open
app:53552019-06-03 11:45:17.380 am debugSensor 1 - Presence Sensor is present - Let's go!
app:53552019-06-03 11:45:17.375 am debugInpresenceSensorHandler4 - Sensor 1 - Presence Sensor: present
app:53552019-06-03 11:45:09.238 am debugGlobal Been Here - Bryan: no - Amy: no - Emma: no - Sensor 1: no - Sensor 2: no