This page last changed on Jun 03, 2016 by jmangan.

Hi I was hoping yous can help,

I'm having a bit of trouble getting my OpenRemote system up and running with my RaspberryPi - Zwave controller. I am trying to get the Zwave on the raspberry pi to interface with a TKBHOME switch using Open Remote. The Zwave works fine on its own with the raspberry pi. I then separately managed to get the OpenRemote controller installed on the raspberry pi(without the ZWave softwear) and was able to get the Raspberry Pi to change the state of an LED connected to the GPIO via the app on my phone. Now with both Open Remote and Zwave, when starting up the OR controller I get the below error message:
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
INFO 2016-06-03 10:09:30,153 : No rule definitions found in '/home/pi/OpenRemote-Controller-2.1.0/webapps/controller/rules'.
INFO 2016-06-03 10:09:30,161 : Initialized event processor : Drools Rule Engine
INFO 2016-06-03 10:09:30,355 : Initialized event processor : RRD4J Data Logger
INFO 2016-06-03 10:09:30,360 : Initialized event processor : EmonCMS Data Logger
INFO 2016-06-03 10:09:30,439 : Registered sensor : Switch Sensor (Name = 'Sensor', ID = '107973539')
INFO 2016-06-03 10:09:30,467 : Startup complete.
ERROR [Polling thread for sensor: Sensor]: ClientProtocolException when executing HTTP method
org.apache.http.client.HttpResponseException: Unauthorized
at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:67)
at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:54)
at org.openremote.controller.protocol.http.HttpGetCommand.requestURL(HttpGetCommand.java:238)
at org.openremote.controller.protocol.http.HttpGetCommand.run(HttpGetCommand.java:260)
at java.lang.Thread.run(Thread.java:745)
----------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------

I have seen this issue mentioned other places: https://forum.z-wave.me/viewtopic.php?f=3422&t=22016

However I still cant seem to solve the issue. I have tried including my credentials in the url, using post/get, using the anonymous account, etcetera, however it dosnt seem to work.

Unfortunately my computer wont let me take screen shots so below is some information about how my console is set up:

----------------------------------------------------------
Name: sw0

Protocal: HTTP

URL: http://admin1:admin1@raspberrypi:8083/ZWaveAPI/Run/devices3.instances0.SwitchBinary.Set(0)

Http Method: Post

username: admin

password: admin

All other fields are blank

----------------------------------------------------------

Name: sw1

Protocal: HTTP

URL: http://admin:admin@192.168.128.129:8083/ZWaveAPI/Run/devices3.instances0.SwitchBinary.Set(255)

Http Method: Post

username: admin

password: admin

All other fields are blank
----------------------------------------------------------

Name: sensor

Protocal: HTTP

URL: http://admin:admin@192.168.128.129:8083/ZWaveAPI/Run/devices3.instances0.SwitchBinary.data.level.value
Http Method: Post

username: admin

password: admin

polling interval: 10s

All other fields are blank
-----------------------------------------------------------

Hope yous can help!

Thanks,

Joe

Note- Im not sure why but my text is not being generated properly. The above URLs donot have the prefix: 3.instances0.SwitchBinary.data.level.value" rel="nofollow">

Posted by jmangan at Jun 03, 2016 11:56

Got it-

Changed my URLS to the following and changed the instance and device to fit my setup:

http://raspberry_IP:8083/OpenRemote/SwitchBinaryOn/5/2 http://raspberry_IP:8083/OpenRemote/SwitchBinaryOff/5/2 http://raspberry_IP:8083/OpenRemote/SwitchBinaryStatus/5/2

Found this tutorial - it was very very helpful!!

http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Z-Wave+with+Razberry

Posted by jmangan at Jun 03, 2016 16:29

Apparantly you found the OpenRemoteHelpers plugin. There are two versions of this plugin:
1) Part of the standard distribution installed in automation/modules
2) A newer release in the Appstore. This newer version has the additional *setMetrics* command, which allows you to set values of ZWay virtualDevices. (The README.md file in the distribution has a summary of all commands)
for further questions please use RaZberry forum

Posted by pz1 at Jun 04, 2016 16:35
Document generated by Confluence on Jun 05, 2016 09:33