One automation to notify when occupants enter or leaves any zones

notify.telegram is just a sample. You should rename it accordingly.

2 Likes

Sorry for this newby question… Do you know why the following error would be thrown?

Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘to_state’

Thanks for any help, I’m just trying to learn the HA environment after too many years of SmartThings

Edit: To answer my own question. The blueprint works great! Apparently, you cannot run this code through either trace or developer tools in order to test it because no object instance has been created until somebody leaves or returns.