I’m looking to learn how to initialize a variable or boolean when loading a dashboard view. I have a dashboad with 5 views (home, barn, livingroom, etc.) Inside the ‘home’ view I have a conditional card that shows 4 buttons. Above this conditional card I have a toggle button connected to a helper-input_boolean. When i toggle the button the helper-boolean value toggles which shows and hides the conditional card. This works well but I want to re-initialize the helper-boolean to “off” every time I come back to the ‘home’ view.
I’m actively using the helper → toggle → boolean_input. It appears though there is ‘automation’ that might also do the trick. I’m currently more familiar with the helper but with some community guidance I’ll go with whatever solution works.