Replies: 6 comments 38 replies
-
Actually not only 3 rules. Tasmota has 3 rule sets available, but each of those can contain many rules ( |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing your idea. It will not implemented since it is not a small code change and it will result in a bigger firmware size. There are good alternatives to solve how to structure rules. |
Beta Was this translation helpful? Give feedback.
-
TDM allows to edit multi-line rules easily |
Beta Was this translation helpful? Give feedback.
-
I saw that Jason does not want to increase the number of rules or add a compile option, but I would like to make another case for more rule sets. But, there are also a lot of cases where you need one rule set per option. So if, e.g. the sum of characters for 3 rules was now limited to e.g. 500 due to storage space, then when you use 5 rule sets each rule set could have 100 characters. If you use 10 rule sets, each would only have 50 characters available. So it would be pretty cool to be able to use more rule sets with smaller rules. Just my 2 cents in case anybody wants to implement something like this :) P.S.: the space needed to make simple tasks happen within on rule set by using variables will be larger than the space needed using multiple rule sets. Because sometimes you have to get really creative to get around the rule set limit and that takes a lot of extra chars. |
Beta Was this translation helpful? Give feedback.
-
@AleXSR700 You may want to try that PR19348 by pulling my branch https://github.com/barbudor/Tasmota/tree/extended_rules It requires filesystem to save the additional rules so it is not officially supported on 1MB devices. However I have test version that you can try at your own risks:
I'm not sure how safe it is. The filesystem may get corrupted during OTA with a large file Don't forget that to move from a build without filesystem to a build with filesystem, you need to fully erase and serial-reflash the device (don't forget to save the configuration before) Note that there is no guarantee that Theo will accept that PR |
Beta Was this translation helpful? Give feedback.
-
this is how rule1 appears on the tasmota console. How do I get rid of all of the extraneous white space? 15:20:53.532 CMD: rule1 |
Beta Was this translation helpful? Give feedback.
-
Hello!
Tasmota has 3 rules available. Of course rules can be multi-line and it can be put more commands into one rule, but is there a way to change number of rules? For example 10, or add sth like #MORE_RULES_COMPILE_OPTION 10?
Beta Was this translation helpful? Give feedback.
All reactions