Newbie to openhab.
I installed it 2x weeks ago, the latest running 2.4.0 and installed in Raspberry Pi3.
I’m using Paper UI and HABPanel.
I’ve been doing a lot of reading over the last 2x weeks and seeing contradictory information shared by users.
I see a lot of scripting references for Items, Rules, Cfg etc. and some users say that these are not required when using OH2 and MQTT2.4 since all config can be done via GUI.
I tried some examples as per many available on forums, but I always get an error in the OH log. They typically mention “no EOF” etc.
I’ve installed MQTT 2.4 and not familiar with any scripting.
After several days, I managed to get my Sonoff loaded with Tasmota to work to my OH2.
I have several Sonoff devices which includes BASIC, DUAL, RF Bridge and some PIR motion detectors.
I required to switch on a Sonoff BASIC when the PIR detects motion at night.
But it needs to switch off after several minutes, example 15min.
I don’t know how to achieve this via GUI.
So, the following is my setup…
I’m going to use a T1 light switch to control an outside light, but for this exercise to learn how to create this, I’ll be using a Sonoff BASIC.
The following is what my THINGS look like for the RF Bridge:
The detailed setup for above channel is:
What I’m achieving here is this: when the RF Bridge receives a 433MHz signal I extract the “data” portion as this is unique for any transmitter.
I then turn this received “data” into a command.
Here is an example of captured data when the PIR acts on motion and transmits to the RF Bridge:
Once above is received, I then run a rule. The rule then looks for a command to match and then performs on this action.
So, here is the rule:
The following is the actual TRIGGER:
The following is the action, if TRIGGER matches:
The following is currently the only condition, i.e. it will only work in the evening:
The GUI offers no method for timing.