Scenes and code device issues

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
handon
Posts: 2
Joined: 21 Jan 2016 12:48

Scenes and code device issues

Post 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
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Scenes and code device issues

Post 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 4124 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.
handon
Posts: 2
Joined: 21 Jan 2016 12:48

Re: Scenes and code device issues

Post 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
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Scenes and code device issues

Post 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)
Post Reply