I have Logreader installed with a rule which sends me an email on ERROR log entries. I am trying to blacklist the error for the cloud connection. This is the error:
[io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance
I put that in the LogReader Thing configuration blacklist window:
[io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance
I didn’t change anything with the configuration other than adding that error to the blacklist pattern:
${OPENHAB_LOGDIR}/openhab.log
Required Path to log file. Empty will default to ${OPENHAB_LOGDIR}/openhab.log
Refresh Rate
1000
Refresh rate in milliseconds for reading logs
Error Patterns
ERROR+
Search patterns separated by | character for error events. Empty will default to ERROR+
Error Blacklisting Patterns
[io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance
Search patterns for blacklisting unwanted error events separated by | character.
Warning Patterns
WARN+
Search patterns separated by | character for warning events. Empty will default to WARN+
Warning Blacklisting Patterns
Search patterns for blacklisting unwanted warning events separated by | character.
Custom Patterns
Search patterns separated by | character for custom events.
Custom Blacklisting Patterns
Search patterns for blacklisting unwanted custom events separated by | character.
I have a rule which is doing the exact opposite of your approach… I want to get the event whenever my myopenhab cloud account gets connected/disconnected to send a message to my phone. So the difference is only, that I have a custom pattern and not a blacklist pattern:
Disconnected from the openHAB Cloud service|Connected to the openHAB Cloud service
Btw: I think you don’t want get any of those errors so you have to put both connecting and disconnection to your blacklist pattern