5iver
(Scott Rushworth)
January 16, 2020, 11:49am
65
No. This affects more than just Z-Wave and is not something for a binding to be concerned with. Hopefully, this PR will provide the needed core functionality…
main ← afuechsel:sync-thing-channels
opened 07:52AM - 10 Sep 19 UTC
This is a new approach to solve the problem that I was trying to solve in #628 t… hat in turn was based on another PR of @J-N-K (#527).
It works as long as there are no user-defined channels, therefore it's still work in progress. I'd like to ask for our comments about this approach.
`ThingManager#doInitializeHandler` calls `BaseThingHandler#setChannelsFromThingTypeDefinition` to only create channels, that are actually defined in the XML. This allows updated XML descriptions for already existing things to be taken into account.
Signed-off-by: André Füchsel <andre.fuechsel@telekom.de>
Until then, this rule helps…
OH2 does not currently have a mechanism for updating Thing types. When a binding update includes new or modified Channel definitions, the Thing needs to be manually deleted and recreated in order to use the new/modified Channel. For most bindings, it is not too cumbersome to do this manually. But when you are using the Zwave binding with ~120 devices, this can be a real headache. Here is an example of how I have automated the deletion, rediscovery, and reconfiguration of my Zwave Things. I run t…