Execute command line

Can i define a switch that execute commandline operation , without making a rule. Untill now I have always made a rule:
if switchTemp changed from OFF to On then executeCommandline("xxxxx",5000)

I just wanted to skip this extra work, to keep my OH more simple.

I am using the Exec 1.X binding because the Version 2, like you say with rules, is annoying.
An Item with Exec binding 1.X would look like this. I use the Exec 1.X binding to control my 433 MHz Switches with Shell scripts.

Switch Outdoor_1_10		 "Lichterkette (Steckdose 10)"	(Outdoor,  Light, OutdoorLight, Office_First_Floor, Office_Outdoor, MySQLPersist) 	{ exec="OFF:/opt/brematic/1_10_off.sh, ON:/opt/brematic/1_10_on.sh" }

433mhz swichtes, aren’t they compatible to intertechno? I use use 29years old REV power plugs and I’m switching them using the Intertechno binding in conjunction with a CUL stick as 433mhz transmitter. No rule needed.

I have to look that up.

Edit:
I use the Brematic Switches and the Gateway
https://images-na.ssl-images-amazon.com/images/I/71l0aYPsC8L.SL1500.jpg
https://images-na.ssl-images-amazon.com/images/I/71BfRBGPUaL.AC_UL320_SR246,320.jpg

My Script looks like this

#!/bin/bash
an () {
    echo "TXP:0,0,10,5600,350,25,1,3,1,3,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,1,3,1,3,3,1,1,3,3,1,1,3,1,3,1,3,1,3,1,3,3,1,1,16,;" | /bin/nc -u 192.168.60.211 49880 &
    pid=$!
    sleep 1
    kill $pid 2>/dev/null >/dev/null
}
echo An
#!/bin/bash
off () {
    echo "TXP:0,0,10,5600,350,25,1,3,1,3,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,3,1,1,3,1,3,1,3,3,1,1,3,3,1,1,3,1,3,1,3,3,1,1,3,1,1,1,16,;" | /bin/nc -u 192.168.60.211 49880 &
    pid=$!
    sleep 1
    kill $pid 2>/dev/null >/dev/null
}
echo Aus

I quick checked the documentation of the Intertechno Binding. My Network scheme looks like this

If I understood the documentation of Intertechno right I could directly control the Switches without the Gateway, right?
From given picture the address would be 0100101111 I will just try this out :slight_smile: Thank you @opus

Could you tell me where you got the CUL Stick? Thank you :slight_smile:

Although there a posted some DIY build instructions I did buy mine at busware.com

1 Like

Yes, you should be able to control those switches directly.At least that’s the way I do use it. I think the published conversions (a German page) has also Brennenstuhl mentioned. I’m far from my system, can’t provide the link ATM. Sorry

1 Like

Hello, i want to integrate the Brennenstuhl Brematic Home Automation Gateway GWY 433 into openhab. I am totaly new. Could someone give me a starting point (links, downloads,…)

A quick search with google gave that link.
Didn’t read all myself. Good luck!