After some research i found some example that could fit my situation.
Item is defined as:
Switch Blauberg {udp=“>[ON:192.168.1.90:4000:‘MAP(blau.map)’], >[OFF:192.168.1.90:4000:'MAP(blau.map)]”}
In my transformation folder is blau.map file with next text:
ON=\u006D\u006F\u0062\u0069\u006C\u0003\u0004\u0001\u000D\u000A
\u006D\u006F\u0062\u0069\u006C\u0003\u0004\u0001\u000D\u000A=ON
When i switch the item on or off i get the next messages in logfile:
Item 'Blauberg received command ON
2019-05-28 19:02:29.521 [vent.ItemStateChangedEvent] - Blauberg changed from OFF to ON
2019-05-28 19:02:31.273 [ome.event.ItemCommandEvent] - Item ‘Blauberg’ received command OFF
==> /var/log/openhab2/openhab.log <==
2019-05-28 19:02:31.292 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type 'MAP
==> /var/log/openhab2/events.log <==
2019-05-28 19:02:31.303 [vent.ItemStateChangedEvent] - Blauberg changed from ON to OFF
==> /var/log/openhab2/openhab.log <==
2019-05-28 19:02:31.304 [WARN ] [ing.tcp.protocol.internal.UDPBinding] - couldn’t transform response because transformationService of type '‘MAP’ is unavailable` Item ‘Blauberg’ received command ON
2019-05-28 19:02:29.521 [vent.ItemStateChangedEvent] - Blauberg changed from OFF to ON
2019-05-28 19:02:31.273 [ome.event.ItemCommandEvent] - Item ‘Blauberg’ received command OFF
==> /var/log/openhab2/openhab.log <==
2019-05-28 19:02:31.292 [WARN ] [.core.transform.TransformationHelper] - Cannot get service reference for transformation service of type 'MAP
==> /var/log/openhab2/events.log <==
2019-05-28 19:02:31.303 [vent.ItemStateChangedEvent] - Blauberg changed from ON to OFF
==> /var/log/openhab2/openhab.log <==
2019-05-28 19:02:31.304 [WARN ] [ing.tcp.protocol.internal.UDPBinding] - couldn’t transform response because transformationService of type '‘MAP’ is unavailable
What could be the problem?
My Map transformation is installed.