Thanks @toggledbits ,
I really do like the simplicity of that storage.set and storage.get .and the potential for a persistent store.
I did find some discussions on the Vera site, https://community.ezlo.com/t/where-to-store-persistent-data-from-lua/184647/2. plus I did do a quick surf and found a few examples, sadly while the first one looked promising depends on SQLlite, which I’m not sure can run on Vera.iguana-tools/store.lua at master · interfaceware/iguana-tools iguana-tools/store.lua at master · interfaceware/iguana-tools
Helpful general purpose modules for Iguana. Contribute to interfaceware/iguana-tools development by creating an account on GitHub.
This seems to relate to what you said about using files.7.3 Persistence