How to place rules in subfolders

Hi There,

I wan’t to place my rules in subfolders but openhab only loads files that are placed in ./rules folder. Is there a way to tell openhab to also scan for rules in subfolders?

Bests
Pascal

If your rule is an OH rule then it will need to be .rules file. Out of curiosity why do you want a subfolder for rules?

OH doesn’t load .rules files in subfolders per default.
Why? For a better structure of my rules.

1 Like

You can have multiple rule files. Just name them different.

The FolderObserver just scans /rules, no subfolders. Changing to even scan for subfolders might eat to much ressources on small SOCs.