Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Auto created items are not managed
Auto created items are not managed [message #1738164] Sat, 16 July 2016 18:03 Go to next message
Chris Jackson is currently offline Chris JacksonFriend
Messages: 256
Registered: December 2013
Senior Member
When a thing is created, items are automatically generated for each channel (at least in OH2). I haven't tracked down where in the code this happens since I suspect it's handled through a listener.

Anyway, these items seem to be created as non-managed items - is there a reason this is done this way? It means they need to be deleted and re-added if the user wants to edit them. I don't see why this is required and it would seem better to make them managed items?

Is this a bug, or is there a reason behind this?

Chris
Re: Auto created items are not managed [message #1738167 is a reply to message #1738164] Sat, 16 July 2016 19:33 Go to previous messageGo to next message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
Please see https://github.com/eclipse/smarthome/pull/1288#issuecomment-216866525.
Re: Auto created items are not managed [message #1738168 is a reply to message #1738167] Sat, 16 July 2016 19:41 Go to previous message
Chris Jackson is currently offline Chris JacksonFriend
Messages: 256
Registered: December 2013
Senior Member
Thanks - I'd seen this refactoring and your comment, but missed the comment toward the bottom which explains these items...

> I am talking about the ChannelItemProvider - it creates "virtual" items when ever a link to a non-existent item is discovered. I.e. these items are constructed upon every system start.
Previous Topic:Setup ESH development environment failed
Next Topic:Optional channels in thing-type (xml;static thing description)
Goto Forum:
  


Current Time: Fri Apr 19 11:47:09 GMT 2024

Powered by FUDForum. Page generated in 0.01770 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top