Homekit not working properly

Here’s my filter setting.
As you notice i only filter for text.

# custom filter 
log4j2.appender.event.filter.uselessjunk.type = RegexFilter
log4j2.appender.event.filter.uselessjunk.regex = .*(CurrentDate|astro|Weather|CPU|Memory|Battery|Elevation|Radiation|Azimuth|Storage|Wind|Feel|Observation|LastUpdate|Precip|Humidity|Dewpoint|Pressure).*
log4j2.appender.event.filter.uselessjunk.onMatch = DENY
log4j2.appender.event.filter.uselessjunk.onMisMatch = ACCEPT
log4j2.logger.org_openhab_persistence_mapdb.level = DEBUG
log4j2.logger.org_openhab_persistence_mapdb.name = org.openhab.persistence.mapdb
log4j2.logger.veclimatecontrolschedulecommandclass.level = WARN
log4j2.logger.veclimatecontrolschedulecommandclass.name = veClimateControlScheduleCommandClass
log4j2.logger.org_openhab_binding_zwave_internal_protocol_commandclass_zwaveclimatecontrolschedulecommandclass.level = WARN
log4j2.logger.org_openhab_binding_zwave_internal_protocol_commandclass_zwaveclimatecontrolschedulecommandclass.name = org.openhab.binding.zwave.internal.protocol.commandclass.ZWaveClimateControlScheduleCommandClass

EDIT:
Pretty much the same.
I think it may be because of the spaces, but i am not sure.

I just came around this thread and it took me a while to figure out a good setting. Here is the complete shortcut:

edit the logging settings
nano /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg

add this at the end of the file

# filter homekit-bugs in events (https://community.openhab.org/t/homekit-not-working-properly/15259/43)
log4j2.appender.event.filter.floodstop.type = RegexFilter
log4j2.appender.event.filter.floodstop.regex = .*((Exception in binary handler)|(Exception caught in web handler)).*
log4j2.appender.event.filter.floodstop.onMatch = DENY
log4j2.appender.event.filter.floodstop.onMisMatch = ACCEPT
# filter homekit-bugs in logs (https://community.openhab.org/t/solved-filter-log-messages/47593/5)
log4j2.appender.out.filter.floodstop.type = RegexFilter
log4j2.appender.out.filter.floodstop.regex = .*((Exception in binary handler)|(Exception caught in web handler)).*
log4j2.appender.out.filter.floodstop.onMatch = DENY
log4j2.appender.out.filter.floodstop.onMisMatch = ACCEPT

Not sure about this, but I think I need to restart openhab afterwards:
sudo systemctl restart openhab2.service

2 Likes

Has anyone solved this?
With Latest OH2.x and Homekit 2.9 bundle I have the same errors, and then Homekit is not working:

server.impl.http.impl.BinaryHandler] - Exception in binary handler

Andrea