Just to add, in pillars of eternity 2 a lot of the levers, buttons of the doors you're trying to open are on the immediate left or right of said door, also one of the best things in an adventurers arsenal when dungeon diving is his trusty ''torch'', if that particular lever, button is else where, they really do help tons when its so dark.