-
Notifications
You must be signed in to change notification settings - Fork 779
RFC: ThingType versioning #4958
Comments
This is something we could use each time a developer adds a new channel to a thing type for example ? |
Yes - that's exactly the purpose - if the thing definition changes (new channels, changed channels...) then update the version and the system can tell the user. I wouldn't personally advocate an automatic update to the latest thing type based on this as it will likely screw peoples systems if channels change, but they should at least be alerted and given the option to use the latest definition. |
Such a mechanism could really be very helpful. E.g. with the Homematic binding it has been necessary to remove things an re-create them again a few times. |
I would claim that #2555 would solve most of the issues without introducing yet another layer of complexity through versioning. |
Yes - I’d not seen that. However if I understand the suggestion, it would automatically update the thing description each time the handler started (or something along those lines). This will have the downside of breaking peoples systems if channels have changed and they upgrade. It might lead to much unhappiness for this reason.
|
Could you comment that on #2555 so that discussions happen at the right place? |
I would like to propose a mechanism for thing type versioning and updating. At least in ZWave, thing types change occasionally - channels get added or updated, and it would be good to provide the user with a notification that this has happened, and secondly provide a mechanism for updating to the latest definition.
Currently there is no notification, and updating requires deleting the thing and adding it back again. I'm considering adding this into the ZWave binding and since the binding already changes thing types, it would be relatively easy. However, I think it would be better if this were a general feature of the system and not part of any binding.
What I'd propose would work as follows...
<version>
tag to the thing type XML. This is a number that is incremented each time the thing type definition is updated.version
is recorded in the thing.thingType.version > thing.version
.The text was updated successfully, but these errors were encountered: