The present application relates to a device for regulating the passage of energy which is characterised in that it comprises at least two switching layers S(1) and S(2) arranged one behind the other, where the switching layers comprise a liquid-crystalline medium comprising at least one dichroic compound.