|
Post by chrisinkc on Feb 3, 2016 0:55:26 GMT
I am trying to figure out how openhab knows which .items, .rules, or .sitemap file to read. I can see where the .persist file is called in the openhab.cfg file, but I don't see any reference to the other 3 configuration files.
I have read that you can have multiple .items files but how does the program know which .items file to use?
I'm hoping the answers to this will help me figure out why I can't post any output to the web interface.
|
|
|
Post by papa on Feb 3, 2016 1:34:27 GMT
I believe OpenHAB uses ALL .items files in the \openhab\configurations\items folder.
I once had 2 overlapping ones in that folder. I thought OpenHAB would only use the one that matched the sitemap label. No, I believe it used both files with some strange results.
I'm not sure what happens when items entries contradict each other. I soon made sure I had only one config file per folder.
Perhaps one could divide types of entries between more than one .items file if one was careful to avoid contradictory entries.
|
|
|
Post by papa on Feb 3, 2016 1:42:03 GMT
See this which was true at least in late 2012: "When multiple *.items configuration files exist, the items from the first file which is processed are reprocessed when the second file is processed. The items for both the first and second file are reprocessed when a third file is processed, and so on.. This behaviour has been noticed in version 1.1... Some on this web page talk like maybe some of the issues with multiple .items files have been fixed. Others disagree. Here's another discussion of multiple .items files.
|
|