On/Off status from sh script

Hi, is it possible to return value on/off (or any other status/text) which is return from sh script which will be visible on vera “button”
I can imagine scene with luua code that runs every minute but how to see or use this value?

You can use a virtual switch plugin for this. Eg the MultiSwitch plugin. Which can then from a remote system be set to on or off. Switching state on these buttons can be used in a Vera scene as a trigger.

Example SH (unix style) script to switch on button1 on a specific MultiSwitch device

Set the Vera URL data to a variable. Change VERAIP and YOURDEVICE# accordingly

VERAURL=“http://VERAIP:3480/data_request?id=variableset&DeviceNum=YOURDEVICE#&serviceId=urn:dcineco-com:serviceId:MSwitch1&Variable=

Set Multiswitch button 1 to on state

wget -qs “${VERAURL}Status1&Value=1”

And set it to Off

wget -qs “${VERAURL}Status1&Value=0”

[quote=“BOFH, post:2, topic:184400”]You can use a virtual switch plugin for this. Eg the MultiSwitch plugin. Which can then from a remote system be set to on or off. Switching state on these buttons can be used in a Vera scene as a trigger.

Example SH (unix style) script to switch on button1 on a specific MultiSwitch device

Set the Vera URL data to a variable. Change VERAIP and YOURDEVICE# accordingly

VERAURL=“http://VERAIP:3480/data_request?id=variableset&DeviceNum=YOURDEVICE#&serviceId=urn:dcineco-com:serviceId:MSwitch1&Variable=

Set Multiswitch button 1 to on state

wget -qs “${VERAURL}Status1&Value=1”

And set it to Off

wget -qs “${VERAURL}Status1&Value=0”[/quote]

Ok so it means that I should rather make the script to update vera and not make vera to “ask” for a status. right?

And what about numeric fields, like temperature readings?
I can imagine that I will write script that will update vera based on the owfs/owserver readings from one wire network but how to create “sensor” on vera?

[quote=“Tommi, post:3, topic:184400”]Ok so it means that I should rather make the script to update vera and not make vera to “ask” for a status. right?

And what about numeric fields, like temperature readings?
I can imagine that I will write script that will update vera based on the owfs/owserver readings from one wire network but how to create “sensor” on vera?[/quote]

ok, easy, even one wire temperature sensors can be arranged :wink:
but still I have a problem to manage on off status.
if I update Status Variable based on the current state of the relay it do not change the “button” state.
problem is that if I change the relay state out of vera (IR remote) than current state is not changed,