I can't use custom:state-switch. Is there anything I missed?

I can’t use custom:state-switch. Is there anything I missed?
Does it have to be additionally configure in configuration.yaml?