Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonoff RF Bridge - can we make rules on RfReceived #2758

Closed
jcheger opened this issue May 17, 2018 · 6 comments
Closed

Sonoff RF Bridge - can we make rules on RfReceived #2758

jcheger opened this issue May 17, 2018 · 6 comments
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended

Comments

@jcheger
Copy link

jcheger commented May 17, 2018

Make sure these boxes are checked [x] before submitting your issue - Thank you!

(Please, remember to close the issue when the problem has been addressed)
Is it possible to create rules on received codes of rfkeys ? If yes, can somebody tell the syntax ?

Without any relevant documentation, I did try all kind of syntax I could imagine, but without any success

  • rule on button1#state do publish hello world endon
  • rule on rfkey1 do publish hello world endon
  • rule on tele-rfkey1 do publish hello world endon
  • rule on rfreceived#rfkey=1 do publish hello world endon
  • rule on tele-rfreceived#rfkey=1 do publish hello world endon
  • rule on rfreceived#Data=AA4DE2 do publish hello world endon
@arendst
Copy link
Owner

arendst commented May 17, 2018

Not available (yet). Nice idea though...

@jcheger
Copy link
Author

jcheger commented May 17, 2018

The idea behind this question is to use 1 door contact and 2 PIR to power on the light. Any detection resets the timer, and once it's over, it can send the rfcodes to power the lights off (if I did forget to do it manually). The goal is to do it without any 3rd party equipment, such as an MQTT broker.

@ascillato
Copy link
Contributor

👍

@arendst arendst added the enhancement Type - Enhancement that will be worked on label May 18, 2018
arendst added a commit that referenced this issue May 24, 2018
5.14.0b
 * Add rule support for IrReceive and RfReceive (#2758)
@arendst arendst added the fixed Result - The work on the issue has ended label May 28, 2018
@arendst arendst closed this as completed May 28, 2018
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 7, 2018
5.14.0b
 * Add rule support for IrReceive and RfReceive (arendst#2758)
@Gasxet
Copy link

Gasxet commented Mar 11, 2019

Dear all firs of all my compliments... I did Tasmotize almost all my devices in home, you did a great job.
This is my first time I'm looking for help and thank you in advance for any. Sorry if I maybe request in a wrong way...
I put rules in the RF bridge for some PIR sensor connected, tried to put multiple in a single Rule (Only 3 are accepted), but Only the first par of the rule seems to work, can you help?, thank you , this is the code and only yhe Rf_Bridge/PSal works none of the Rf_Bridge/PIng and/or Rf_Bridge/PCuc:
Rule1 on RFReceived#data=E846AE do backlog publish2 Rf_Bridge/PSal 1; ruletimer1 5 endon on rules#timer=1 do publish2 Rf_Bridge/PSal 0 endon on RFReceived#data=E9E1DE do backlog publish2 Rf_Bridge/PIng 1; ruletimer2 5 endon on rules#timer=2 do publish2 Rf_Bridge/PIng 0 endon on RFReceived#data=E8329E do backlog publish2 Rf_Bridge/PCuc 1; ruletimer3 5 endon on rules#timer=3 do publish2 Rf_Bridge/PCuc 0 endon

@Bedzaa
Copy link

Bedzaa commented Dec 4, 2022

Dears, after some time I decided to have rules on Tasmotized RF Bridge. My idea: if PIR sensor sends the data string, the light will switch on.

This rule however does not do anything:

Rule1
on RfReceived#Data=D332FE do publish cmnd/ Sonoff_basic_R3_03/POWER ON endon

Could anybody help? what am I doing wrong?
Thank You

@sfromis
Copy link
Contributor

sfromis commented Dec 4, 2022

Better fix the typo, the topic cannot contain a space.
publish cmnd/ Sonoff_basic_R3_03/POWER ON

Did you activate the rule? Read the console with Weblog 3 active to see what happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

6 participants