Running openHABian 1.5 on RaspberryPi 2.
I have a (semi-)domotica system at home, basically some relays with IP-adres and 24 exits to put some lights on/off. The relay listen so a simple telegram send with UDP-protocol.
I have TCP/UDP binding, Map transform binding installed. I also created an udp.cfg file with only “udp:updatewithresponse=true” and udp:port:1001 in it.
To send an ON/OFF command for a Switch item, I have the following configs (just some examples):
Since I get an update from the relay for every string I send, I now get some warnings in the logs:
09:17:17.583 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GF_Living_Zitplaats_Licht' received command 18
09:17:17.605 [INFO ] [smarthome.event.ItemStateChangedEvent] - GF_Living_Zitplaats_Licht changed from 32 to 18
09:17:18.015 [WARN ] [ding.tcp.protocol.internal.UDPBinding] - Cannot parse input I0142318 to match command * on item GF_Living_Zitplaats_Licht
It cannot parse the input “I0142318”: This is always the same string I get back, where the last two values match the dim percentage I send. I should match it to my item GF_Living_Zitplaats_Licht because there are other ways to set the lights (like actual switch).
So the first thing I suppose is to capture the string in an item and then parse is with some rule?
If it is trying to stuff this message into your original Item, I guess the binding is treating it as a response to your command, I don’t know.
It looks like you just need to configure a < binding on your original Item to capture it, then play with the inbound transform to isolate the numeric