OpenHAB 4 and Transformation

I know there have been changes to transformation. I have been trying to troubleshoot this error upgrading from 3.4. to 4. The error is coming when using a sitemap.

[ERROR] [ui.internal.items.ItemUIRegistryImpl] - transformation throws exception [transformation=org.openhab.transform.map.internal.MapTransformationService@31c5bf51, value=-]

org.openhab.core.transform.TransformationException: Target value not found in map for '-'

Hi,

I had the same issue. In all my maps I have a value for ‘-’ like ‘n/a’ or another value for an undefined state and the error is gone.

You can also have a default fall through map that gets used when no other mapping applies. That can catch other errors.

key=value
1=ON
0=OFF
ON=1
OFF=0
white\ space=using escape
=default
2 Likes

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.