Ecobee5 control using door sensors

Best not to post the same question in multiple threads.

https://community.hubitat.com/t/release-universal-ecobee-suite-version-1-8-01/34839/476

Using the ready- made features in the ecobee Suite is your best option.