How to bind checkbox visibility - save value

Hello! It’s my first post here, but I usually read the forum to get answers to my doubts.

Could you help me with this one? I’m trying to switch on/off a light with a checkbox.It works, but I also want to bind the visibility to save the checkbox value. I’ve tried itmany times with a Boolean but it doesn’t work because there’s something wrong in my blueprints.

Thank you so much.