I don’t see any problem.
In the devices you have two options to setup state values, that is the Tags and the Configuration Parameters of the device.
The tags are more useful to use for blueprint dashboards or when you need to list devices in an analysis by it’s tags. It also shows up the tag in your devices page.
The configuration parameters don’t have these options, but is more managable as each parameter has its own ID for editing, and the information is also available in the payload parser.
Take a look, maybe the configuration parameter can serve well for your purposes.
To edit configuration parameters use this:
account.devices.paramList(device_id); // get all paramaters for the device
account.devices.paramList(device_id, true/false); // get parameters with sent false or true only.
account.devices.paramSet(device_id, { id: "any_id_you_want", key: "parameterkey", value: "parametervalue", sent: true }); // create or edit the parameter.
account.devices.paramRemove(device_id, parameter_id); // delete the parameter