Hey there !
My goal is to control 433 MHz sockets with OH2 from my tablet using a raspberry pi 3 as a central station.
I installes OH2 with apt-get and I think this works without a mistake.
I also installes exec binding with apt-get (hopefully without mistakes, too). Now, the problems start.
I’m not really sure, if I understand the general structure how OH2 works. First, I made “freitag.item” in which stands:
Switch funkdose111 “DDDose 1” {exec=">[OFF:sudo /opt/raspberry-remote/send 00011 1 0] >[ON:sudo /opt/raspberry-remote/sen$
Switch funkdose2 “D23ose 2” {exec=">[OFF:/opt/raspberry-remote/send 00011 2 0] >[ON:/opt/raspberry-remote/send 00011 2 $
Switch funkdose3 “Ddfsose 3” {exec=">[OFF:sudo /opt/raspberry-remote/send 00011 3 0] >[ON:sudo /opt/raspberry-remote/se$
Switch funkdose4 “Ddfose 4” {exec=">[OFF:sudo /opt/raspberry-remote/send 00011 4 0] >[ON:sudo /tmp/openhab]"}
Don’t get confused with my convention of “sudo / no sudo” and the names “DDDose 1”, etc. I just tried some different opportunities so see, if the changes work or work not.
Then I changes the default.sitemaps data to:
sitemap default label=“Dominik und Helena” {
Frame label=“Funkdosen” {
Switch item=funkdose111
Switch item=funkdose2
Switch item=funkdose3
Switch item=funkdose4
Switch item=funkdose5
Switch item=LivingRoom_AC_command label=“Interrupteur” mappings=[ “ON”=“ON”, “OFF”=“OFF” ]
}
}
Again, I tried different opportunities, as you can see.
I installed the “openHAB” App for my iPhone and logged in, this works. I also can see the switches “funksteckdose111 - funksteckdose5” and “Interrupter”. When I want to switch on or of the sockets, nothing happens. I changed the rights of the user openhab with “sudo nano /etc/suers”: “openhab ALL=NOPASSWD: /opt/raspberry-remote/send*”
I’m not sure if I have just a little problem (with rights of openhab?) or I’m standing in front of a big problem and haven’t unserdtood the general structure.
I would be so happy, if we could solve the problem together !!
PS: I read and tried the tutorial of Rich, but unhappily I don’t get everything.
And sorry for starting a new toping while existing a lot of similar solved problems in the web - I just don’t get them. Sorry for this !
If some Germans like me read my post, they are welcomes to answer in German, so it’s easier for me to follow them.