I’m sure there must be an obvious answer for this, but I can’t find it. What is the index for the static_data array in the user_data file? I thought it might be the device number or the device index, but no luck.
Thanks, in advance.
I’m sure there must be an obvious answer for this, but I can’t find it. What is the index for the static_data array in the user_data file? I thought it might be the device number or the device index, but no luck.
Thanks, in advance.
User_data2 is a complex data structure that contains tables of Devices, Scenes, and a bunch of other stuff.
The devices property of the user_data2 object is just a array of device objects. The index is meaningles. The id is a member field of each device, and is what is typically referred to as the Vera ID.
Right, but inside the user_data file there is a separate array called static_data. It contains all of the info from the separate device static_json files. I’m trying to figure out how to tie the info from the static_data array to the info from the devices array.
The static files are identified by their device_type.
A device object also has a device_type … that’s how the link between the two objects are made.
As with devices … the index is meaningless.
Now that I re-read your original question … you may have some misunderstaning.
Static Data is defined once for ALL devices that share the same device type.
Since ICONS are referenced in the Static Data, that’s why you can’t change the ICONs for a single device.
Some people have played games with cloning the static data to make a copy … but unless you know and account for ALL of the interfaces … this can cause some problems. If you clone a Static Object, it’s very likely a 3rd party application (Android and/or IOS) will not know what to do with it.
Richard,
Exactly right! Thanks for the assist!!!
Best Home Automation shopping experience. Shop at Ezlo!
© 2026 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules