Transform Map, tons of warnings in log for unmatched values

This is working for me, but generating a ton of warnings in logs. I have dozens of images and strings that update habpanel displays around the house. I have transform maps that will change UNDEF and NULL to a base64 encoded “offline” image for image items and a URL for similar image for String items.

This works perfectly, any time the images become undefined or null they get updated properly. However any time they get updated with valid data, I get a warning in the logs.

2022-06-26 11:50:03.011 [WARN ] [al.profiles.MapTransformationProfile] - Could not transform state ‘raw type (image/jpeg): 342740 bytes’ with function ‘zoneimage.map’ and format ‘%s’

or

the same with the url.

Can transform maps be configured to only map on specific values, and simply ignore (for logging) anything not matching?

zoneurl.map
UNDEF=http://10.0.10.231:8080/static/images/offair.png
NULL=http://10.0.10.231:8080/static/images/offair.png

zoneimg.map
UNDEF=data:image/jpeg;base64,/9j/4AAQSkZ…
NULL=data:image/jpeg;base64,/9j/4AAQSkZ…

3_init_zoneminder.items
Image ZM_Monitor2_Image “Image” (gZoneminderImage) {channel=“zoneminder:monitor:server:1:image” [profile=“transform:MAP”, function=“zoneimage.map”]}

This is working as expected, just very noisy, and I’m thinking I’m missing something simple.

  • Platform information:
    • Hardware: rPi4/8gb
    • OS: Openhabian
    • Java Runtime Environment: Openhabian
    • openHAB version: 3.3.0.M6

No. There are no wildcards.
You get some output on a “no-match”, not as a consequence of the MAP, which has simply failed with an error. But because the Transformation architecture is configured to pass-through the original output in case of error. It does that for any transformation type.

You can have a “default” string output, but that is the opposite of what you are asking for.

You’ll have to use another method with more sophisticated logic, a JS script perhaps.