Hmm, played around with both scenarios but the issue here is that I have two different notifications being sent. One says I’m available, the other says I’m unavailable. But one or the other should only trigger IF the state of the door has changed for two minutes, otherwise it should cancel the notification.
In the scenarios you’ve laid out above, an additional notification will be sent.
Here’s an example: An unavailable notification is sent when I close the door for a meeting, I open the door to go use the restroom, I come back in less than two minutes and door closes again. Another unavailable notification will be sent. The reality though is I was unavailable the whole time, I just had to use the bathroom haha.
May seem like I’m straining at gnats here, but these notifications are going to my wife who is not technologically savvy. Less notifications the better ![:laughing: :laughing:](https://community.home-assistant.io/images/emoji/twitter/laughing.png?v=9)
[{"id":"8cb4dbed.f28268","type":"server-state-changed","z":"b241aa40.ce5ee8","name":"Door","server":"2ee251ef.2ba05e","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.office_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":170,"y":1140,"wires":[["2325790c.08bcd6"]]},{"id":"2325790c.08bcd6","type":"trigger","z":"b241aa40.ce5ee8","name":"","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"s","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":340,"y":1140,"wires":[["8f4d124a.827f2"]]},{"id":"8f4d124a.827f2","type":"api-call-service","z":"b241aa40.ce5ee8","name":"available","server":"2ee251ef.2ba05e","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_pixel_5","entityId":"","data":"{\"message\":\"Available\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":580,"y":1140,"wires":[[]]},{"id":"c27e040b.65dde8","type":"server-state-changed","z":"b241aa40.ce5ee8","name":"Door","server":"2ee251ef.2ba05e","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.office_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":170,"y":1240,"wires":[["323c8fe6.b4bc2"]]},{"id":"323c8fe6.b4bc2","type":"trigger","z":"b241aa40.ce5ee8","name":"","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"s","reset":"on","bytopic":"all","topic":"topic","outputs":1,"x":340,"y":1240,"wires":[["58ed8352.05f39c"]]},{"id":"58ed8352.05f39c","type":"api-call-service","z":"b241aa40.ce5ee8","name":"unavailable","server":"2ee251ef.2ba05e","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_pixel_5","entityId":"","data":"{\"message\":\"unavailable\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":590,"y":1240,"wires":[[]]},{"id":"2ee251ef.2ba05e","type":"server","name":"Home Assistant","addon":true}]