But instead ‘RESTORE_DEFAULT_OFF’, I want to get the value from the selector template. Like… if I select On, I should have ALWAYS_ON to my restore_mode of the switch, for selecting Off, restore_mode should be ALWAYS_OFF and if I select “Last State”, the restore_mode should be “RESTORE_DEFAULT_OFF”
I have solved the issue.
In a normal way, restore_mode does not accept any template, which made me get rid of this option and use some scripts, some global vars, and now I can change the “restore_mode” behavior…
Not sure if that was meant to be sarcastic or not.
One way that you could help someone else who might have a similar question in the future is to share what you learned.
I know I have learned a lot from things many others have shared, even if what they shared didn’t work. I have also seen many posts where someone asks years later, how did you solve that and there is no response. That is incredibly frustrating.
Maybe the emoticon " " made you think this, but it was by mistake, I wanted to put " ", and then I didn’t care to change it… I don’t have time to be sarcastic, I just ignore details… I was helped enough to make me try more and more, alone, till I got it, don’t get me wrong " " ok?
I wanted to share it, but I wanted to test it more and change it to be better for my solution.
In the end, I stopped using globals and I tried a “backstage” selector