Forums : save commands with variables?
This page last changed on Apr 08, 2013 by emster.
I'm quite new to OR so maybe a stupid question:
Using OR with Micasaverde Vera.
For every Switch I have to define 3 http-commands (on, off, status), 1 sensor, 1 switch and 1 ui-element. The commands are always the same with different device-ids.
So I asked myself whether it could be possible to reuse these commands?
Wouldn't be great to use a variable in the url of the command like ?
whereis filled from the name field of the linked switch-object like in the slider?
So you could link many switches to the same command. Even better would be an extra field "variables" in
the switch-object "var1;var2;var3" which you can use like
or put the variables in the name-field seperated with ";"...?
|Document generated by Confluence on Jun 05, 2016 09:31|