Picture card action

I want to toggle a input_boolean when I click the picture. I have tried to use the example from the documentation but it doesn’t work.