Config file loading order, any way to make items load first?

Is there a way to have items load first, and rules load last so that there are no issues resolving items? Also, it looks like openHAB 2 starts accepting REST queries before sitemap is loaded so that leads to a LOT of unknown sitemap messages. I guess both are not big issues, I would like to find a way to clean them up.

2017-06-29 10:09:57.374 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'testing.rules'
2017-06-29 10:09:57.478 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'water.rules'
2017-06-29 10:09:57.509 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'driveway.rules'
2017-06-29 10:09:57.735 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'pool.rules'
2017-06-29 10:09:57.823 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'samsungtv.rules'
2017-06-29 10:09:57.924 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'temperature.rules', using it anyway:
The method toDateMidnight() from the type DateTime is deprecated
The method toDateMidnight() from the type DateTime is deprecated
2017-06-29 10:09:57.927 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'temperature.rules'
2017-06-29 10:09:58.283 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'appliances.rules'
2017-06-29 10:09:58.405 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'notify.rules'
2017-06-29 10:09:58.530 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'propane.rules'
2017-06-29 10:09:58.874 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'insteon.rules'
2017-06-29 10:09:58.905 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'doorbell.rules'
2017-06-29 10:09:59.099 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'power.rules'
2017-06-29 10:09:59.190 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'astro.rules'
2017-06-29 10:09:59.229 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'bathroom.rules'
2017-06-29 10:09:59.587 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'generator.rules'
2017-06-29 10:09:59.628 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'clock.rules', using it anyway:
There is no context to infer the closure's argument types from. Consider typing the arguments or put the closures into a typed context.
2017-06-29 10:09:59.628 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'clock.rules'
2017-06-29 10:10:00.016 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'ultrasonic_level.rules'
2017-06-29 10:10:00.867 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'outback.rules'
2017-06-29 10:10:01.067 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'cameras.rules'
2017-06-29 10:10:01.113 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'alarms.rules', using it anyway:
There is no context to infer the closure's argument types from. Consider typing the arguments or put the closures into a typed context.
2017-06-29 10:10:01.114 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'alarms.rules'
2017-06-29 10:10:01.306 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'dmx.rules', using it anyway:
There is no context to infer the closure's argument types from. Consider typing the arguments or put the closures into a typed context.
2017-06-29 10:10:01.307 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dmx.rules'
2017-06-29 10:10:01.358 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'chicken_coop.rules'
2017-06-29 10:10:03.306 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'hvac.rules'
2017-06-29 10:10:03.821 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Ping Pool Sensors: An error occurred during the script execution: The name 'Pool_Temperature' cannot be resolved to an item or type.
2017-06-29 10:10:03.821 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Update inside average temperature and humidity: An error occurred during the script execution: The name 'Avg_Temperature' cannot be resolved to an item or type.
2017-06-29 10:10:03.898 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Water Quality: An error occurred during the script execution: The name 'Water_Quality_A' cannot be resolved to an item or type.
2017-06-29 10:10:03.899 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Water Rate: An error occurred during the script execution: The name 'Water_Meter' cannot be resolved to an item or type.
2017-06-29 10:10:04.747 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Ping Sensors: An error occurred during the script execution: The name 'Hydrogen_Peroxide_Sensor' cannot be resolved to an item or type.
2017-06-29 10:10:04.749 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Check Generator and Increment Runtimes: An error occurred during the script execution: The name 'Generator_Status' cannot be resolved to an item or type.
2017-06-29 10:10:04.754 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'amazondashbutton.things'
2017-06-29 10:10:04.761 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'neato.things'
2017-06-29 10:10:04.791 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'zwave.things'
2017-06-29 10:10:04.804 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lifx.things'
2017-06-29 10:10:05.096 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.097 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.097 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule Water Rate: An error occurred during the script execution: The name 'Water_Meter' cannot be resolved to an item or type.
2017-06-29 10:10:05.100 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'autelis.things'
2017-06-29 10:10:05.103 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'astro.things'
2017-06-29 10:10:05.107 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 
2017-06-29 10:10:05.180 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'nest.items'
2017-06-29 10:10:05.211 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'astro.items'
2017-06-29 10:10:05.215 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.215 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.216 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt-temperature.items'
2017-06-29 10:10:05.222 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'weather.items'
2017-06-29 10:10:05.234 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'zwave-switches.items'
2017-06-29 10:10:05.258 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'modbus.items'
2017-06-29 10:10:05.295 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'air-quality.items'
2017-06-29 10:10:05.301 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'propane.items'
2017-06-29 10:10:05.304 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.305 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.306 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.307 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'pool.items'
2017-06-29 10:10:05.314 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.314 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.314 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.314 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.314 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.315 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.316 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.316 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'zwave-locks.items'
2017-06-29 10:10:05.326 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.326 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.326 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.327 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.327 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.327 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.327 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.327 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.327 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.327 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.327 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.329 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'occupants.items'
2017-06-29 10:10:05.333 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.335 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.335 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.336 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'hvac.items'
2017-06-29 10:10:05.345 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.345 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.345 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.349 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mqtt-power.items'
2017-06-29 10:10:05.364 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.364 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.364 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.364 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.365 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.367 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'zwave-outlets.items'
2017-06-29 10:10:05.374 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.374 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.375 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.384 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.384 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.385 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.385 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'zwave-thermostats.items'
2017-06-29 10:10:05.468 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.468 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.468 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.468 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.469 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.474 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'insteon.items'
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.516 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.516 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.515 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.516 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.517 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'dmx.items'
2017-06-29 10:10:05.521 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'vehicles.items'
2017-06-29 10:10:05.527 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.527 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.527 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.529 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'water.items'
2017-06-29 10:10:05.535 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'cameras.items'
2017-06-29 10:10:05.539 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'neato.items'
2017-06-29 10:10:05.554 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'appliances.items'
2017-06-29 10:10:05.558 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'christian_tabler.items'
2017-06-29 10:10:05.589 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lifx.items'
2017-06-29 10:10:05.795 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'samsungtv.items'
2017-06-29 10:10:05.801 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'power.items'
2017-06-29 10:10:05.898 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rrd4j.persist'
2017-06-29 10:10:05.901 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.901 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.902 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mapdb.persist'
2017-06-29 10:10:05.903 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.904 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:05.904 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'db4o.persist'
2017-06-29 10:10:05.906 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'mysql.persist'
2017-06-29 10:10:05.907 [INFO ] [est.sitemap.internal.SitemapResource] - Received HTTP GET request at 'http://10.88.64.4:8080/rest/' for the unknown sitemap 'christian_tabler'.
2017-06-29 10:10:06.116 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'christian_tabler.sitemap'
1 Like

