Search found 112 matches

by Provo
01 Dec 2016 14:45
Forum: Recipes
Topic: Javascript sample for a newbie
Replies: 21
Views: 41060

Re: Javascript sample for a newbie

Ok, I just noticed that you said that you're running the script from /opt/z-way-server with node. That will not work. Then you're just running your file alone, and there is no global.ZWave() defined there. As the recipe says, put your script in /opt/z-way-server/automation/storage, and I assume it w...
by Provo
30 Nov 2016 15:05
Forum: Recipes
Topic: Javascript sample for a newbie
Replies: 21
Views: 41060

Re: Javascript sample for a newbie

You are creating a function expression and assigning it to this.bindFunc1, but you are never actually running the function. If you look at the recipe, you will see that after the function expression is defined, there is also the following code: // process all active bindings if (global.ZWave) { glob...
by Provo
30 Nov 2016 14:37
Forum: Discussions in English
Topic: Linux shell wget problem
Replies: 1
Views: 2746

Re: Linux shell wget problem

Try passing your username and password like this:

Code: Select all

wget http://username:password@yourip:8083/…
That is the standard way of passing credentials for basic authentication.
by Provo
28 Nov 2016 13:36
Forum: RaZberry
Topic: Smooth Dimming Problem
Replies: 4
Views: 5277

Re: Smooth Dimming Problem

A workaround for the level issue might be to have a timed job that at 22 hours sets the level to 20 and immediately turn it back off again. It would then remember that setting when you turn the lights back on. And you could do the same thing in the morning, setting it to 100 and immediately turn it ...
by Provo
26 Nov 2016 14:46
Forum: RaZberry
Topic: Smooth Dimming Problem
Replies: 4
Views: 5277

Re: Smooth Dimming Problem

The easiest way to do this is probably using the app Light Motion Trigger. I haven't used it myself, so I can't help you setting it up for a delayed turn-off. But it seems like you should set Dimmer mode to Code, and enter something like the following in the code field to get a time dependent value:...
by Provo
25 Nov 2016 08:18
Forum: Discussions in English
Topic: "Remove failed node" on duplicate device?
Replies: 2
Views: 3808

Re: "Remove failed node" on duplicate device?

It didn't work. The text says that the process will take about one minute, but it immediately completes. The device is then lacking from the drop down list, but only until i refresh the page. Then it's back. I also tried removing it through the Smarthome UI device management, but that just hangs on ...
by Provo
23 Nov 2016 19:54
Forum: Discussions in English
Topic: "Remove failed node" on duplicate device?
Replies: 2
Views: 3808

"Remove failed node" on duplicate device?

I had to reinstall raspbian and everything on my rpi, and when Z-Way was up and running again, I had to exclude and reinclude most devices in order to get them past the security interview. But for some reason, one smoke alarm wasn't completely excluded before it was reincluded. So now I have the ver...
by Provo
21 Nov 2016 16:30
Forum: Discussions in English
Topic: Very advanced virtual Thermostat
Replies: 8
Views: 10104

Re: Very advanced virtual Thermostat

Check out the API sections of this: http://razberry.z-wave.me/docs/zway.pdf

I'm not sure to what extent this is available through the custom javascript module, and I'm not able to check for myself at the moment, so I guess you'll just have to try it out. :)
by Provo
21 Nov 2016 13:03
Forum: Discussions in English
Topic: Very advanced virtual Thermostat
Replies: 8
Views: 10104

Re: Very advanced virtual Thermostat

I haven't tried this myself, but I think you should be able to use the custom javascript app. Capture the event when the setpoint on the Devolo is changed, and execute the javascript app which gets the value, does the calculation and sets the radiator thermostat value.
by Provo
11 Nov 2016 18:43
Forum: Discussions in English
Topic: Module that sets config params
Replies: 14
Views: 42814

Re: Module that sets config params

I realized I can probably just use the Configuration command class. Using the JS api, I can do zway.devices[2].Configuration.Get(1) to get the system to read parameter 1 of the device with ID 2. If I run this code, the UI shows that the value was updated from the device at the time I ran the code. H...