switch or sensor problem with OpenRemote

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
Pierre-yves
Posts: 2
Joined: 26 Oct 2014 01:17

switch or sensor problem with OpenRemote

Post by Pierre-yves »

hello,
I'm french so excuse me for my English.
I use OpenRemote with Razberry (Zway V1.7) but I have a problem with the configuration of the Switch and / or sensors in OpenRemote.

I configure a device with HTTP commands in Openremote:
"http://192.168.51.229:8083/ZAutomation/ ... naryOn/2/0"
"http://192.168.51.229:8083/ZAutomation/ ... aryOff/2/0"
"http://192.168.51.229:8083/ZAutomation/ ... Status/2/0"

It works with a label or buttons but when I use a switch, only the "ON" command works. In addition, the icon of switch does not change. I can not turn off the device by the Switch.
Should we use "XPath Expression" or "JSONPath Expression"? If yes, what is the directory or path for use with Razberry?
Can you explain the problem?

Thank you in advance.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: switch or sensor problem with OpenRemote

Post by pz1 »

Version 1.7.2 is recommended for its stability, so if you haven't upgraded yet I advise you to do so.

Your three commands seem OK. For On/Off no Xpath/JSONPath is needed. These only work on results coming from RaZberry. OR only does something with these results if the command is bound to a sensor in OpenRemote.

For your status command you don't need those either. To remove the quotes add for Regular Expression

Code: Select all

on|off
Do not forget to fill in a value for Polling Interval otherwise the command never gets fired. I do use 2s

For the this switch you do need a sensor of type:switch
Since 29-12-2016 I am no longer a moderator for this forum
Pierre-yves
Posts: 2
Joined: 26 Oct 2014 01:17

Re: switch or sensor problem with OpenRemote

Post by Pierre-yves »

Perfect, it works ....
thank you very much.
Are there other "Regular Expression" to know for the following devices?

-Dimmer FIBARO FGD211
-Roller Shutter 2 FIBARO FGRM222

Thank you again.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: switch or sensor problem with OpenRemote

Post by pz1 »

I don't have any of those devices. There are many posts about Regular Expressions on the OpenRemote Forum.
If you are logged on in OR you can see some references in my private space Please note that most of my documents refer to RaZ-OR, the initial version of OpenRemoteHelpers that you use. Not all RaZ-OR functionality has been transferred yet to the Helpers.
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply