[SOLVED] Config issue

  • Platform information:
    • Hardware: Raspberry Pi
    • openHAB version: 2.4

Hi. It seems there is something wrong with my config files and set-up. I get deprecated messages in the log file

Here is the Rules file

//This is the rules file
import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
import org.java.math.*
import org.joda.time.*

//Switch the light on at
rule "turn LoungeLightStand on"
when
Time cron "0 0 17 ? * *"
then
LoungeLightStand.sendCommand(ON)
end

//Switch the light off at 2 am
rule "turn LoungeLightStand off"
when
Time cron "0 0 2 ? * *"
then
LoungeLightStand.sendCommand(OFF)
end


//Rule to switch on / off the office light if Jaco gets home
rule "Jaco state"
when
   Item Jaco received command
then
    if((receivedCommand == ON) && (OfficeLights.state == OFF)){
      OfficeLights.sendCommand(ON)
    } else if ((receivedCommand == OFF) && (Daleen.state == OFF)) {
      OfficeLights.sendCommand(OFF)
    }
end

//Rule to switch on / off the office lights if Daleen gets home
rule "Daleen state"
when
   Item Daleen received command
then
    if((receivedCommand == ON) && (OfficeLights.state == OFF)){
      OfficeLights.sendCommand(ON)
    } else if ((receivedCommand == OFF) && (Jaco.state==OFF)) {
      OfficeLights.sendCommand(OFF)
    }
end

So I only have the deprecated issue now. How should I change the config file ?

2019-01-31 09:09:13.835 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type MAP
2019-01-31 09:09:13.838 [WARN ] [b.core.events.EventPublisherDelegate] - given new state is NULL, couldn't post update for 'sprinkler_pump'
2019-01-31 09:09:39.058 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2019-01-31 09:09:51.775 [INFO ] [penhab.io.transport.mqtt.MqttService] - Stopping broker connection 'broker'
2019-01-31 09:09:51.925 [INFO ] [io.openhabcloud.internal.CloudClient] - Shutting down openHAB Cloud service connection
2019-01-31 09:09:51.961 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID , base URL = http://localhost:8080)
2019-01-31 09:09:52.882 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2019-01-31 09:09:52.919 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Stopped Home Builder
2019-01-31 09:09:52.944 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2019-01-31 09:09:52.982 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2019-01-31 09:10:11.556 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2019-01-31 09:10:11.672 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2019-01-31 09:10:11.989 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 10.64.9.34
2019-01-31 09:10:12.362 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Africa/Johannesburg'.
2019-01-31 09:10:12.390 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to ''.
2019-01-31 09:10:12.396 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'en_ZA'.
2019-01-31 09:10:17.263 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID =, base URL = http://localhost:8080)
2019-01-31 09:10:19.367 [WARN ] [g.eclipse.smarthome.core.net.NetUtil] - Found multiple local interfaces - ignoring 10.64.9.34
2019-01-31 09:10:23.929 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.items'
2019-01-31 09:10:32.937 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'home.rules', using it anyway:
    **The use of wildcard imports is deprecated.**
**    The use of wildcard imports is deprecated.**
**    The use of wildcard imports is deprecated.**
**    The use of wildcard imports is deprecated.**
**    The use of wildcard imports is deprecated.**
    2019-01-31 09:10:33.204 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.rules'
    2019-01-31 09:10:33.674 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
    2019-01-31 09:10:34.362 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.sitemap'
    2019-01-31 09:10:34.795 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'home.things'
    2019-01-31 09:10:35.289 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing 'harmonyhub:hub:HarmonyHub' to inbox.
    2019-01-31 09:10:36.400 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://10.64.9.33:8080
    2019-01-31 09:10:36.410 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://10.64.9.33:8443
    2019-01-31 09:10:36.883 [WARN ] [penhab.io.transport.mqtt.MqttService] - Ignored invalid value for property 'async' ('flase').
    2019-01-31 09:10:36.889 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
    2019-01-31 09:10:36.892 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'broker'
    2019-01-31 09:10:38.009 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui

OK so I just had to remove the imports.