Light Switch Issues

Like this:

Then you can use it like this:


The issue could be that the Parameter Name does not match the actual parameter. Can you share the material?