This has been brought up before. There used to be a way to do it in OH 1.x but they have since changed how config files are loaded and that approach is no longer valid.

There is still no way I know of to force the order of loading the files.

I’m going to recommend looking at the ESH Issues to see if there is already one open for this and if not, create one. It doesn’t seem to be a problem on people running on less powerful machines but those of us running on faster machines it does cause problems.

BTW, to get rid of the toDateMidnight deprecation warnings use withTimeAtStartOfDay instead. It does the same thing. I’ve no idea whay Joda changed it. I like the old method name better.

I think the “There is no context to infer the closure’s argument types from.” warning is referencing a lambda. Try using the defintion style I use here in the Updated Syntax section. This lets you specify the Types of the arguments and return value of your lambda and I think this warning will go away.

Some other less than satisfactory approaches you can use to deal with the warnings and error messages:

  • shunt the Sitemap logs to a separate file. Out of site, out of mind. I do this with zwave because it is so chatty in the logs.
  • set a flag in a System started rule and use that flag to prevent or delay execution of the rest of your rules until such time you are confident the .items files are fully loaded.

Ok, I will see if I can find an issue for it.

Thanks![quote=“rlkoshak, post:2, topic:30741”]
I think the “There is no context to infer the closure’s argument types from.” warning is referencing a lambda. Try using the defintion style I use here in the Updated Syntax section. This lets you specify the Types of the arguments and return value of your lambda and I think this warning will go aw
[/quote]

I looked at your Updated Syntax section, but till not sure how to modify my rules syntax:

rule  "Set Z-Wave Clocks"
when
      Time cron "30 59 23 * * ?"
then
    logInfo("Z-Wave","Setting Z-Wave Clocks")
    Clock?.members.forEach[clock|
      clock.sendCommand(ON)
    ]
end

rule "Alarm Triggered"
when
  Item Alarms received update 
then
  var boolean gotLock = lock.tryLock() 
  logInfo("Testing", "Lock: " + gotLock)
  try {
    if(gotLock) {    
      logInfo("Testing", "Alarms received update")
      val alarm = Alarms.members.filter[s|s.lastUpdate("mapdb") != null].sortBy[lastUpdate("mapdb")].last
      if (alarm.state == OPEN) {
        logInfo("Testing", "Test: " + alarm.label)
      }
    }
  } 
  finally {
    if(gotLock) {
      lock.unlock()
    }
  }
end

rule "Pool Random Colors"
when
  Item Pool_Random received command ON
then
  //RAPIDLY CHANGE HSB FOR ALL LIGHTS ON
  while(Pool_Random.state == ON) {
    Pool_Lightstrip?.members.forEach[light|
      sendCommand(light, (((Math::random * 255).intValue)) + "," + (((Math::random * 100).intValue)) + "," + (((Math::random * 100).intValue)))
    ]  
    Thread::sleep(200)
  }
end

Hmmm. I assumed that the warning was coming from a globally defined lambda. That appears not to be the case.

I’m not sure what that warning is referring to. It’s just a warning so you don’t really have to solve it by any means. But if you wanted to play with it the first thing I would try is to supply a Type for all of your forEach clauses.

Clock?.members.forEach[SwitchItem clock |

// assumes they are Switches. Use the appropriate Item if not or use GenericItem

Pool_Lightstrip?.members.forEach[ColorItem light |
// assumes they are all Colors. Use the appropriate Item if not or use GenericItem

If that doesn’t do it I’m not sure what is going on. The filter and sortBy is identical to some I do all over my code and I’m not seeing the warning, though I’m still running a couple weeks old snapshot pending the official upgrade instructions for the Docker container (I want to try them out as written).

1 Like

Afaik when changing daylightsaving, there is at some point a timezone which has no midnight at all on this special day…

That is interesting. At least in the US this is handled by not actually doing the time change until 02:00 to avoid just this sort of problem. So there is always a midnight and just one midnight. But there might be two 02:00 or no 02:00. Do you know what timezone(s) that is? It’s an interesting bit of trivia and could be useful some day.

No, I just saw a statement somewhere (joda.org? not sure…)

EDIT: here: http://www.joda.org/joda-time/apidocs/deprecated-list.html

Awesome! Thanks!

The temporary manual workaround that I’ve been using for quite some time now… :thinking:, is to add something like the following to the beginning of start.sh. And then move the rules back when everything has stabilized.

mv /opt/openhab2/conf/rules/*.rules /opt/openhab2/conf/rules/prestart
echo REMEMBER TO MOVE THE RULE FILES BACK!

Glad to see a PR for this… thank you!