HABApp: Import other rules


for some reason I have to import a rule from another rule. But whatever package/module combination I provide it fails with:
Error "No module named 'lightsrules'" in load

I tried:

  • from lightsrules import *
  • from .lightsrules import *
  • from rules.lightsrules import *

Is there any way to make it work? Looks like HABApp treats rule differently for automatic loading of changes.

Best regards, Acema

try this:

1 Like