I need to set up a test that turns off the powerswitch (device 1) IF there is no motion (device 2) AND IF there is less than 100 watts beeing used on the powerswitch.
I have the Razberry set up with Zway server v2.0.0-rc20
I have tried using the Home Automation System, but this is not ready yet according to people at Z-wave.me
I am now trying to fiddle around with z-way-mini-ui-master. I am not 100% comfortable.

Can anyone please point me in the right direction for creating av javascript that will help me do this?
I am a newbie when it comes to linux, razberry and zway.
If someone could give me a detailed receipe I would be extremely happy. For the right person and the right solution I might be willing to pay for help with this.
regards
Rappo