Boolean or string

Inside the app I need a boolean or string to write to to keep track of what has already been done. The only way I have managed to get it to work is by defining it in the preference section. But then it shows up when setting up the app for use and i don’t want that. I know there has to be away of doing it but I’m stumped. I just need a virtual string/boolean I can write to and read

You can use state variables!
https://docs.smartthings.com/en/latest/smartapp-developers-guide/state.html?highlight=State%20variable%20

Thanks that should work nicely.

1 Like