Skip to content

Instantly share code, notes, and snippets.

@imaginator
Created July 4, 2022 08:07
Show Gist options
  • Save imaginator/1501be112247d460455e0dba1b612c9e to your computer and use it in GitHub Desktop.
Save imaginator/1501be112247d460455e0dba1b612c9e to your computer and use it in GitHub Desktop.
[2022-07-04 09:59:50,935] [ HABApp] INFO | HABApp Version 0.31.3 Dev
[2022-07-04 09:59:50,935] [ HABApp.Config] WARNING | Replaced class for handler "HABApp_default" with HABApp.config.logging.MidnightRotatingFileHandler
[2022-07-04 09:59:50,935] [ HABApp.Config] WARNING | Replaced class for handler "EventFile" with HABApp.config.logging.MidnightRotatingFileHandler
[2022-07-04 09:59:50,936] [ HABApp.Config] ERROR | "logging.handlers.MemoryHandler" is no longer required. Please remove from config (BufferEventFile)!
[2022-07-04 09:59:50,936] [ HABApp.Config] WARNING | Removed BufferEventFile from handlers
[2022-07-04 09:59:50,936] [ HABApp.Config] WARNING | Replaced BufferEventFile with EventFile for logger HABApp.EventBus
[2022-07-04 09:59:50,938] [ HABApp.mqtt.connection] INFO | MQTT disabled
[2022-07-04 09:59:50,988] [HABApp.openhab.connection] INFO | Connected to OpenHAB version 3.3.0 (Release Build)
[2022-07-04 09:59:51,321] [ HABApp.openhab.items] INFO | Updated 1902 Items
[2022-07-04 09:59:51,399] [ HABApp.openhab.items] INFO | Updated 78 Things
[2022-07-04 09:59:56,451] [ HABApp.Rules] INFO | Added rule "MyRule" from rules/bbb.py
[2022-07-04 09:59:56,453] [ HABApp.Rules] WARNING | Found no instances of HABApp.Rule in /home/simon/habapp/rules/contact.py
[2022-07-04 09:59:56,455] [ HABApp.Rules] INFO | Added rule "MyRule" from rules/events.py
[2022-07-04 09:59:56,614] [ HABApp.Rules] ERROR | Error "Argument event_filter must be an instance of event filter (is <class 'HABApp.openhab.events.item_events.ItemStateEvent'>)" in load:
[2022-07-04 09:59:56,614] [ HABApp.Rules] ERROR | Could not load /home/simon/habapp/rules/test.py!
[2022-07-04 09:59:56,614] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 269 in run_path
[2022-07-04 09:59:56,614] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 245 | def run_path(path_name, init_globals=None, run_name=None):
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | (...)
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 264 | is_NullImporter = True
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 265 | if isinstance(importer, type(None)) or is_NullImporter:
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 266 | # Not a valid sys.path entry, so run the code directly
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 267 | # execfile() doesn't help as we want to allow compiled files
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 268 | code, fname = _get_code_from_file(run_name, path_name)
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | --> 269 | return _run_module_code(code, init_globals, run_name,
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 270 | pkg_name=pkg_name, script_name=fname)
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 271 | else:
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 272 | # Finder is defined for path, so add it to
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | 273 | # the start of sys.path
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | sys.path = ['/opt/habapp/bin', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/opt/habapp/lib/python3.10/site-packages']
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | code = <code object test.py at 0x7f18956c10b0, file "/home/simon/habapp/rules/test.py", line 1>
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | code, fname = (<code object test.py at 0x7f18956c10b0, file "/home/simon/habapp/rules/test.py", line 1>, '/home/simon/habapp/rules/test.py')
[2022-07-04 09:59:56,615] [ HABApp.Rules] ERROR | fname = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | importer = None
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | init_globals = {'__HABAPP__HOOK__': <HABApp.rule.rule_hook.HABAppRuleHook object at 0x7f189c4473a0>}
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | is_NullImporter = False
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | path_name = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | pkg_name = '/home/simon/habapp/rules/test'
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | run_name = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR |
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 96 in _run_module_code
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | 89 | def _run_module_code(code, init_globals=None,
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | 90 | mod_name=None, mod_spec=None,
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | 91 | pkg_name=None, script_name=None):
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | (...)
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | 93 | fname = script_name if mod_spec is None else mod_spec.origin
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | 94 | with _TempModule(mod_name) as temp_module, _ModifiedArgv0(fname):
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | 95 | mod_globals = temp_module.module.__dict__
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | --> 96 | _run_code(code, mod_globals, init_globals,
[2022-07-04 09:59:56,616] [ HABApp.Rules] ERROR | 97 | mod_name, mod_spec, pkg_name, script_name)
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | 98 | # Copy the globals of the temporary module, as they
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | 99 | # may be cleared when the temporary module goes away
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | temp_module = <runpy._TempModule object at 0x7f189c4464a0>
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | temp_module.module.__dict__ = {'__name__': '/home/simon/habapp/rules/test.py', '__doc__': None, '__package__': '/home/simon/habapp/rules/test', '__loader__': None, '__spec__': None, '__HABAPP__HOOK__': <HABApp.rule.rule_hook.HABAppRuleHook object at 0x7f189c4473a0>, '__file__': '/home/simon/habapp/rules/test.py', '__cached__': None, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'aiter': <built-in function aiter>, 'len': <built-in function len>, 'locals': <built-in function locals>, 'max': <built-in function max>, 'min': <built-in function min>, 'next': <built-in function next>, 'anext': <built-in function anext>, 'oct': <built-in function oct>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'repr': <built-in function repr>, 'round': <built-in function round>, 'setattr': <built-in function setattr>, 'sorted': <built-in function sorted>, 'sum': <built-in function sum>, 'vars': <built-in function vars>, 'None': None, 'Ellipsis': Ellipsis, 'NotImplemented': NotImplemented, 'False': False, 'True': True, 'bool': <class 'bool'>, 'memoryview': <class 'memoryview'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'classmethod': <class 'classmethod'>, 'complex': <class 'complex'>, 'dict': <class 'dict'>, 'enumerate': <class 'enumerate'>, 'filter': <class 'filter'>, 'float': <class 'float'>, 'frozenset': <class 'frozenset'>, 'property': <class 'property'>, 'int': <class 'int'>, 'list': <class 'list'>, 'map': <class 'map'>, 'object': <class 'object'>, 'range': <class 'range'>, 'reversed': <class 'reversed'>, 'set': <class 'set'>, 'slice': <class 'slice'>, 'staticmethod': <class 'staticmethod'>, 'str': <class 'str'>, 'super': <class 'super'>, 'tuple': <class 'tuple'>, 'type': <class 'type'>, 'zip': <class 'zip'>, '__debug__': True, 'BaseException': <class 'BaseException'>, 'Exception': <class 'Exception'>, 'TypeError': <class 'TypeError'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'GeneratorExit': <class 'GeneratorExit'>, 'SystemExit': <class 'SystemExit'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'ImportError': <class 'ImportError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'OSError': <class 'OSError'>, 'EnvironmentError': <class 'OSError'>, 'IOError': <class 'OSError'>, 'EOFError': <class 'EOFError'>, 'RuntimeError': <class 'RuntimeError'>, 'RecursionError': <class 'RecursionError'>, 'NotImplementedError': <class 'NotImplementedError'>, 'NameError': <class 'NameError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'AttributeError': <class 'AttributeError'>, 'SyntaxError': <class 'SyntaxError'>, 'IndentationError': <class 'IndentationError'>, 'TabError': <class 'TabError'>, 'LookupError': <class 'LookupError'>, 'IndexError': <class 'IndexError'>, 'KeyError': <class 'KeyError'>, 'ValueError': <class 'ValueError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'AssertionError': <class 'AssertionError'>, 'ArithmeticError': <class 'ArithmeticError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'OverflowError': <class 'OverflowError'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, 'SystemError': <class 'SystemError'>, 'ReferenceError': <class 'ReferenceError'>, 'MemoryError': <class 'MemoryError'>, 'BufferError': <class 'BufferError'>, 'Warning': <class 'Warning'>, 'UserWarning': <class 'UserWarning'>, 'EncodingWarning': <class 'EncodingWarning'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'FutureWarning': <class 'FutureWarning'>, 'ImportWarning': <class 'ImportWarning'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'BytesWarning': <class 'BytesWarning'>, 'ResourceWarning': <class 'ResourceWarning'>, 'ConnectionError': <class 'ConnectionError'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'NotADirectoryError': <class 'NotADirectoryError'>, 'InterruptedError': <class 'InterruptedError'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'TimeoutError': <class 'TimeoutError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'copyright': Copyright (c) 2001-2022 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'license': Type license() to see the full license text, 'help': Type help() for interactive help, or help(object) for help about object.}, 'HABApp': <module 'HABApp' from '/opt/habapp/lib/python3.10/site-packages/HABApp/__init__.py'>, 'ValueUpdateEvent': <class 'HABApp.core.events.events.ValueUpdateEvent'>, 'ValueChangeEvent': <class 'HABApp.core.events.events.ValueChangeEvent'>, 'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>, 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>, 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>, 'SwitchItem': <class 'HABApp.openhab.items.switch_item.SwitchItem'>, 'ContactItem': <class 'HABApp.openhab.items.contact_item.ContactItem'>, 'DatetimeItem': <class 'HABApp.openhab.items.datetime_item.DatetimeItem'>, 'OpenhabItem': <class 'HABApp.openhab.items.base_item.OpenhabItem'>, 'MyOpenhabRule': <class '/home/simon/habapp/rules/test.py.MyOpenhabRule'>}
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | code = <code object test.py at 0x7f18956c10b0, file "/home/simon/habapp/rules/test.py", line 1>
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | fname = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | init_globals = {'__HABAPP__HOOK__': <HABApp.rule.rule_hook.HABAppRuleHook object at 0x7f189c4473a0>}
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | mod_globals = {'__name__': '/home/simon/habapp/rules/test.py', '__doc__': None, '__package__': '/home/simon/habapp/rules/test', '__loader__': None, '__spec__': None, '__HABAPP__HOOK__': <HABApp.rule.rule_hook.HABAppRuleHook object at 0x7f189c4473a0>, '__file__': '/home/simon/habapp/rules/test.py', '__cached__': None, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'aiter': <built-in function aiter>, 'len': <built-in function len>, 'locals': <built-in function locals>, 'max': <built-in function max>, 'min': <built-in function min>, 'next': <built-in function next>, 'anext': <built-in function anext>, 'oct': <built-in function oct>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'repr': <built-in function repr>, 'round': <built-in function round>, 'setattr': <built-in function setattr>, 'sorted': <built-in function sorted>, 'sum': <built-in function sum>, 'vars': <built-in function vars>, 'None': None, 'Ellipsis': Ellipsis, 'NotImplemented': NotImplemented, 'False': False, 'True': True, 'bool': <class 'bool'>, 'memoryview': <class 'memoryview'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'classmethod': <class 'classmethod'>, 'complex': <class 'complex'>, 'dict': <class 'dict'>, 'enumerate': <class 'enumerate'>, 'filter': <class 'filter'>, 'float': <class 'float'>, 'frozenset': <class 'frozenset'>, 'property': <class 'property'>, 'int': <class 'int'>, 'list': <class 'list'>, 'map': <class 'map'>, 'object': <class 'object'>, 'range': <class 'range'>, 'reversed': <class 'reversed'>, 'set': <class 'set'>, 'slice': <class 'slice'>, 'staticmethod': <class 'staticmethod'>, 'str': <class 'str'>, 'super': <class 'super'>, 'tuple': <class 'tuple'>, 'type': <class 'type'>, 'zip': <class 'zip'>, '__debug__': True, 'BaseException': <class 'BaseException'>, 'Exception': <class 'Exception'>, 'TypeError': <class 'TypeError'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'GeneratorExit': <class 'GeneratorExit'>, 'SystemExit': <class 'SystemExit'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'ImportError': <class 'ImportError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'OSError': <class 'OSError'>, 'EnvironmentError': <class 'OSError'>, 'IOError': <class 'OSError'>, 'EOFError': <class 'EOFError'>, 'RuntimeError': <class 'RuntimeError'>, 'RecursionError': <class 'RecursionError'>, 'NotImplementedError': <class 'NotImplementedError'>, 'NameError': <class 'NameError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'AttributeError': <class 'AttributeError'>, 'SyntaxError': <class 'SyntaxError'>, 'IndentationError': <class 'IndentationError'>, 'TabError': <class 'TabError'>, 'LookupError': <class 'LookupError'>, 'IndexError': <class 'IndexError'>, 'KeyError': <class 'KeyError'>, 'ValueError': <class 'ValueError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'AssertionError': <class 'AssertionError'>, 'ArithmeticError': <class 'ArithmeticError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'OverflowError': <class 'OverflowError'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, 'SystemError': <class 'SystemError'>, 'ReferenceError': <class 'ReferenceError'>, 'MemoryError': <class 'MemoryError'>, 'BufferError': <class 'BufferError'>, 'Warning': <class 'Warning'>, 'UserWarning': <class 'UserWarning'>, 'EncodingWarning': <class 'EncodingWarning'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'FutureWarning': <class 'FutureWarning'>, 'ImportWarning': <class 'ImportWarning'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'BytesWarning': <class 'BytesWarning'>, 'ResourceWarning': <class 'ResourceWarning'>, 'ConnectionError': <class 'ConnectionError'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'NotADirectoryError': <class 'NotADirectoryError'>, 'InterruptedError': <class 'InterruptedError'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'TimeoutError': <class 'TimeoutError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'copyright': Copyright (c) 2001-2022 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'license': Type license() to see the full license text, 'help': Type help() for interactive help, or help(object) for help about object.}, 'HABApp': <module 'HABApp' from '/opt/habapp/lib/python3.10/site-packages/HABApp/__init__.py'>, 'ValueUpdateEvent': <class 'HABApp.core.events.events.ValueUpdateEvent'>, 'ValueChangeEvent': <class 'HABApp.core.events.events.ValueChangeEvent'>, 'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>, 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>, 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>, 'SwitchItem': <class 'HABApp.openhab.items.switch_item.SwitchItem'>, 'ContactItem': <class 'HABApp.openhab.items.contact_item.ContactItem'>, 'DatetimeItem': <class 'HABApp.openhab.items.datetime_item.DatetimeItem'>, 'OpenhabItem': <class 'HABApp.openhab.items.base_item.OpenhabItem'>, 'MyOpenhabRule': <class '/home/simon/habapp/rules/test.py.MyOpenhabRule'>}
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | mod_name = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | mod_spec = None
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | pkg_name = '/home/simon/habapp/rules/test'
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | script_name = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR |
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 86 in _run_code
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | 63 | def _run_code(code, run_globals, init_globals=None,
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | 64 | mod_name=None, mod_spec=None,
[2022-07-04 09:59:56,617] [ HABApp.Rules] ERROR | 65 | pkg_name=None, script_name=None):
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | (...)
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | 77 | if pkg_name is None:
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | 78 | pkg_name = mod_spec.parent
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | 79 | run_globals.update(__name__ = mod_name,
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | 80 | __file__ = fname,
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | (...)
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | 84 | __package__ = pkg_name,
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | 85 | __spec__ = mod_spec)
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | --> 86 | exec(code, run_globals)
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | 87 | return run_globals
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | cached = None
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | code = <code object test.py at 0x7f18956c10b0, file "/home/simon/habapp/rules/test.py", line 1>
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | fname = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | init_globals = {'__HABAPP__HOOK__': <HABApp.rule.rule_hook.HABAppRuleHook object at 0x7f189c4473a0>}
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | loader = None
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | mod_name = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,618] [ HABApp.Rules] ERROR | mod_spec = None
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | pkg_name = '/home/simon/habapp/rules/test'
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | run_globals = {'__name__': '/home/simon/habapp/rules/test.py', '__doc__': None, '__package__': '/home/simon/habapp/rules/test', '__loader__': None, '__spec__': None, '__HABAPP__HOOK__': <HABApp.rule.rule_hook.HABAppRuleHook object at 0x7f189c4473a0>, '__file__': '/home/simon/habapp/rules/test.py', '__cached__': None, '__builtins__': {'__name__': 'builtins', '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__package__': '', '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), '__build_class__': <built-in function __build_class__>, '__import__': <built-in function __import__>, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'breakpoint': <built-in function breakpoint>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'compile': <built-in function compile>, 'delattr': <built-in function delattr>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'format': <built-in function format>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'aiter': <built-in function aiter>, 'len': <built-in function len>, 'locals': <built-in function locals>, 'max': <built-in function max>, 'min': <built-in function min>, 'next': <built-in function next>, 'anext': <built-in function anext>, 'oct': <built-in function oct>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'repr': <built-in function repr>, 'round': <built-in function round>, 'setattr': <built-in function setattr>, 'sorted': <built-in function sorted>, 'sum': <built-in function sum>, 'vars': <built-in function vars>, 'None': None, 'Ellipsis': Ellipsis, 'NotImplemented': NotImplemented, 'False': False, 'True': True, 'bool': <class 'bool'>, 'memoryview': <class 'memoryview'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'classmethod': <class 'classmethod'>, 'complex': <class 'complex'>, 'dict': <class 'dict'>, 'enumerate': <class 'enumerate'>, 'filter': <class 'filter'>, 'float': <class 'float'>, 'frozenset': <class 'frozenset'>, 'property': <class 'property'>, 'int': <class 'int'>, 'list': <class 'list'>, 'map': <class 'map'>, 'object': <class 'object'>, 'range': <class 'range'>, 'reversed': <class 'reversed'>, 'set': <class 'set'>, 'slice': <class 'slice'>, 'staticmethod': <class 'staticmethod'>, 'str': <class 'str'>, 'super': <class 'super'>, 'tuple': <class 'tuple'>, 'type': <class 'type'>, 'zip': <class 'zip'>, '__debug__': True, 'BaseException': <class 'BaseException'>, 'Exception': <class 'Exception'>, 'TypeError': <class 'TypeError'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'GeneratorExit': <class 'GeneratorExit'>, 'SystemExit': <class 'SystemExit'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'ImportError': <class 'ImportError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'OSError': <class 'OSError'>, 'EnvironmentError': <class 'OSError'>, 'IOError': <class 'OSError'>, 'EOFError': <class 'EOFError'>, 'RuntimeError': <class 'RuntimeError'>, 'RecursionError': <class 'RecursionError'>, 'NotImplementedError': <class 'NotImplementedError'>, 'NameError': <class 'NameError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'AttributeError': <class 'AttributeError'>, 'SyntaxError': <class 'SyntaxError'>, 'IndentationError': <class 'IndentationError'>, 'TabError': <class 'TabError'>, 'LookupError': <class 'LookupError'>, 'IndexError': <class 'IndexError'>, 'KeyError': <class 'KeyError'>, 'ValueError': <class 'ValueError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'AssertionError': <class 'AssertionError'>, 'ArithmeticError': <class 'ArithmeticError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'OverflowError': <class 'OverflowError'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, 'SystemError': <class 'SystemError'>, 'ReferenceError': <class 'ReferenceError'>, 'MemoryError': <class 'MemoryError'>, 'BufferError': <class 'BufferError'>, 'Warning': <class 'Warning'>, 'UserWarning': <class 'UserWarning'>, 'EncodingWarning': <class 'EncodingWarning'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'FutureWarning': <class 'FutureWarning'>, 'ImportWarning': <class 'ImportWarning'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'BytesWarning': <class 'BytesWarning'>, 'ResourceWarning': <class 'ResourceWarning'>, 'ConnectionError': <class 'ConnectionError'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'NotADirectoryError': <class 'NotADirectoryError'>, 'InterruptedError': <class 'InterruptedError'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'TimeoutError': <class 'TimeoutError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'copyright': Copyright (c) 2001-2022 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'license': Type license() to see the full license text, 'help': Type help() for interactive help, or help(object) for help about object.}, 'HABApp': <module 'HABApp' from '/opt/habapp/lib/python3.10/site-packages/HABApp/__init__.py'>, 'ValueUpdateEvent': <class 'HABApp.core.events.events.ValueUpdateEvent'>, 'ValueChangeEvent': <class 'HABApp.core.events.events.ValueChangeEvent'>, 'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>, 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>, 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>, 'SwitchItem': <class 'HABApp.openhab.items.switch_item.SwitchItem'>, 'ContactItem': <class 'HABApp.openhab.items.contact_item.ContactItem'>, 'DatetimeItem': <class 'HABApp.openhab.items.datetime_item.DatetimeItem'>, 'OpenhabItem': <class 'HABApp.openhab.items.base_item.OpenhabItem'>, 'MyOpenhabRule': <class '/home/simon/habapp/rules/test.py.MyOpenhabRule'>}
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | script_name = '/home/simon/habapp/rules/test.py'
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | init_globals is not None = True
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR |
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | File "/home/simon/habapp/rules/test.py", line 46 in test.py
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | 41 | print( f'{event}')
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | 43 | # interaction is available through self.openhab or self.oh
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | 44 | self.oh.post_update('ReceivedCommand', str(event))
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | --> 46 | MyOpenhabRule()
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR |
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | File "/home/simon/habapp/rules/test.py", line 17 in __init__
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | 9 | def __init__(self):
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | (...)
[2022-07-04 09:59:56,619] [ HABApp.Rules] ERROR | 13 | test_contact = OpenhabItem.get_item('KNXMotionContactStudy')
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 14 | test_date_time = DatetimeItem.get_item('KNXMotionContactStudy_LastChanged')
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 16 | # Trigger on item updates
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | --> 17 | test_contact.listen_event(self.item_state_update, ItemStateEvent)
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 18 | test_date_time.listen_event(self.item_state_update, ValueUpdateEvent)
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | self = <MyOpenhabRule>
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | test_contact = <ContactItem name: KNXMotionContactStudy, value: CLOSED, last_change: 2022-07-04T09:59:51.305180, last_update: 2022-07-04T09:59:51.305180>
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | test_date_time = <DatetimeItem name: KNXMotionContactStudy_LastChanged, value: 2022-07-04 08:06:02.512000, last_change: 2022-07-04T09:59:51.306165, last_update: 2022-07-04T09:59:51.306165>
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR |
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | File "/opt/habapp/lib/python3.10/site-packages/HABApp/core/items/base_item.py", line 94 in listen_event
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 82 | def listen_event(self, callback: HINT_EVENT_CALLBACK,
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 83 | event_filter: Optional[HINT_EVENT_FILTER_OBJ] = None) -> HINT_EVENT_BUS_LISTENER:
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 84 | """
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 85 | Register an event listener which listens to all event that the item receives
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | (...)
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 92 | :class:`~HABApp.core.events.AndFilterGroup` and :class:`~HABApp.core.events.OrFilterGroup`
[2022-07-04 09:59:56,620] [ HABApp.Rules] ERROR | 93 | """
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | --> 94 | return get_current_context().rule.listen_event(self._name, callback=callback, event_filter=event_filter)
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | event_filter = <class 'HABApp.openhab.events.item_events.ItemStateEvent'>
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | self = <ContactItem name: KNXMotionContactStudy, value: CLOSED, last_change: 2022-07-04T09:59:51.305180, last_update: 2022-07-04T09:59:51.305180>
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | self._name = 'KNXMotionContactStudy'
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | callback = <bound method MyOpenhabRule.item_state_update of <MyOpenhabRule>>
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | HINT_EVENT_CALLBACK = typing.Callable[[typing.Any], typing.Any]
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR |
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | File "/opt/habapp/lib/python3.10/site-packages/HABApp/rule/rule.py", line 120 in listen_event
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | 99 | def listen_event(self, name: Union[HINT_ITEM_OBJ, str],
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | 100 | callback: HINT_EVENT_CALLBACK,
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | 101 | event_filter: Optional[HINT_EVENT_FILTER_OBJ] = None
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | 102 | ) -> HINT_EVENT_BUS_LISTENER:
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | (...)
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | 117 | if event_filter is None:
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | 118 | event_filter = HABApp.core.events.NoEventFilter()
[2022-07-04 09:59:56,621] [ HABApp.Rules] ERROR | 119 | if not isinstance(event_filter, EventFilterBase):
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | --> 120 | raise ValueError(f'Argument event_filter must be an instance of event filter (is {event_filter})')
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | 122 | listener = ContextBoundEventBusListener(name, cb, event_filter, parent_ctx=self._habapp_ctx)
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | event_filter = <class 'HABApp.openhab.events.item_events.ItemStateEvent'>
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | self = <MyOpenhabRule>
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | self._habapp_ctx = <HABApp.rule_ctx.rule_ctx.HABAppRuleContext object at 0x7f189c447490>
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | callback = <bound method MyOpenhabRule.item_state_update of <MyOpenhabRule>>
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | cb = <HABApp.core.internals.wrapped_function.wrapped_thread.WrappedThreadFunction object at 0x7f189c447b80>
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | HINT_EVENT_CALLBACK = typing.Callable[[typing.Any], typing.Any]
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | HINT_ITEM_OBJ, str = (~HINT_ITEM_OBJ, <class 'str'>)
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | name = 'KNXMotionContactStudy'
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR |
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | Traceback (most recent call last):
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | File "/opt/habapp/lib/python3.10/site-packages/HABApp/rule_manager/rule_file.py", line 77, in load
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | self.create_rules(created_rules)
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | File "/opt/habapp/lib/python3.10/site-packages/HABApp/rule_manager/rule_file.py", line 67, in create_rules
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | runpy.run_path(str(self.path), run_name=str(self.path), init_globals=init_globals)
[2022-07-04 09:59:56,622] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 269, in run_path
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | return _run_module_code(code, init_globals, run_name,
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 96, in _run_module_code
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | _run_code(code, mod_globals, init_globals,
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | exec(code, run_globals)
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | File "/home/simon/habapp/rules/test.py", line 46, in test.py
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | MyOpenhabRule()
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | File "/home/simon/habapp/rules/test.py", line 17, in __init__
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | test_contact.listen_event(self.item_state_update, ItemStateEvent)
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | File "/opt/habapp/lib/python3.10/site-packages/HABApp/core/items/base_item.py", line 94, in listen_event
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | return get_current_context().rule.listen_event(self._name, callback=callback, event_filter=event_filter)
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | File "/opt/habapp/lib/python3.10/site-packages/HABApp/rule/rule.py", line 120, in listen_event
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | raise ValueError(f'Argument event_filter must be an instance of event filter (is {event_filter})')
[2022-07-04 09:59:56,623] [ HABApp.Rules] ERROR | ValueError: Argument event_filter must be an instance of event filter (is <class 'HABApp.openhab.events.item_events.ItemStateEvent'>)
[2022-07-04 09:59:56,624] [ HABApp.Rules] WARNING | Failed to load /home/simon/habapp/rules/test.py!
[2022-07-04 10:00:07,178] [ HABApp.Rules] WARNING | Found no instances of HABApp.Rule in /home/simon/habapp/rules/contact.py
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | +-------------------------------------------------------------------------------------------------------------------------------------------------------+
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | Things |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | +---------------+-------------------------------+----------------+-------------------------------------+------------------------------------------------+
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | Status | Label | Location | Thing type | Thing UID |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | +---------------+-------------------------------+----------------+-------------------------------------+------------------------------------------------+
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB bathroomguest | | androiddebugbridge:android | androiddebugbridge:android:bathroomguest |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB bathroommain | | androiddebugbridge:android | androiddebugbridge:android:bathroommain |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB bedroom1 | | androiddebugbridge:android | androiddebugbridge:android:bedroom1 |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB bedroom2 | | androiddebugbridge:android | androiddebugbridge:android:bedroom2 |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB bedroom3 | | androiddebugbridge:android | androiddebugbridge:android:bedroom3 |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB hallwaylarge | | androiddebugbridge:android | androiddebugbridge:android:hallwaylarge |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB kitchen | | androiddebugbridge:android | androiddebugbridge:android:kitchen |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB lounge | | androiddebugbridge:android | androiddebugbridge:android:lounge |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | ADB study | | androiddebugbridge:android | androiddebugbridge:android:study |
[2022-07-04 10:00:51,131] [ HABApp.openhab.things] INFO | | ONLINE | Astro Moon | | astro:moon | astro:moon:local |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | Astro Sun | | astro:sun | astro:sun:local |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast audio bedroom 1 | bedroom 1 | chromecast:audio | chromecast:audio:cca-bedroom1 |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast audio bedroom 2 | bedroom 2 | chromecast:audio | chromecast:audio:cca-bedroom2 |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast audio bedroom 3 | bedroom 3 | chromecast:audio | chromecast:audio:cca-bedroom3 |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast audio guestbath | bathroom guest | chromecast:audio | chromecast:audio:cca-guestbath |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast audio kitchen | kitchen | chromecast:audio | chromecast:audio:cca-kitchen |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | OFFLINE | chromecast audio lounge | lounge | chromecast:audio | chromecast:audio:cca-lounge |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast audio mainbath | bathroom main | chromecast:audio | chromecast:audio:cca-mainbath |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast audio study | study | chromecast:audio | chromecast:audio:cca-study |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | OFFLINE | chromecast audio terrace | terrace | chromecast:audio | chromecast:audio:cca-terrace |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast group all speakers | central | chromecast:audiogroup | chromecast:audiogroup:allspeakers |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast group annoucements | central | chromecast:audiogroup | chromecast:audiogroup:announcements |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast group entertaining | central | chromecast:audiogroup | chromecast:audiogroup:entertaining |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast mini mainbath | bathroom main | chromecast:chromecast | chromecast:chromecast:ccmini-bathroom |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast mini bedroom 1 | bedroom 1 | chromecast:chromecast | chromecast:chromecast:ccmini-bedroom1 |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast mini guestbath | guestbath | chromecast:chromecast | chromecast:chromecast:ccmini-guestbath |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast mini kitchen | kitchen | chromecast:chromecast | chromecast:chromecast:ccmini-kitchen |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast mini lounge | lounge | chromecast:chromecast | chromecast:chromecast:ccmini-lounge |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast mini study | study | chromecast:chromecast | chromecast:chromecast:ccmini-study |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | chromecast nvidia shield | lounge | chromecast:chromecast | chromecast:chromecast:shield |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | ONLINE | Downstairs door | | doorbird:d101 | doorbird:d101:downstairs |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | OFFLINE | hue lamp bedroom 1 | bedroom 1 | hue:0010 | hue:0010:huebridge:bedroomlamp |
[2022-07-04 10:00:51,132] [ HABApp.openhab.things] INFO | | OFFLINE | hue overhead bedroom 1 | bedroom 1 | hue:0210 | hue:0210:huebridge:bedroomoverhead |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | hue overhead kitchen | kitchen | hue:0210 | hue:0210:huebridge:kitchenoverhead |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | hue overhead lounge | lounge | hue:0210 | hue:0210:huebridge:loungeoverhead |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | hue desklamp lounge | lounge | hue:0220 | hue:0220:huebridge:desklamp |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | hue overhead dressingroom | bedroom 1 | hue:0220 | hue:0220:huebridge:dressingroom |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | UNKNOWN | hue bridge | central | hue:bridge | hue:bridge:huebridge |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | camera02 | central | ipcamera:generic | ipcamera:generic:camera02 |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | camera01 | central | ipcamera:hikvision | ipcamera:hikvision:camera01 |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | imagiSuck | | miio:vacuum | miio:vacuum:imagisuck |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | MQTT Broker | | mqtt:broker | mqtt:broker:broker |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | Irrigation | | mqtt:topic | mqtt:topic:irrigation |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | WaterLogger | | mqtt:topic | mqtt:topic:waterlogger |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | Network Simon Phone | central | network:pingdevice | network:pingdevice:simon-phone |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | Local Time | | ntp:ntp | ntp:ntp:home |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | Onkyo TX-RZ3100 Receiver | lounge | onkyo:onkyoAVR | onkyo:onkyoAVR:onkyo-receiver |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | Local Weather And Forecast | | openweathermap:weather-and-forecast | openweathermap:weather-and-forecast:api:Berlin |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | OpenWeatherMap Account | | openweathermap:weather-api | openweathermap:weather-api:api |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | pjLink projector01 | lounge | pjLinkDevice:pjLinkDevice | pjLinkDevice:pjLinkDevice:projector01 |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | UNINITIALIZED | Spotify all speakers | central | spotify:device | spotify:device:simon:spotify_all |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | UNINITIALIZED | Spotify kitchen mini | kitchen | spotify:device | spotify:device:simon:spotify_kitchen |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | UNINITIALIZED | Spotify lounge hifi | lounge | spotify:device | spotify:device:simon:spotify_loungehifi |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | UNINITIALIZED | Spotify Pixel 2 | central | spotify:device | spotify:device:simon:spotify_pixel2 |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | OFFLINE | SpotifyPlayerBridge | central | spotify:player | spotify:player:simon |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | hs110 hifi | lounge | tplinksmarthome:hs110 | tplinksmarthome:hs110:hifi |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | hs110 laptop | study | tplinksmarthome:hs110 | tplinksmarthome:hs110:laptop |
[2022-07-04 10:00:51,133] [ HABApp.openhab.things] INFO | | ONLINE | hs110 ventilation | main bath | tplinksmarthome:hs110 | tplinksmarthome:hs110:ventilation |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | ONLINE | Vallox Ventilation Unit | central | valloxmv:valloxmv | valloxmv:valloxmv:ventilation |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX Bridge | | velux:klf200 | velux:klf200:veluxgw |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX bedroom 2 left inside | bedroom 2 | velux:rollershutter | velux:rollershutter:veluxgw:b2li |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX bedroom 2 left outside | bedroom 2 | velux:rollershutter | velux:rollershutter:veluxgw:b2lo |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX bedroom 2 right inside | bedroom 2 | velux:rollershutter | velux:rollershutter:veluxgw:b2ri |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX bedroom 2 right outside | bedroom 2 | velux:rollershutter | velux:rollershutter:veluxgw:b2ro |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX bedroom 3 left inside | bedroom 3 | velux:rollershutter | velux:rollershutter:veluxgw:b3li |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX bedroom 3 left outside | bedroom 3 | velux:rollershutter | velux:rollershutter:veluxgw:b3lo |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX bedroom 3 right inside | bedroom 3 | velux:rollershutter | velux:rollershutter:veluxgw:b3ri |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX bedroom 3 right Outisde | bedroom 3 | velux:rollershutter | velux:rollershutter:veluxgw:b3ro |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX lounge left inside | lounge | velux:rollershutter | velux:rollershutter:veluxgw:lli |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX lounge left outside | lounge | velux:rollershutter | velux:rollershutter:veluxgw:llo |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX lounge middle inside | lounge | velux:rollershutter | velux:rollershutter:veluxgw:lmi |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX lounge middle outside | lounge | velux:rollershutter | velux:rollershutter:veluxgw:lmo |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX lounge right inside | lounge | velux:rollershutter | velux:rollershutter:veluxgw:lri |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX main bathroom outside | bathroom main | velux:rollershutter | velux:rollershutter:veluxgw:mbo |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX study inside | study | velux:rollershutter | velux:rollershutter:veluxgw:si |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX study outside | study | velux:rollershutter | velux:rollershutter:veluxgw:so |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX main bathroom opener | bathroom main | velux:window | velux:window:veluxgw:mb |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | | OFFLINE | VELUX hallway rooftop | hallway small | velux:window | velux:window:veluxgw:roof |
[2022-07-04 10:00:51,134] [ HABApp.openhab.things] INFO | +---------------+-------------------------------+----------------+-------------------------------------+------------------------------------------------+
[2022-07-04 10:01:35,008] [ HABApp.Rules] WARNING | Found no instances of HABApp.Rule in /home/simon/habapp/rules/contact.py
[2022-07-04 10:01:44,072] [ HABApp.Rules] ERROR | Error "'(' was never closed (contact.py, line 5)" in load:
[2022-07-04 10:01:44,072] [ HABApp.Rules] ERROR | Could not load /home/simon/habapp/rules/contact.py!
[2022-07-04 10:01:44,072] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 268 in run_path
[2022-07-04 10:01:44,072] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 10:01:44,072] [ HABApp.Rules] ERROR | 245 | def run_path(path_name, init_globals=None, run_name=None):
[2022-07-04 10:01:44,072] [ HABApp.Rules] ERROR | (...)
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | 263 | if type(importer).__name__ == 'NullImporter':
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | 264 | is_NullImporter = True
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | 265 | if isinstance(importer, type(None)) or is_NullImporter:
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | 266 | # Not a valid sys.path entry, so run the code directly
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | 267 | # execfile() doesn't help as we want to allow compiled files
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | --> 268 | code, fname = _get_code_from_file(run_name, path_name)
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | 269 | return _run_module_code(code, init_globals, run_name,
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | 270 | pkg_name=pkg_name, script_name=fname)
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 10:01:44,073] [ HABApp.Rules] ERROR | sys.path = ['/opt/habapp/bin', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/opt/habapp/lib/python3.10/site-packages']
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | importer = None
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | init_globals = {'__HABAPP__HOOK__': <HABApp.rule.rule_hook.HABAppRuleHook object at 0x7f1895144970>}
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | is_NullImporter = False
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | path_name = '/home/simon/habapp/rules/contact.py'
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | pkg_name = '/home/simon/habapp/rules/contact'
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | run_name = '/home/simon/habapp/rules/contact.py'
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR |
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 242 in _get_code_from_file
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | 233 | def _get_code_from_file(run_name, fname):
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | 234 | # Check for a compiled file first
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | (...)
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | 238 | code = read_code(f)
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | 239 | if code is None:
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | 240 | # That didn't work, so try it as normal source code
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | 241 | with io.open_code(decoded_path) as f:
[2022-07-04 10:01:44,074] [ HABApp.Rules] ERROR | --> 242 | code = compile(f.read(), fname, 'exec')
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | 243 | return code, fname
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | code = None
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | code, fname = (None, '/home/simon/habapp/rules/contact.py')
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | decoded_path = '/home/simon/habapp/rules/contact.py'
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | f = <_io.BufferedReader name='/home/simon/habapp/rules/contact.py'>
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | fname = '/home/simon/habapp/rules/contact.py'
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | run_name = '/home/simon/habapp/rules/contact.py'
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | ------------------------------------------------------------
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR |
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | --------------------------------------------------------------------------------
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | Traceback (most recent call last):
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | File "/opt/habapp/lib/python3.10/site-packages/HABApp/rule_manager/rule_file.py", line 77, in load
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | self.create_rules(created_rules)
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | File "/opt/habapp/lib/python3.10/site-packages/HABApp/rule_manager/rule_file.py", line 67, in create_rules
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | runpy.run_path(str(self.path), run_name=str(self.path), init_globals=init_globals)
[2022-07-04 10:01:44,075] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 268, in run_path
[2022-07-04 10:01:44,076] [ HABApp.Rules] ERROR | code, fname = _get_code_from_file(run_name, path_name)
[2022-07-04 10:01:44,076] [ HABApp.Rules] ERROR | File "/usr/lib/python3.10/runpy.py", line 242, in _get_code_from_file
[2022-07-04 10:01:44,076] [ HABApp.Rules] ERROR | code = compile(f.read(), fname, 'exec')
[2022-07-04 10:01:44,076] [ HABApp.Rules] ERROR | File "/home/simon/habapp/rules/contact.py", line 5
[2022-07-04 10:01:44,076] [ HABApp.Rules] ERROR | print('Contact is open!'
[2022-07-04 10:01:44,076] [ HABApp.Rules] ERROR | ^
[2022-07-04 10:01:44,076] [ HABApp.Rules] ERROR | SyntaxError: '(' was never closed
[2022-07-04 10:01:44,076] [ HABApp.Rules] WARNING | Failed to load /home/simon/habapp/rules/contact.py!
[2022-07-04 10:01:48,294] [ HABApp.Rules] WARNING | Found no instances of HABApp.Rule in /home/simon/habapp/rules/contact.py
[2022-07-04 10:02:01,867] [ HABApp.Rules] WARNING | Found no instances of HABApp.Rule in /home/simon/habapp/rules/contact.py
[2022-07-04 10:03:39,441] [ HABApp.Rules] WARNING | Found no instances of HABApp.Rule in /home/simon/habapp/rules/contact.py
[2022-07-04 10:03:58,304] [ HABApp.Rules] WARNING | Found no instances of HABApp.Rule in /home/simon/habapp/rules/contact.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment