I am modifying a driver, and I am having trouble understanding attributes and values, specifically how I can set attributes and how i can type / modify and read values.
Specifically, I am working on a multizone audio device. I would like attributes
There's probably a more lengthy explanation that hopefully the more experienced and wise members of the Community can provide, but to get you going, I expect this is what you want:
Set Attribute Value: sendEvent(name: "attributeName", value : "newValue")
@sburke781 is correct when dealing with attributes. The updateDataValue() creates/updates items in the data section of the device page and is usually used to hold semi-static information about the device, i.e. model number, FW Version, etc. For values that change often you want to use attributes.
You can store JSON strings in attributes instead of maps, and a string attribute could be used to contain a list which is easily split to instantiate an array.