I all,
I need to send a UDP command to device. When the device receive a command, it send a response message (with many rows) on the UDP channel.
With my syntax, the command to device is sent (and the device receive the correct pulse), but I have in the openhab log an error.
The device send automatically a message with his status every N times.
.items file
Switch Switch1 “Switch Room 1” {udp=">[ON:192.168.1.145:52056:’MAP(mapping1.map)’], >[OFF:192.168.1.145:52056:‘MAP(mapping1.map)’]"}
String Switch1ACK {udp="<[ACKON:192.168.1.145:52056:’MAP(mapping1.map)’], <[ACKOFF:192.168.1.145:52056:’MAP(mapping1.map)’]”}
mapping1.map file
ON=@w101
OFF=@w001
‘MSG[0]: AABBCCDDEEFF MSG[0]: OK’=ACKON
‘MSG[0]: AABBCCDDEEXX MSG[0]: OK’=ACKOFF
The response of the device for the command ON is:
MSG[0]: AABBCCDDEEFF
MSG[0]: OK
The response of the device for the command OFF is:
MSG[0]: AABBCCDDEEXX
MSG[0]: OK
The openhab error:
2018-02-18 11:25:07.050 [WARN ] [rm.AbstractFileTransformationService] - Could not transform ‘
MSG[0]: AABBCCDDEEFF
MSG[0]: OK ’ with the file ‘mapping1.map’ : Target value not found in map for '
MSG[0]: AABBCCDDEEFF
MSG[0]: OK ’
Where is my configuration error? The device switch correctly to ON/OFF.
My goal is to send a command to device without error/warning.
Thanks for the help
Matteo