i learned a lot in the last view days, from all of you because here in the community are a lot of useful information für my smart home project. I was able to implement the Milight iBox2 witch the Snapshot version and so on.
But at the Moment i have a Problem with the implementation of a C++ Script as Button or Switch. But first i some words about the enviroment:
I installed OpenHabian 2 (Snapshot) on my Raspberry P 3 Model B and read out the sent codes of the Remote control of the outlets with an 433Mhz Receiver connected over GPIO of the Raspberry, than I wrote C++ Scripts (for all of the my four Outlets) to switch them on/off via 433 Mhz Transmitter - Also connected over GPIO of my RaspPi. So i have know four compiled scripts:
First Command For “switch on” Outlet #1:
sudo /wiringPi/433Utils/RPi_utils/steuerung1 1
Second For “switch off” the Outlet #1:
sudo /wiringPi/433Utils/RPi_utils/steuerung1 0
And it works very well. But now i have the Problem to integrate it to OpenHAB. I think the EXEC-Binding ist the right one, but i don’t understand, how i schould configure my Thing ans Item.
Target schould be, that i habe in my Android App an Item “Outlet #1” with two Buttons “on” and “off”. If i press “on” the first command will be execute - if I press “off” the second command is execute.
Next step is to extent it to more Outlets but this is my work to duplicate and modify the Thing and Item.
I know in this community are a lot of smart people and I am sure somebody will be able to help me I appreciate your work for this Open Source project.