rule "Wohnzimmer"
when Item Wohnzimmer changed to OPEN
then
postUpdate (Wohnzimmer.state == OPEN){}
if(receivedCommand == 14756833){
postUpdate(DOORSENSOR, OPEN)
}else{
if Wohnzimmer.stateCommand =(“FALSE”)
(Wohnzimmer_Out.state == CLOSED)
}
end
Group Licht_EG "Licht"
Switch Wohnzimmer
Switch Remote_Send { channel="exec:command:remote-send:run" }
String Remote_Send_Args { channel="exec:command:remote-send:input"}
String Remote_Send_Out { channel="exec:command:remote-send:output" }
```php
sitemap funklicht label="Erdgeschoss" {
Frame label="Licht" {
Switch item=Wohnzimmer icon="light"
}
}
Thing exec:command:Wohnzimmer [
command="/home/pi/433Utils/RPi_utils/Wohnzimmer_decke.sh %2$s",
interval=0,
autorun=false
I have tried everything on this page and I don't know what als I should do ... I am only looking to get a states from my 433mhz door sensor to show on my openhab2 at habpanel for door open / door close. I am not expert for using python and Linux but I'm trying my best . if anyone here will post the right scripts for this project I would really appreciate it. I know most of the scripts in this page is for sending code but for my project its receiving code to give a status for open or close