Stella Z, JS and razberry

Discussions about RaZberry - Z-Wave board for Raspberry computer
tonyg
Posts: 38
Joined: 29 May 2014 04:55

Stella Z, JS and razberry

Post by tonyg »

I want am looking at first

reading the data off my stella values through a browser

then setting thermostatmodes and thermostat temperatures through the browser

is there a list of commands I can send to port 8083 through the browser
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Stella Z, JS and razberry

Post by pz1 »

tonyg wrote:is there a list of commands I can send to port 8083 through the browser
The short answer is yes. See developers documentation chapter 7 (see http://razberry.zwave.me/index.php?id=5)
That is a long list.
I think it is better if you could indicate what you want to achieve. In the Recipes forum I have written a Recipe about controlling StellaZ with the automation engine as an example. What else do you need?
Since 29-12-2016 I am no longer a moderator for this forum
tonyg
Posts: 38
Joined: 29 May 2014 04:55

Re: Stella Z, JS and razberry

Post by tonyg »

zway.devices[N].ThermostatMode.Set(x)

Yes , the recipe is very interesting.

So can I put this in the browser for the right device and mode and it will change the mode?

Also I would like to be able to change the thermostat temperature.

I am also looking to ask the stella z for the current temperature, battery level etc.
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Stella Z, JS and razberry

Post by pz1 »

tonyg wrote: So can I put this in the browser for the right device and mode and it will change the mode?
I am confused. What do you mean by put in the browser? The command as a URL? or do you want to make your own web application
Since 29-12-2016 I am no longer a moderator for this forum
tonyg
Posts: 38
Joined: 29 May 2014 04:55

Re: Stella Z, JS and razberry

Post by tonyg »

apologies. I test out in the browser , but I have an application which can make requests to the browser and parse the json etc.

localhost:8083/zway.devices[6].ThermostatMode.Set(11)

so will that change the thermostat mode for device 6 to 11

I am also looking for command to change the setpoint for each mode.

And I am looking for how to recover the temperature / battery meter etc
skiv71
Posts: 124
Joined: 01 May 2014 13:46
Location: United Kingdom
Contact:

Re: Stella Z, JS and razberry

Post by skiv71 »

I have 12+ of these StellaZ TRV's on my system and I control the setpoint via my virtual room stat's and receive pos %, temp and battery level automatically :)

It's all via the z-way-server http port and via commands documented in the API
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Stella Z, JS and razberry

Post by pz1 »

tonyg wrote:apologies. I test out in the browser , but I have an application which can make requests to the browser and parse the json etc.

localhost:8083/zway.devices[6].ThermostatMode.Set(11)

so will that change the thermostat mode for device 6 to 11

I am also looking for command to change the setpoint for each mode.

And I am looking for how to recover the temperature / battery meter etc
For the http access try
Mode
http://raspberry_IP:8083/ZWaveAPI/Run/devices[6].ThermostatMode.Set(11)
battery
http://raspberry_IP:8083/ZWaveAPI/Run/devices[6].Battery.data.last.value

temperature
http://raspberry_IP:8083/ZWaveAPI/Run/devices[6].instances[0].SensorMultilevel.data[1].val.value
I am not sure about the value for instances in this last one
Consult datasheet of StellaZ and the Developers Documentation for further explanation

edit 19:21 In the temperature measurement, you probably can leave out the "instances[0]."
Since 29-12-2016 I am no longer a moderator for this forum
tonyg
Posts: 38
Joined: 29 May 2014 04:55

Re: Stella Z, JS and razberry

Post by tonyg »

Thanks Pz1, I'll let you know how that goes!
tonyg
Posts: 38
Joined: 29 May 2014 04:55

Re: Stella Z, JS and razberry

Post by tonyg »

To explain the following command, I have an ssh tunnel running from my localhost port 7000 to 8083 of the remote razberry host

http://localhost:7000/ZWaveAPI/Run/devi ... .val.value

This worked a treat and returned the value 23



http://localhost:7000/ZWaveAPI/Run/devi ... nt.Set(20)

I get
TypeError: Cannot read property 'Set' of undefined



http://localhost:7000/ZWaveAPI/Run/devi ... last.value

I get

68 (\o/)

http://localhost:7000/ZWaveAPI/Run/devi ... de.Set(11)
this returns null

Again I don't know if it has been set
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Stella Z, JS and razberry

Post by pz1 »

1) check your results in the OLD expert view under /Device Control /Thermostats
2) Temperature setting for StellaZ
ZWaveAPI/Run/devices[N].instances[0].ThermostatSetPoint.Set(modus,SetTemp)
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply