Page 1 of 1

switch or sensor problem with OpenRemote

Posted: 26 Oct 2014 01:22
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.

Re: switch or sensor problem with OpenRemote

Posted: 26 Oct 2014 12:02
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

Re: switch or sensor problem with OpenRemote

Posted: 26 Oct 2014 12:55
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.

Re: switch or sensor problem with OpenRemote

Posted: 26 Oct 2014 13:47
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.