hello,
i have installed openhabian on a rpi4b an work on oh3.4.0.m3 with installed habapp 1.0.4
i suddenly realize lots of errors in the habapp.log that appear continuosly:
[2022-10-18 11:01:14,802] [ HABApp] INFO | HABApp Version 1.0.4
[2022-10-18 11:01:14,802] [ HABApp.Config] WARN | Replaced class for handler "HABApp_default" with HABApp.config.logging.MidnightRotatingFileHandler
[2022-10-18 11:01:14,802] [ HABApp.Config] WARN | Replaced class for handler "My_HABApp_default" with HABApp.config.logging.MidnightRotatingFileHandler
[2022-10-18 11:01:14,866] [ HABApp.mqtt.connection] INFO | MQTT disabled
[2022-10-18 11:01:14,992] [HABApp.openhab.connection] INFO | Connected to OpenHAB version 3.4.0.M3 (Milestone Build)
[2022-10-18 11:01:15,933] [ HABApp.openhab.items] INFO | Updated 584 Items
[2022-10-18 11:01:16,241] [ HABApp.openhab.items] INFO | Updated 257 Things
[2022-10-18 11:01:16,877] [ HABApp.EventBus] INFO | iSl_pac: <ItemStateEvent name: iSl_pac, value: 8560>
[2022-10-18 11:01:16,882] [ HABApp.EventBus] INFO | iSl_pac: <ItemStateChangedEvent name: iSl_pac, value: 8560, old_value: 8527>
[2022-10-18 11:01:16,885] [ HABApp.EventBus] INFO | iSl_yieldday: <ItemStateEvent name: iSl_yieldday, value: 11571>
[2022-10-18 11:01:16,887] [ HABApp.EventBus] INFO | solarlog:meter:pv: <ThingStatusInfoEvent name: solarlog:meter:pv, status: ONLINE, detail: None>
[2022-10-18 11:01:16,888] [ HABApp.EventBus] INFO | iSl_yieldday: <ItemStateChangedEvent name: iSl_yieldday, value: 11571, old_value: 11500>
[2022-10-18 11:01:23,654] [ HABApp] ERROR | Error 'topic' in on_sse_event:
[2022-10-18 11:01:23,654] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 31 in on_sse_event
[2022-10-18 11:01:23,654] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:23,654] [ HABApp] ERROR | 28 | def on_sse_event(event_dict: dict):
[2022-10-18 11:01:23,654] [ HABApp] ERROR | 29 | try:
[2022-10-18 11:01:23,655] [ HABApp] ERROR | 30 | # Lookup corresponding OpenHAB event
[2022-10-18 11:01:23,655] [ HABApp] ERROR | --> 31 | event = get_event(event_dict)
[2022-10-18 11:01:23,655] [ HABApp] ERROR | 33 | # Update item in registry BEFORE posting to the event bus
[2022-10-18 11:01:23,655] [ HABApp] ERROR | 34 | # so the items have the correct state when we process the event in a rule
[2022-10-18 11:01:23,655] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:23,655] [ HABApp] ERROR | (ItemAddedEvent, ItemUpdatedEvent) = (<class 'HABApp.openhab.events.item_events.ItemAddedEvent'>, <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>)
[2022-10-18 11:01:23,655] [ HABApp] ERROR | (ThingStatusInfoEvent, ThingUpdatedEvent) = (<class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>, <class 'HABApp.openhab.events.thing_events.ThingUpdatedEvent'>)
[2022-10-18 11:01:23,656] [ HABApp] ERROR | e = KeyError('topic')
[2022-10-18 11:01:23,656] [ HABApp] ERROR | event_dict = {'type': 'ALIVE', 'interval': 10}
[2022-10-18 11:01:23,656] [ HABApp] ERROR | log = <Logger HABApp.openhab.connection (INFO)>
[2022-10-18 11:01:23,656] [ HABApp] ERROR | TOPIC_ITEMS = 'openHAB.Items'
[2022-10-18 11:01:23,656] [ HABApp] ERROR | TOPIC_THINGS = 'openHAB.Things'
[2022-10-18 11:01:23,656] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:23,656] [ HABApp] ERROR |
[2022-10-18 11:01:23,657] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 31 in get_event
[2022-10-18 11:01:23,657] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:23,657] [ HABApp] ERROR | 29 | def get_event(_in_dict: dict) -> OpenhabEvent:
[2022-10-18 11:01:23,657] [ HABApp] ERROR | 30 | event_type: str = _in_dict['type']
[2022-10-18 11:01:23,657] [ HABApp] ERROR | --> 31 | topic: str = _in_dict['topic']
[2022-10-18 11:01:23,657] [ HABApp] ERROR | 33 | # Workaround for None values in the payload str
[2022-10-18 11:01:23,658] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:23,658] [ HABApp] ERROR | _events = {'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>, 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>, 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>, 'ItemAddedEvent': <class 'HABApp.openhab.events.item_events.ItemAddedEvent'>, 'ItemUpdatedEvent': <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>, 'ItemRemovedEvent': <class 'HABApp.openhab.events.item_events.ItemRemovedEvent'>, 'ItemStatePredictedEvent': <class 'HABApp.openhab.events.item_events.ItemStatePredictedEvent'>, 'GroupItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.GroupItemStateChangedEvent'>, 'ChannelTriggeredEvent': <class 'HABApp.openhab.events.channel_events.ChannelTriggeredEvent'>, 'ChannelDescriptionChangedEvent': <class 'HABApp.openhab.events.channel_events.ChannelDescriptionChangedEvent'>, 'ThingAddedEvent': <class 'HABApp.openhab.events.thing_events.ThingAddedEvent'>, 'ThingRemovedEvent': <class 'HABApp.openhab.events.thing_events.ThingRemovedEvent'>, 'ThingUpdatedEvent': <class 'HABApp.openhab.events.thing_events.ThingUpdatedEvent'>, 'ThingStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>, 'ThingStatusInfoChangedEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoChangedEvent'>, 'ThingFirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>, 'FirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>}
[2022-10-18 11:01:23,658] [ HABApp] ERROR | _in_dict = {'type': 'ALIVE', 'interval': 10}
[2022-10-18 11:01:23,658] [ HABApp] ERROR | _in_dict['type'] = 'ALIVE'
[2022-10-18 11:01:23,658] [ HABApp] ERROR | event_type = 'ALIVE'
[2022-10-18 11:01:23,658] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:23,659] [ HABApp] ERROR |
[2022-10-18 11:01:23,659] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:23,659] [ HABApp] ERROR | Traceback (most recent call last):
[2022-10-18 11:01:23,659] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 31, in on_sse_event
[2022-10-18 11:01:23,659] [ HABApp] ERROR | event = get_event(event_dict)
[2022-10-18 11:01:23,659] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 31, in get_event
[2022-10-18 11:01:23,659] [ HABApp] ERROR | topic: str = _in_dict['topic']
[2022-10-18 11:01:23,660] [ HABApp] ERROR | KeyError: 'topic'
[2022-10-18 11:01:23,660] [ HABApp.EventBus] INFO | HABApp.Errors: <HABAppException func_name: on_sse_event, exception: 'topic'>
[2022-10-18 11:01:33,536] [ HABApp] ERROR | Error 'topic' in on_sse_event:
[2022-10-18 11:01:33,536] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 31 in on_sse_event
[2022-10-18 11:01:33,536] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:33,537] [ HABApp] ERROR | 28 | def on_sse_event(event_dict: dict):
[2022-10-18 11:01:33,537] [ HABApp] ERROR | 29 | try:
[2022-10-18 11:01:33,537] [ HABApp] ERROR | 30 | # Lookup corresponding OpenHAB event
[2022-10-18 11:01:33,537] [ HABApp] ERROR | --> 31 | event = get_event(event_dict)
[2022-10-18 11:01:33,537] [ HABApp] ERROR | 33 | # Update item in registry BEFORE posting to the event bus
[2022-10-18 11:01:33,537] [ HABApp] ERROR | 34 | # so the items have the correct state when we process the event in a rule
[2022-10-18 11:01:33,538] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:33,538] [ HABApp] ERROR | (ItemAddedEvent, ItemUpdatedEvent) = (<class 'HABApp.openhab.events.item_events.ItemAddedEvent'>, <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>)
[2022-10-18 11:01:33,538] [ HABApp] ERROR | (ThingStatusInfoEvent, ThingUpdatedEvent) = (<class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>, <class 'HABApp.openhab.events.thing_events.ThingUpdatedEvent'>)
[2022-10-18 11:01:33,538] [ HABApp] ERROR | e = KeyError('topic')
[2022-10-18 11:01:33,538] [ HABApp] ERROR | event_dict = {'type': 'ALIVE', 'interval': 10}
[2022-10-18 11:01:33,538] [ HABApp] ERROR | log = <Logger HABApp.openhab.connection (INFO)>
[2022-10-18 11:01:33,538] [ HABApp] ERROR | TOPIC_ITEMS = 'openHAB.Items'
[2022-10-18 11:01:33,538] [ HABApp] ERROR | TOPIC_THINGS = 'openHAB.Things'
[2022-10-18 11:01:33,539] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:33,539] [ HABApp] ERROR |
[2022-10-18 11:01:33,539] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 31 in get_event
[2022-10-18 11:01:33,539] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:33,539] [ HABApp] ERROR | 29 | def get_event(_in_dict: dict) -> OpenhabEvent:
[2022-10-18 11:01:33,539] [ HABApp] ERROR | 30 | event_type: str = _in_dict['type']
[2022-10-18 11:01:33,539] [ HABApp] ERROR | --> 31 | topic: str = _in_dict['topic']
[2022-10-18 11:01:33,539] [ HABApp] ERROR | 33 | # Workaround for None values in the payload str
[2022-10-18 11:01:33,540] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:33,540] [ HABApp] ERROR | _events = {'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>, 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>, 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>, 'ItemAddedEvent': <class 'HABApp.openhab.events.item_events.ItemAddedEvent'>, 'ItemUpdatedEvent': <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>, 'ItemRemovedEvent': <class 'HABApp.openhab.events.item_events.ItemRemovedEvent'>, 'ItemStatePredictedEvent': <class 'HABApp.openhab.events.item_events.ItemStatePredictedEvent'>, 'GroupItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.GroupItemStateChangedEvent'>, 'ChannelTriggeredEvent': <class 'HABApp.openhab.events.channel_events.ChannelTriggeredEvent'>, 'ChannelDescriptionChangedEvent': <class 'HABApp.openhab.events.channel_events.ChannelDescriptionChangedEvent'>, 'ThingAddedEvent': <class 'HABApp.openhab.events.thing_events.ThingAddedEvent'>, 'ThingRemovedEvent': <class 'HABApp.openhab.events.thing_events.ThingRemovedEvent'>, 'ThingUpdatedEvent': <class 'HABApp.openhab.events.thing_events.ThingUpdatedEvent'>, 'ThingStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>, 'ThingStatusInfoChangedEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoChangedEvent'>, 'ThingFirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>, 'FirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>}
[2022-10-18 11:01:33,540] [ HABApp] ERROR | _in_dict = {'type': 'ALIVE', 'interval': 10}
[2022-10-18 11:01:33,540] [ HABApp] ERROR | _in_dict['type'] = 'ALIVE'
[2022-10-18 11:01:33,540] [ HABApp] ERROR | event_type = 'ALIVE'
[2022-10-18 11:01:33,540] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:33,540] [ HABApp] ERROR |
[2022-10-18 11:01:33,541] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:33,541] [ HABApp] ERROR | Traceback (most recent call last):
[2022-10-18 11:01:33,541] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 31, in on_sse_event
[2022-10-18 11:01:33,541] [ HABApp] ERROR | event = get_event(event_dict)
[2022-10-18 11:01:33,541] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 31, in get_event
[2022-10-18 11:01:33,541] [ HABApp] ERROR | topic: str = _in_dict['topic']
[2022-10-18 11:01:33,541] [ HABApp] ERROR | KeyError: 'topic'
[2022-10-18 11:01:33,541] [ HABApp.EventBus] INFO | HABApp.Errors: <HABAppException func_name: on_sse_event, exception: 'topic'>
[2022-10-18 11:01:43,535] [ HABApp] ERROR | Error 'topic' in on_sse_event:
[2022-10-18 11:01:43,535] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 31 in on_sse_event
[2022-10-18 11:01:43,535] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:43,536] [ HABApp] ERROR | 28 | def on_sse_event(event_dict: dict):
[2022-10-18 11:01:43,536] [ HABApp] ERROR | 29 | try:
[2022-10-18 11:01:43,536] [ HABApp] ERROR | 30 | # Lookup corresponding OpenHAB event
[2022-10-18 11:01:43,536] [ HABApp] ERROR | --> 31 | event = get_event(event_dict)
[2022-10-18 11:01:43,537] [ HABApp] ERROR | 33 | # Update item in registry BEFORE posting to the event bus
[2022-10-18 11:01:43,537] [ HABApp] ERROR | 34 | # so the items have the correct state when we process the event in a rule
[2022-10-18 11:01:43,537] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:43,537] [ HABApp] ERROR | (ItemAddedEvent, ItemUpdatedEvent) = (<class 'HABApp.openhab.events.item_events.ItemAddedEvent'>, <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>)
[2022-10-18 11:01:43,537] [ HABApp] ERROR | (ThingStatusInfoEvent, ThingUpdatedEvent) = (<class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>, <class 'HABApp.openhab.events.thing_events.ThingUpdatedEvent'>)
[2022-10-18 11:01:43,538] [ HABApp] ERROR | e = KeyError('topic')
[2022-10-18 11:01:43,538] [ HABApp] ERROR | event_dict = {'type': 'ALIVE', 'interval': 10}
[2022-10-18 11:01:43,538] [ HABApp] ERROR | log = <Logger HABApp.openhab.connection (INFO)>
[2022-10-18 11:01:43,538] [ HABApp] ERROR | TOPIC_ITEMS = 'openHAB.Items'
[2022-10-18 11:01:43,538] [ HABApp] ERROR | TOPIC_THINGS = 'openHAB.Things'
[2022-10-18 11:01:43,538] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:43,539] [ HABApp] ERROR |
[2022-10-18 11:01:43,539] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 31 in get_event
[2022-10-18 11:01:43,539] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:43,539] [ HABApp] ERROR | 29 | def get_event(_in_dict: dict) -> OpenhabEvent:
[2022-10-18 11:01:43,539] [ HABApp] ERROR | 30 | event_type: str = _in_dict['type']
[2022-10-18 11:01:43,539] [ HABApp] ERROR | --> 31 | topic: str = _in_dict['topic']
[2022-10-18 11:01:43,539] [ HABApp] ERROR | 33 | # Workaround for None values in the payload str
[2022-10-18 11:01:43,540] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:43,540] [ HABApp] ERROR | _events = {'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>, 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>, 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>, 'ItemAddedEvent': <class 'HABApp.openhab.events.item_events.ItemAddedEvent'>, 'ItemUpdatedEvent': <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>, 'ItemRemovedEvent': <class 'HABApp.openhab.events.item_events.ItemRemovedEvent'>, 'ItemStatePredictedEvent': <class 'HABApp.openhab.events.item_events.ItemStatePredictedEvent'>, 'GroupItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.GroupItemStateChangedEvent'>, 'ChannelTriggeredEvent': <class 'HABApp.openhab.events.channel_events.ChannelTriggeredEvent'>, 'ChannelDescriptionChangedEvent': <class 'HABApp.openhab.events.channel_events.ChannelDescriptionChangedEvent'>, 'ThingAddedEvent': <class 'HABApp.openhab.events.thing_events.ThingAddedEvent'>, 'ThingRemovedEvent': <class 'HABApp.openhab.events.thing_events.ThingRemovedEvent'>, 'ThingUpdatedEvent': <class 'HABApp.openhab.events.thing_events.ThingUpdatedEvent'>, 'ThingStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>, 'ThingStatusInfoChangedEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoChangedEvent'>, 'ThingFirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>, 'FirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>}
[2022-10-18 11:01:43,540] [ HABApp] ERROR | _in_dict = {'type': 'ALIVE', 'interval': 10}
[2022-10-18 11:01:43,540] [ HABApp] ERROR | _in_dict['type'] = 'ALIVE'
[2022-10-18 11:01:43,540] [ HABApp] ERROR | event_type = 'ALIVE'
[2022-10-18 11:01:43,540] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:43,541] [ HABApp] ERROR |
[2022-10-18 11:01:43,541] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:43,541] [ HABApp] ERROR | Traceback (most recent call last):
[2022-10-18 11:01:43,541] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 31, in on_sse_event
[2022-10-18 11:01:43,541] [ HABApp] ERROR | event = get_event(event_dict)
[2022-10-18 11:01:43,541] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 31, in get_event
[2022-10-18 11:01:43,541] [ HABApp] ERROR | topic: str = _in_dict['topic']
[2022-10-18 11:01:43,542] [ HABApp] ERROR | KeyError: 'topic'
[2022-10-18 11:01:43,542] [ HABApp.EventBus] INFO | HABApp.Errors: <HABAppException func_name: on_sse_event, exception: 'topic'>
[2022-10-18 11:01:46,946] [ HABApp.EventBus] INFO | iSl_pac: <ItemStateEvent name: iSl_pac, value: 8576>
[2022-10-18 11:01:46,951] [ HABApp.EventBus] INFO | iSl_yieldday: <ItemStateEvent name: iSl_yieldday, value: 11642>
[2022-10-18 11:01:46,953] [ HABApp.EventBus] INFO | iSl_pac: <ItemStateChangedEvent name: iSl_pac, value: 8576, old_value: 8560>
[2022-10-18 11:01:46,955] [ HABApp.EventBus] INFO | solarlog:meter:pv: <ThingStatusInfoEvent name: solarlog:meter:pv, status: ONLINE, detail: None>
[2022-10-18 11:01:46,956] [ HABApp.EventBus] INFO | iSl_yieldday: <ItemStateChangedEvent name: iSl_yieldday, value: 11642, old_value: 11571>
[2022-10-18 11:01:53,535] [ HABApp] ERROR | Error 'topic' in on_sse_event:
[2022-10-18 11:01:53,536] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 31 in on_sse_event
[2022-10-18 11:01:53,536] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:53,536] [ HABApp] ERROR | 28 | def on_sse_event(event_dict: dict):
[2022-10-18 11:01:53,536] [ HABApp] ERROR | 29 | try:
[2022-10-18 11:01:53,537] [ HABApp] ERROR | 30 | # Lookup corresponding OpenHAB event
[2022-10-18 11:01:53,537] [ HABApp] ERROR | --> 31 | event = get_event(event_dict)
[2022-10-18 11:01:53,537] [ HABApp] ERROR | 33 | # Update item in registry BEFORE posting to the event bus
[2022-10-18 11:01:53,537] [ HABApp] ERROR | 34 | # so the items have the correct state when we process the event in a rule
[2022-10-18 11:01:53,538] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:53,538] [ HABApp] ERROR | (ItemAddedEvent, ItemUpdatedEvent) = (<class 'HABApp.openhab.events.item_events.ItemAddedEvent'>, <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>)
[2022-10-18 11:01:53,538] [ HABApp] ERROR | (ThingStatusInfoEvent, ThingUpdatedEvent) = (<class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>, <class 'HABApp.openhab.events.thing_events.ThingUpdatedEvent'>)
[2022-10-18 11:01:53,538] [ HABApp] ERROR | e = KeyError('topic')
[2022-10-18 11:01:53,539] [ HABApp] ERROR | event_dict = {'type': 'ALIVE', 'interval': 10}
[2022-10-18 11:01:53,539] [ HABApp] ERROR | log = <Logger HABApp.openhab.connection (INFO)>
[2022-10-18 11:01:53,539] [ HABApp] ERROR | TOPIC_ITEMS = 'openHAB.Items'
[2022-10-18 11:01:53,539] [ HABApp] ERROR | TOPIC_THINGS = 'openHAB.Things'
[2022-10-18 11:01:53,539] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:53,540] [ HABApp] ERROR |
[2022-10-18 11:01:53,540] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 31 in get_event
[2022-10-18 11:01:53,540] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:53,540] [ HABApp] ERROR | 29 | def get_event(_in_dict: dict) -> OpenhabEvent:
[2022-10-18 11:01:53,541] [ HABApp] ERROR | 30 | event_type: str = _in_dict['type']
[2022-10-18 11:01:53,541] [ HABApp] ERROR | --> 31 | topic: str = _in_dict['topic']
[2022-10-18 11:01:53,541] [ HABApp] ERROR | 33 | # Workaround for None values in the payload str
[2022-10-18 11:01:53,541] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:53,542] [ HABApp] ERROR | _events = {'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>, 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>, 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>, 'ItemAddedEvent': <class 'HABApp.openhab.events.item_events.ItemAddedEvent'>, 'ItemUpdatedEvent': <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>, 'ItemRemovedEvent': <class 'HABApp.openhab.events.item_events.ItemRemovedEvent'>, 'ItemStatePredictedEvent': <class 'HABApp.openhab.events.item_events.ItemStatePredictedEvent'>, 'GroupItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.GroupItemStateChangedEvent'>, 'ChannelTriggeredEvent': <class 'HABApp.openhab.events.channel_events.ChannelTriggeredEvent'>, 'ChannelDescriptionChangedEvent': <class 'HABApp.openhab.events.channel_events.ChannelDescriptionChangedEvent'>, 'ThingAddedEvent': <class 'HABApp.openhab.events.thing_events.ThingAddedEvent'>, 'ThingRemovedEvent': <class 'HABApp.openhab.events.thing_events.ThingRemovedEvent'>, 'ThingUpdatedEvent': <class 'HABApp.openhab.events.thing_events.ThingUpdatedEvent'>, 'ThingStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>, 'ThingStatusInfoChangedEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoChangedEvent'>, 'ThingFirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>, 'FirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>}
[2022-10-18 11:01:53,542] [ HABApp] ERROR | _in_dict = {'type': 'ALIVE', 'interval': 10}
[2022-10-18 11:01:53,542] [ HABApp] ERROR | _in_dict['type'] = 'ALIVE'
[2022-10-18 11:01:53,542] [ HABApp] ERROR | event_type = 'ALIVE'
[2022-10-18 11:01:53,543] [ HABApp] ERROR | ------------------------------------------------------------
[2022-10-18 11:01:53,543] [ HABApp] ERROR |
[2022-10-18 11:01:53,543] [ HABApp] ERROR | --------------------------------------------------------------------------------
[2022-10-18 11:01:53,543] [ HABApp] ERROR | Traceback (most recent call last):
[2022-10-18 11:01:53,544] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 31, in on_sse_event
[2022-10-18 11:01:53,544] [ HABApp] ERROR | event = get_event(event_dict)
[2022-10-18 11:01:53,544] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 31, in get_event
[2022-10-18 11:01:53,544] [ HABApp] ERROR | topic: str = _in_dict['topic']
[2022-10-18 11:01:53,544] [ HABApp] ERROR | KeyError: 'topic'
i tried without success:
- uninstalled habapp, deleted folder /opt/habapp and installed again
- disabled my mqtt-things and 1wire-things
- removed all rule files from habapp folder /rules and /lib
sorry i am lost with this error messages and would be glad if somebody could help me to eliminate them. thanks in advance