I think what @garyjmilne described in creating devices linked to Hub Variables may be what you are looking for, though your comment on:
may make it a little cumbersome to manage in separate devices.
If you want to go down the route of writing a driver, you may be interested to look at some code I wrote to allow me to record generic attributes via calls to Maker API.
You could expand the code to include more of one or all attributes. That said, I only named the attributes the way I did because I was wanting to re-use the driver in different situations and make the driver available for others to use. If you are writing a driver to suit your own need, then you could name the attributes as you wish.