@rlkoshak Im sorry but I am not getting any zwave related messages in the openhab.log even though in the main console I am getting messages.
In the openhab.log I get the following (please ignore the xbmc error messages I have not got my xbmc set to the correct ip address)
Openhab.log ------------- below ---------------
2015-12-08 19:57:30.626 [INFO ] [.o.core.internal.CoreActivator] - openHAB runtime has been started (v1.7.1).
2015-12-08 19:57:35.691 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - mDNS service has been started
2015-12-08 19:57:40.332 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl] - Service Discovery initialization completed.
2015-12-08 19:57:43.877 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'default.items'
2015-12-08 19:57:45.755 [INFO ] [penhab.io.rest.RESTApplication] - Started REST API at /rest
2015-12-08 19:57:51.345 [INFO ] [.o.u.w.i.servlet.WebAppServlet] - Started Classic UI at /openhab.app
2015-12-08 19:57:54.870 [INFO ] [c.internal.ModelRepositoryImpl] - Loading model 'default.rules'
2015-12-08 19:57:58.493 [INFO ] [.o.io.habmin.HABminApplication] - Started HABmin REST API at /services/habmin
2015-12-08 19:58:03.873 [INFO ] [.z.internal.ZWaveActiveBinding] - Update config, port = /dev/ttyACM0
2015-12-08 19:58:03.882 [INFO ] [.service.AbstractActiveService] - ZWave Refresh Service has been started
2015-12-08 19:58:03.971 [INFO ] [b.z.i.protocol.ZWaveController] - Starting Z-Wave controller
2015-12-08 19:58:03.973 [INFO ] [b.z.i.protocol.ZWaveController] - Z-Wave timeout is set to 5000ms. Soft reset is false.
2015-12-08 19:58:03.974 [INFO ] [b.z.i.protocol.ZWaveController] - Connecting to serial port /dev/ttyACM0
2015-12-08 19:58:04.124 [INFO ] [.service.AbstractActiveService] - XBMC Refresh Service has been started
2015-12-08 19:58:04.134 [INFO ] [b.z.i.protocol.ZWaveController] - Serial port is initialized
2015-12-08 19:58:06.305 [ERROR] [b.x.internal.XbmcActiveBinding] - Connection failed for '#htpc' on 192.168.1.5
2015-12-08 19:58:07.023 [ERROR] [enhab.binding.xbmc.rpc.RpcCall] - Error handling POST response from XBMC
java.net.ConnectException: Connection refused: /192.168.1.5:80 to http://192.168.1.5:80/jsonrpc
at com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:103) ~[async-ht$
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) [netty-3.9.0.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:418) [netty-3.9.0.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:380) [netty-3.9.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:109) [netty-3.9.0.Final.jar:n$
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79) [netty-3.9.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) [netty-3.9.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42) [netty-3.9.0.Final.jar:na]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.9.0.Final.jar:na]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.9.0.Final.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0]
at java.lang.Thread.run(Thread.java:744) [na:1.8.0]
Caused by: java.net.ConnectException: Connection refused: /192.168.1.5:80
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712) ~[na:1.8.0]
at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:150) [netty-3.9.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105) [netty-3.9.0.Final.jar:n$
... 8 common frames omitted
2015-12-08 19:58:07.055 [WARN ] [b.x.internal.XbmcActiveBinding] - Received update (0) for item htpc_volume but the connection t$
2015-12-08 19:58:08.062 [INFO ] [rialApiGetInitDataMessageClass] - NODE 1: Node found
2015-12-08 19:58:08.064 [INFO ] [rialApiGetInitDataMessageClass] - NODE 2: Node found
2015-12-08 19:58:08.066 [INFO ] [rialApiGetInitDataMessageClass] - ZWave Controller using Controller API
2015-12-08 19:58:08.068 [INFO ] [rialApiGetInitDataMessageClass] - ZWave Controller is Primary Controller
2015-12-08 19:58:08.070 [INFO ] [rialApiGetInitDataMessageClass] - ------------Number of Nodes Found Registered to ZWave Control$
2015-12-08 19:58:08.071 [INFO ] [rialApiGetInitDataMessageClass] - # Nodes = 2
2015-12-08 19:58:08.073 [INFO ] [rialApiGetInitDataMessageClass] - -------------------------------------------------------------$
2015-12-08 19:58:08.910 [INFO ] [.h.internal.hardware.HueBridge] - Hue bridge not paired.
2015-12-08 19:58:08.916 [INFO ] [.h.internal.hardware.HueBridge] - Please press the connect button on the Hue bridge. Waiting fo$
2015-12-08 19:58:09.953 [INFO ] [.h.internal.hardware.HueBridge] - Please press the connect button on the Hue bridge. Waiting fo$
2015-12-08 19:58:26.387 [INFO ] [.h.internal.hardware.HueBridge] - Hue bridge successfully paired!
----- Main console window -------------
2 015-12-08 19:58:26.387 [INFO ] [.h.internal.hardware.HueBridge] - Hue bridge successfully paired!
2015-12-08 19:58:26.890 [INFO ] [runtime.busevents ] - Luminance state updated to 0
2015-12-08 19:58:29.527 [INFO ] [runtime.busevents ] - Humidity state updated to 52
2015-12-08 19:58:35.306 [INFO ] [runtime.busevents ] - Battery state updated to 100
2015-12-08 19:58:49.390 [INFO ] [runtime.busevents ] - Temperature state updated to 24.3
2015-12-08 19:59:19.387 [INFO ] [runtime.busevents ] - Temperature state updated to 24.3
2015-12-08 19:59:26.905 [INFO ] [runtime.busevents ] - Luminance state updated to 0
2015-12-08 19:59:29.545 [INFO ] [runtime.busevents ] - Humidity state updated to 51
2015-12-08 19:59:54.405 [INFO ] [runtime.busevents ] - Temperature state updated to 24.3
2015-12-08 20:00:24.407 [INFO ] [runtime.busevents ] - Temperature state updated to 24.3
I am so confused…
I have updated my rule to be as you described
//************************************************************************************************
//* Act on the chnage of temperature - Turn off or on the wemo heater
//************************************************************************************************
rule “temperature in”
when
Item Temperature changed
then
logInfo(“Temperature”, "**** Temperature changed to " + Temperature.state + “****”)
val Number temperatureIn = (Temperature.state as DecimalType)
if(temperatureIn < 21) {
logInfo(“Temperature”, “**** Turning ON portable heater ")
PortableHeater.sendCommand(ON)
}
else {
logInfo(“Temperature”, " Turning OFF portable heater ****”)
}
logInfo(“Temperature”, “**** Temperature Change Rule Completed Execution ****”)
end
Item file:
// Aeotec Multi Sensor 6 ******************************************************/
Number Temperature “Temperature [%.1f °F]” (multi,multiGraph) {zwave="2:command=SENSOR_MULTILEVEL,sensor_type=1,refresh_i$
Number Humidity “Humidity [%.0f %%]” (multi,multiGraph) {zwave="2:command=SENSOR_MULTILEVEL,sensor_type=5,refresh_in$
Number Luminance “Luminance [%.0f Lux]” (multi) {zwave="2:command=SENSOR_MULTILEVEL,sensor_type=3,refresh_in$
Contact Motion “Motion [MAP(motion.map):%s]” (multi,motion) {zwave="2:command=SENSOR_BINARY,respond_to_basic$
Number Battery “Battery [%d %%]” (multi,battery) {zwave=“2:command=BATTERY,refresh_interval=120”}
Could it be the name of my rules and items file being incorrect or not configured correctly?
default.items
default.rules