Activating Virtual Devices

  • 65 Views
  • Last Post 07 December 2013
monkey-magic posted this 06 December 2013

Thanks Ryan for the quick reply. One of the main reasons I picked this software.

The update fixed that.

On a similar topic, I can set the router to forward the port on to the server but how secure would it be opening the port?Is there an option somewhere to password protect port 1178 and how would I add it to the GET?

xxx.xxx.xxx.xxx:1178/zwave/activateSceneGet?sceneName=Xxxx xxxx xxx

thanks Josh

Order By: Standard | Newest | Votes
Ryan-Scott posted this 06 December 2013

Okay, I've been playing around with this to try and get this to work with Tasker (Android App). I'm fairly new at this so go easy.
Tasker can send HTTP GET and POST commands (but no PUT)

I can get Tasker and Postman to send the Get:
xxx.xxx.xxx.xxx:1178/zwave/activateSceneGet?sceneName=YY
This is a scene that toggles to my actual/physical light switch and it works fine.
I can use Postman to also directly activate the Device as per the developer reference via:

PUT /setDevicePower
Content-type: application/json

{
"password": "{password}",
"deviceId": "{deviceId}",
"powered": {powered}
}

However when I create a virtual device and a Scene to control the virtual device nothing works to toggle the virtual device. It seams the only way to toggle the virtual device is by clicking in the device itself. Clicking activate scene on the server also does nothing to toggle the device. (Maybe unrelated but when I activate the scene that toggles the virtual device the Server goes offline)

Possibly separate issue is that it also doesn't seem to update the android inControl App to show that it is toggled and clicking the toggle in the Android app doesn't update the Server.

Is this a bug of the virtual device or is this intended?

Running 3.48.5074.20109 - Pro Edition

Thanks Josh


There were some problems with Virtual Devices around version 3.48. I believe you'll find that if you update to the latest you'll be golden. http://www.incontrolzwave.com/page/Download.aspx

monkey-magic posted this 07 December 2013

Thanks Ryan for the quick reply. One of the main reasons I picked this software.

The update fixed that.

On a similar topic, I can set the router to forward the port on to the server but how secure would it be opening the port?Is there an option somewhere to password protect port 1178 and how would I add it to the GET?

xxx.xxx.xxx.xxx:1178/zwave/activateSceneGet?sceneName=Xxxx xxxx xxx

thanks Josh

rscott posted this 07 December 2013

Thanks Ryan for the quick reply. One of the main reasons I picked this software.

The update fixed that.

On a similar topic, I can set the router to forward the port on to the server but how secure would it be opening the port?Is there an option somewhere to password protect port 1178 and how would I add it to the GET?

xxx.xxx.xxx.xxx:1178/zwave/activateSceneGet?sceneName=Xxxx xxxx xxx

thanks Josh


I wouldn't be too concerned on that not being posed protected. It would take someone knowing it was there and the exact syntax to get there.

There's also another put method that you could use which is password protected, though I don't know the syntax off hand because I'm not in front of my computer at the moment.

monkey-magic posted this 07 December 2013

Thanks for the quick reply. It all works well with Tasker so I'll write something up that might help others.

Josh

Close