Rule triggering rule or duplicate code or single large file?


(Crispin) #1

Folks,

I was wondering - I have a rule which sends mqtt when an item receives a command.
I have rules which trigger when they receive a command. They in turn send commands to the item above.
These two rules are broken out into two logical files.

What’s the overhead of this? Best option?
a) Leave as-is. It’s ok.(Nice, logical splits)
b) Duplicate code by having the first option send publish mqtt (Gross, code duplication)
c) Merge files together, use lamdas to manage the mqtt? (Gross, no logical splits, large rule files with many rules)

All this is running on RPi3 and is a bit sluggish at times.

thanks