I am new to SmartThings and I’m tryng to create an application, which controls thermostats and lights in several zones of my house.
The number of zones can be changed at any time with an option to configure the new zone or delete an existing one. Actually the layout for this configuration should be very similar to Phrases (actions) configuration.
I created the layout, but ran into another issue: how to store configuration for each zone.
- Can I use HashMap (or any other storage entity: List, Array, etc.) to store it?
- If yes, how to define it as a global variable?