Hi,
Iāve been running with 3.3 for a while now and itās only one of the recent builds that has caused this.
Iām still digging into it and now get the following errors (whilst āplayingā around with the HabApp code):
[2022-06-18 22:06:39,506] [ HABApp] ERROR | Error Unknown Event: ALIVE for {'type': 'ALIVE'} in on_sse_event:
[2022-06-18 22:06:39,507] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 52, in get_event
[2022-06-18 22:06:39,507] [ HABApp] ERROR | 30 def get_event(_in_dict: dict):
[2022-06-18 22:06:39,508] [ HABApp] ERROR | (...)
[2022-06-18 22:06:39,509] [ HABApp] ERROR | 48
[2022-06-18 22:06:39,509] [ HABApp] ERROR | 49
[2022-06-18 22:06:39,510] [ HABApp] ERROR | 50 # Find event from implemented events
[2022-06-18 22:06:39,510] [ HABApp] ERROR | 51 try:
[2022-06-18 22:06:39,510] [ HABApp] ERROR | --> 52 return __event_lookup[event_type].from_dict(topic, payload)
[2022-06-18 22:06:39,511] [ HABApp] ERROR | 53 except KeyError:
[2022-06-18 22:06:39,511] [ HABApp] ERROR | ..................................................
[2022-06-18 22:06:39,511] [ HABApp] ERROR | _in_dict = {'type': 'ALIVE'}
[2022-06-18 22:06:39,512] [ HABApp] ERROR | __event_lookup = {'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>,
[2022-06-18 22:06:39,512] [ HABApp] ERROR | 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>,
[2022-06-18 22:06:39,512] [ HABApp] ERROR | 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>,
[2022-06-18 22:06:39,513] [ HABApp] ERROR | 'ItemAddedEvent': <class 'HABApp.openhab.events.item_events.ItemAddedEvent'>,
[2022-06-18 22:06:39,513] [ HABApp] ERROR | 'ItemUpdatedEvent': <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>,
[2022-06-18 22:06:39,513] [ HABApp] ERROR | 'ItemRemovedEvent': <class 'HABApp.openhab.events.item_events.ItemRemovedEvent'>,
[2022-06-18 22:06:39,513] [ HABApp] ERROR | 'ItemStatePredictedEvent': <class 'HABApp.openhab.events.item_events.ItemStatePredictedEvent'>,
[2022-06-18 22:06:39,514] [ HABApp] ERROR | 'GroupItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.GroupItemStateChangedEvent'>,
[2022-06-18 22:06:39,514] [ HABApp] ERROR | 'ChannelTriggeredEvent': <class 'HABApp.openhab.events.channel_events.ChannelTriggeredEvent'>,
[2022-06-18 22:06:39,514] [ HABApp] ERROR | 'ThingStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>,
[2022-06-18 22:06:39,515] [ HABApp] ERROR | 'ThingStatusInfoChangedEv...: <class 'HABApp.openhab.events.thing_events.ThingStatusInfoChangedEvent'>,
[2022-06-18 22:06:39,515] [ HABApp] ERROR | 'ThingFirmwareStatusInfoE...: <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>,
[2022-06-18 22:06:39,515] [ HABApp] ERROR | 'ConfigStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingConfigStatusInfoEvent'>,
[2022-06-18 22:06:39,515] [ HABApp] ERROR | 'FirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>}
[2022-06-18 22:06:39,516] [ HABApp] ERROR | event_type = 'ALIVE'
[2022-06-18 22:06:39,516] [ HABApp] ERROR | ..................................................
[2022-06-18 22:06:39,516] [ HABApp] ERROR |
[2022-06-18 22:06:39,517] [ HABApp] ERROR | KeyError: 'ALIVE'
[2022-06-18 22:06:39,517] [ HABApp] ERROR |
[2022-06-18 22:06:39,517] [ HABApp] ERROR | While handling the above exception, another exception occurred:
[2022-06-18 22:06:39,517] [ HABApp] ERROR |
[2022-06-18 22:06:39,518] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/connection_handler/sse_handler.py", line 25, in on_sse_event
[2022-06-18 22:06:39,518] [ HABApp] ERROR | 22 def on_sse_event(event_dict: dict):
[2022-06-18 22:06:39,518] [ HABApp] ERROR | 23 try:
[2022-06-18 22:06:39,519] [ HABApp] ERROR | 24 # Lookup corresponding OpenHAB event
[2022-06-18 22:06:39,519] [ HABApp] ERROR | --> 25 event = get_event(event_dict)
[2022-06-18 22:06:39,519] [ HABApp] ERROR | 26
[2022-06-18 22:06:39,520] [ HABApp] ERROR | ..................................................
[2022-06-18 22:06:39,520] [ HABApp] ERROR | event_dict = {'type': 'ALIVE'}
[2022-06-18 22:06:39,520] [ HABApp] ERROR | ..................................................
[2022-06-18 22:06:39,521] [ HABApp] ERROR |
[2022-06-18 22:06:39,521] [ HABApp] ERROR | File "/opt/habapp/lib/python3.9/site-packages/HABApp/openhab/map_events.py", line 54, in get_event
[2022-06-18 22:06:39,521] [ HABApp] ERROR | 30 def get_event(_in_dict: dict):
[2022-06-18 22:06:39,522] [ HABApp] ERROR | (...)
[2022-06-18 22:06:39,522] [ HABApp] ERROR | 50 # Find event from implemented events
[2022-06-18 22:06:39,522] [ HABApp] ERROR | 51 try:
[2022-06-18 22:06:39,523] [ HABApp] ERROR | 52 return __event_lookup[event_type].from_dict(topic, payload)
[2022-06-18 22:06:39,523] [ HABApp] ERROR | 53 except KeyError:
[2022-06-18 22:06:39,523] [ HABApp] ERROR | --> 54 raise ValueError(f'Unknown Event: {event_type:s} for {_in_dict}')
[2022-06-18 22:06:39,524] [ HABApp] ERROR | ..................................................
[2022-06-18 22:06:39,524] [ HABApp] ERROR | _in_dict = {'type': 'ALIVE'}
[2022-06-18 22:06:39,524] [ HABApp] ERROR | __event_lookup = {'ItemStateEvent': <class 'HABApp.openhab.events.item_events.ItemStateEvent'>,
[2022-06-18 22:06:39,525] [ HABApp] ERROR | 'ItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.ItemStateChangedEvent'>,
[2022-06-18 22:06:39,525] [ HABApp] ERROR | 'ItemCommandEvent': <class 'HABApp.openhab.events.item_events.ItemCommandEvent'>,
[2022-06-18 22:06:39,525] [ HABApp] ERROR | 'ItemAddedEvent': <class 'HABApp.openhab.events.item_events.ItemAddedEvent'>,
[2022-06-18 22:06:39,525] [ HABApp] ERROR | 'ItemUpdatedEvent': <class 'HABApp.openhab.events.item_events.ItemUpdatedEvent'>,
[2022-06-18 22:06:39,526] [ HABApp] ERROR | 'ItemRemovedEvent': <class 'HABApp.openhab.events.item_events.ItemRemovedEvent'>,
[2022-06-18 22:06:39,526] [ HABApp] ERROR | 'ItemStatePredictedEvent': <class 'HABApp.openhab.events.item_events.ItemStatePredictedEvent'>,
[2022-06-18 22:06:39,526] [ HABApp] ERROR | 'GroupItemStateChangedEvent': <class 'HABApp.openhab.events.item_events.GroupItemStateChangedEvent'>,
[2022-06-18 22:06:39,527] [ HABApp] ERROR | 'ChannelTriggeredEvent': <class 'HABApp.openhab.events.channel_events.ChannelTriggeredEvent'>,
[2022-06-18 22:06:39,527] [ HABApp] ERROR | 'ThingStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingStatusInfoEvent'>,
[2022-06-18 22:06:39,527] [ HABApp] ERROR | 'ThingStatusInfoChangedEv...: <class 'HABApp.openhab.events.thing_events.ThingStatusInfoChangedEvent'>,
[2022-06-18 22:06:39,527] [ HABApp] ERROR | 'ThingFirmwareStatusInfoE...: <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>,
[2022-06-18 22:06:39,528] [ HABApp] ERROR | 'ConfigStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingConfigStatusInfoEvent'>,
[2022-06-18 22:06:39,528] [ HABApp] ERROR | 'FirmwareStatusInfoEvent': <class 'HABApp.openhab.events.thing_events.ThingFirmwareStatusInfoEvent'>}
[2022-06-18 22:06:39,528] [ HABApp] ERROR | event_type = 'ALIVE'
[2022-06-18 22:06:39,529] [ HABApp] ERROR | ..................................................
[2022-06-18 22:06:39,529] [ HABApp] ERROR |
[2022-06-18 22:06:39,530] [ HABApp] ERROR | ValueError: Unknown Event: ALIVE for {'type': 'ALIVE'}
Has there possibly been a new āALIVEā event type added in OpenHab over the last few days/weeks?
Thanks,
Richie