Page 1 of 1

Scenes and code device issues

Posted: 21 Jan 2016 12:53
by handon
Hey guys,

maybe these questions are stupid but I can't figure it out on my own :-(

1. Where is the Scene Creation module located ? I use up to date stable software of z-way but at the location which is described I can't find the scene creation option.

2. How can I create a device which runs external code (e.g. for Hue) ? Currently there is only an JS code application but nothing to run external code files

Hope for assist, thx

Re: Scenes and code device issues

Posted: 21 Jan 2016 13:12
by pz1
handon wrote:1. Where is the Scene Creation module located ? I use up to date stable software of z-way but at the location which is described I can't find the scene creation option.
Click on the top right corner "tool" symbol, and select Apps - Local apps. Look for this symbol:
Capture.PNG
Capture.PNG (8.89 KiB) Viewed 4130 times
2. How can I create a device which runs external code (e.g. for Hue) ? Currently there is only an JS code application but nothing to run external code files
Hard to say. It depends if you also want to interact from Z-Way with this external code, or if it just has to be started.

Re: Scenes and code device issues

Posted: 21 Jan 2016 13:20
by handon
ah cool thx, I just want the script to be executed. So e.g. a bash script should be executed to switch on a hue light

Re: Scenes and code device issues

Posted: 21 Jan 2016 13:53
by pz1
Try with App CodeDevice. Choose SwitchBinary and define the on/off commands with a system call something like

Code: Select all

system("/opt/z-way-server/automation/storage/switch.sh on")
Make sure to add the following line to /opt/z-way-server/automation/.syscommands

Code: Select all

/opt/z-way-server/automation/storage/switch.sh
After upgrading to a new Z-Way version you have to add that line again to .syscommands :(

(I do save my scripts in storage at the moment)