Sending command to raspberry

Discussions about Z-Way software and Z-Wave technology in general
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Sending command to raspberry

Post by pz1 »

You probabaly have to write a module for that. You may have a look into Maros Kollar's blinds/window controller App
See detail on https://github.com/maros/Zway-BlindControl/
Markus96
Posts: 9
Joined: 29 Jul 2016 11:04

Re: Sending command to raspberry

Post by Markus96 »

Hey, i just tried if it works - it always says: Syntax error, unexpected identifier.

I followed your instrcutions, my code: system(sudo aircontrol -t blends_up)
User avatar
PoltoS
Posts: 7594
Joined: 26 Jan 2011 19:36

Re: Sending command to raspberry

Post by PoltoS »

you forgot "

system("sudo aircontrol -t blends_up")
Markus96
Posts: 9
Joined: 29 Jul 2016 11:04

Re: Sending command to raspberry

Post by Markus96 »

Thanks.

Next error-message:

Error during perform command execution: Error: This command is denied by policy.

pz1 mentioned this:

Finally you must set permission for ZWay to excute aircontrol. Therefore enter the full path + name of that command in file /opt/z-way-server/automation/.syscommands

Is this the problem?
I'm not sure what you mean with enter full path? What exactly do I need to set permission for zway to execute aircontrol?

Many thanks.
User avatar
PoltoS
Posts: 7594
Joined: 26 Jan 2011 19:36

Re: Sending command to raspberry

Post by PoltoS »

yes, this is the problem. You need to add to the file
sudo aircontrol -t blends_up
Markus96
Posts: 9
Joined: 29 Jul 2016 11:04

Re: Sending command to raspberry

Post by Markus96 »

Thanks! That's it!
micky1500
Posts: 298
Joined: 07 Feb 2016 16:29
Location: England

Re: Sending command to raspberry

Post by micky1500 »

Thanks guys. pz1 and PoltoS.
I was watching this thread :)
Now I can Control my Boiler for heating control.
Took over the remote thermostat via cheap 433Mhz Transmitter for a Worcester Boiler.
And it actually works...
sudo ./boiler 1111111111111101010101010101001110010101011010100110011010101010101010101001100101010101011111111111111111111111111111111111111111111111111 445 1 3
used examples from Wiring PI and Raspberry pi Forum. https://www.raspberrypi.org/forums/view ... 38#p499538
:)
Raspi 4 - (Buster - 32 Bit) Zwave Version 4.1.1, Raz 7 Pro, Serial API Version: 07.38
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Sending command to raspberry

Post by pz1 »

@micky1500 Thanks for sharing!
Post Reply