This plugin shows how to use the Matter history and how to create passive device in matter.js.
It create a contact sensor device that continuously changes state and trigger the corresponding event.
See the guidelines on Matterbridge for more information.