-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
thing upgrades: missing support to add/change/remove channel properties #3610
Comments
Channels don't have properties:
|
Please update the issue title as it does not concern the upgradetool. |
As I already said: I would vote for |
I was also a little surprised to discover properties on channel types. |
If SAT works ad designed it should trigger a SAT warning that the XML is invalid. The interesting thing is that the |
Yes, and in fact @alexf2015 defined properties on channels, not channel types:
When updating such channel, the properties are apparently lost, that is the object of the issue. |
So this is the relevant part of the XSD (declaring properties for a channel): <xs:complexType name="channel">
<xs:sequence>
<xs:element name="label" type="xs:string" minOccurs="0"/>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="properties" type="thing-description:properties" minOccurs="0"/>
<xs:element name="autoUpdatePolicy" type="thing-description:auto-update-policy" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="config-description:idRestrictionPattern" use="required"/>
<xs:attribute name="typeId" type="thing-description:namespaceIdRestrictionPattern" use="required"/>
</xs:complexType> |
That means when updating a channel, there are some data to keep (label, description, properties, autoUpdatePolicy) to reuse them when inserting the new channel from the channel type ... if they were present. |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/come-back-and-learn-how-to-use-file-based-configuration/147067/15 |
I am using channel properties and as part of a change I also need to add some properties as part of a migration. See #14866 for details. Changing channel type worked fine for me but this is only a part of the migration. Please add support for this.
The text was updated successfully, but these errors were encountered: