|
Re: Thing and channel information in persistence service [message #1540335 is a reply to message #1538507] |
Thu, 01 January 2015 12:30 |
Dennis Nobel Messages: 166 Registered: September 2014 |
Senior Member |
|
|
Hi Michael,
as Kai already proposed in the openhab group it is possible to implement it inside the specific Persistence Service without extending the API and without using tags by just using the ItemChannelLinkRegistry. It is an OSGi service, that can be injected. The ItemLinkRegistry tells you which channel is linked to an item. Therefore it has methods like getBoundChannels and also getBoundThings.
But I don´t understand why exactly you need the thing information in a persistence service. Which kind of reports do you have mind? Items represent the logic view on your smart home. Therefore it should not be interesting if the temperature value comes from a z-wave or enocean sensor for example. The important information is the temperature. If the report should contain thing and setup information, I would not use the PersistenceService at all. It is designed for persisting item states.
Regards
Dennis
[Updated on: Thu, 01 January 2015 12:30] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03422 seconds