This page last changed on Nov 20, 2014 by subnetmask.

I've been playing with OR and my Razberry and have made some pretty good progress (for me), even though my UI looks like it was designed by a 2 year old. I'm running Z-Way 2.0.0rc20 on Raspbian Wheezy. Except for two Aeon Labs Smart switches, all my Z-Way switches are Leviton - I've got one binary wall switch, one dimming wall switch and one plug in dimming switch.

I've gotten simple 'on' and 'off' buttons working, and I've managed to get simple switches working, but I'm lost with my dimmers.

I'm trying to set up sliders and I can't get them to work.

I've got a 'level' command that uses 'http://RPi-IP:8083/OpenRemote/SwitchMultilevelLevel/5/0' for the URL.
I've got a 'Set' command that uses 'http://RPi-IP:8083/OpenRemote/SwitchMultilevelSet/5/$(param)' for the URL (Those parentheses are actually braces in the code).
I've set up a 'Level' sensor (I've tried 'Switch', 'Level' and 'Range' types).
Then I set up a slider using the 'Level' sensor (Again, trying all three of the types of level sensor), and the 'Set' command.

The slider doesn't even seem to be sending the commands (or at least the Razberry isn't liking what OR is sending it and is ignoring it) as when I operate the slider, there is no activity from the Razberry.

I've been told that sliders aren't a good idea to use due to lag - my setup seems really responsive (I'm running OR on a Ubuntu virtual server and have the RPi just running Z-Way on Wheezy), so I'd like to try them - even if I find that the sliders are laggy and choose not to use them, I'd still like to know how to set them up.

Does anyone have any tips to getting them working?


level.JPG (image/jpeg)
levelSensor.JPG (image/jpeg)
off.JPG (image/jpeg)
Plug-In1.JPG (image/jpeg)
set.JPG (image/jpeg)
Slider.JPG (image/jpeg)
status.JPG (image/jpeg)
StatusSensor.JPG (image/jpeg)
Switch.JPG (image/jpeg)

Trivial question: Did you define a polling interval for status (level) command?
Can you please post (little mountain icon) here screenshots of the commands you have made in Designer. Please do select the thumbnail field to avoid huge posts.
If you add some code here please do include in {code}...{code} tags

Posted by pz1 at Nov 20, 2014 08:53

Yes, I set it to 1s (Probably a long time for slider response, but it should provide some reaction).

Posted by subnetmask at Nov 20, 2014 20:55

Your 5.set command should have

${param}

as the final parameter

Posted by pz1 at Nov 21, 2014 09:53

What the heck? Now it's working for the most part - not 100% perfect, I don't think (If I run the slider all the way to the top or all the way to the bottom in one motion, it doesn't change the lights state, but starting off down low it does), but it functions now (and not horribly laggy, or at least it doesn't seem to be)...

The thing is I had originally used 'param' as you have it posted above based off the thermostat example found here: (http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Z-Wave+with+Razberry) and it wasn't working before - I jhad tried every sensor type, etc and it wasn't working for anything...

Posted by subnetmask at Nov 21, 2014 14:02

The thing is I had originally used 'param' as you have it posted above based off the thermostat example found here: (http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Z-Wave+with+Razberry)

I do not uderstand what you mean with this statement. The examples since v1.3 have always mentioned ${param}. So did I in my posts here as well. The examples have only changed recently from:

from (v1.3 - v1.7.2)
http://raspberry_IP:8083/JS/Run/ThermostatSet(N,${param})
to (v2.0.0-rc8)
http://raspberry_IP:8083/ZAutomation/OpenRemote/ThermostatSet/N/${param}
and recently (v2.0.0-rc20)
http://raspberry_IP:8083/OpenRemote/ThermostatSet/N/${param}

Zway stack versions in between ()

Posted by pz1 at Nov 21, 2014 16:04

What I mean is I tried it with

${param}
before, and it didn't work.... But now it's working... I have no clue why it didn't work before... I had also tried
(N,${param})
and out of desperation, just param as you saw in the screen clips, neither of which worked, obviously.

Posted by subnetmask at Nov 22, 2014 02:13

(N,${param})

That would have been correct in the pre-v1.7 versions. After that, parameters are separated by slashes

path/command/N/${param}

So I understand you were confused

Posted by pz1 at Nov 22, 2014 08:25

even if I find that the sliders are laggy and choose not to use them, I'd still like to know how to set them up

There now is a additional method to update sensors. Instead of polling at high frequency, you can make use of a mechanism on the Raspberry to push the status changes to the OpenRemoteController. I would expect that method to be more responsive. As I don't have dimmers I can't tell if that is true. So if there is someone voluntering to give it a try.
See recipes at OpenRemote 2.0 How To - Z-wave with Razberry via UDP

Posted by pz1 at Dec 05, 2014 13:01
Document generated by Confluence on Jun 05, 2016 09:35