-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Question about Rules (or feature request) #2475
Comments
Well the first rule on System#Boot can easily be solved by changing PowerOnState from 3 to 0 setting all outputs off after power on. The second one is a nice rule wanting solution ;-) |
For item 2, isn't it the result of the command: SetOption14 1 // global interlock |
I just wish to add my 2 cents... Explanation: [Edith] Edited the rule: "delay 220" for 20s and "delay 1" for 100ms is enough to release the tension on the slats. [/Edith] |
Rules#timer is not timer2! Rules#timer is a countdown timer useable by rules only. |
"Well the first rule on System#Boot can easily be solved by changing PowerOnState from 3 to 0 setting all outputs off after power on." @arendst Unfortunately, due to my (probably ill-configured) HA based mosquito broker, poweronstate does not work for me, so @localhost61 Great input, i want to set up my garage door to open/close, so my application will be similar. Also the interlocking tip did it for me on this project, Thanks |
Got another question, just posting here not to open another issue: Connected a magnetic contact switch as Trying to have it turn off all my relays when activated (as it will be the end sensor on my sliding garage door)
But i cant get it to turn off the relays. edit: with edit2: could not find a workaround to have switchtopic on and have the switch obay the rules, so i turned it of and created a rule for it to broadcast on change |
@arendst, thanks for the input. It's surely the reason why the timer2 didn't trigger this morning on sunrise event ;-). |
@localhost61 |
@localhost61 regarding the Output field when Rule is selected: It would need another enable/disable of a HTML item leading to more code while it's just a cosmetic problem. It would be great if everyone could just use the command line options and get rid of the webserver freeing about 60k for more useful options... |
Hi, Is it possible to add rule on Serialreceived or SSerialreceived with the received serial %value% for usage as in example Rule on button1#state do publish cmnd/ring2/power %value% endon on button2#state do publish cmnd/strip1/power %value% endon ? Maybe I do not know haw the Event#Anyname when command Event Anyname is executed works, maybe there is already prepared. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem. |
Hey there,
I have just started messing with the new feature implemented: Rules.
I must say that it give me great comfort to know that some stuff are done right on the sonoff and dont depend on mqtt or other connection. This makes me able to place safeguards in order to rest assured that i wont have any problematic behavior when else something disconnects or goes wrong (ie. have my irrigation run all night).
To my question:
I have been placing safeguards for all relays (5 of them) to turn off at several points, example:
rules on System#Boot do backlog power1 off;power2 off;power3 off;power4 off;power5 off endon on Mqtt#Disconnected do backlog power1 off;power2 off;power3 off;power4 off;power5 off endon
(might have some typos, im outside and remembering the code by heart )
I also understand that there is a maximum amount of rules due to memory restrictions.
Is there some way to refactor the code in order to replace the
backlog power1 off;power2 off;power3 off;power4 off;power5 off
with something likepowerALL off
or would that be possible anytime soon?Another behavior i want to implemet is for all the other relays to turn off (like above) when any relay toggles
PowerX#State
. So i guess ill have to do it 5 times,when 1 toggle, 2,3,4,5 off
-when 2 toggle 1,3,4,5 off
and so on. Is there some clever way to shorten this command?I know the rules implementation is still fresh and experimental, but im guessing a way to contribute to it is talking about it and requesting features :)
Thanks again for this wonderful firmware.
K.
The text was updated successfully, but these errors were encountered: