Upgrade instructions to add new Channel Group?

Hi,

I’ve bene working on the Ring binding to add the ability to view image Snapshots, and need to create upgrade instructions.

The ring binding uses Channelgroups - so in things.xml - I’ve included the new channelgroup along with the 2x new channels.

However, so far I haven’t been able to work out how to get upgrade instructions to work - I don’t see how to add a new channel group. My most recent attempt trys adding a new channel-id with a corresponding group, but seems to be ignored.

Current things.xml is: openhab-addons/bundles/org.openhab.binding.ring/src/main/resources/OH-INF/thing/thing-types.xml at ring-snapshots · psmedley/openhab-addons · GitHub

Current upgrade/instructions.xml is: openhab-addons/bundles/org.openhab.binding.ring/src/main/resources/OH-INF/update/instructions.xml at ring-snapshots · psmedley/openhab-addons · GitHub

Any thoughts appreciated :slight_smile:

Cheers,

Paul

Channel groups are not in wide use. There are several bindings making use of them. You can try to use XML Schema to find out what you can do with channels. For example addChannel and updateChannel instructions support groupIds tag which may help you to associate channels: openhab-core/bundles/org.openhab.core.thing/schema/update/update-description-1.0.0.xsd at main · openhab/openhab-core · GitHub

In the end - I didn’t try and create a new channel group - I added the new channel to an existing group. This worked fine.