(2) The glass was broken.
Standalone, this is ambiguous, the transformative/dynamic (verbal, passive) and the stative (often analysed as adjectival with a converted participle) readings being available:
(2a) The glass was broken by the hail.
(2b) The glass was broken, we were sad to see when we arrived.
.............
(1) The glass broke.
This is obviously a dynamic usage. It is sometimes classed as an ergative usage; the corresponding stative usage, showing a property of the subject referent,
(1z) Glass breaks easily.
is the 'middle voice/usage'.
...................................
(4) The door was opened/closed.
have to be (according to accepted usage) the dynamic meanings. There is almost certainly an implied sentient agent or hydraulic system say doing the opening.
.............
(3) The door opened/closed.
default to the ergative (dynamic, semelfactive = one-off) usage. However, context may indicate the identical-in-form middle (stative / habitual) interpretation:
(3b) The door opened easily before the flood caused it to warp.