Hi,
I have a custom tcp interface to my controller. Communication between my controller and OH works as expected. As response I send a JSON string with current status information of all relais from the controller. Unfortunately I got a warning on each item if the controller sends the response:
2020-12-05 07:51:16.126 [WARN ] [ing.tcp.protocol.internal.TCPBinding] - Cannot parse input {“d”:[0,0,1,0,1,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0,1,1,1],“a”:[23,50,22,60,22,21,20,20,23,40,21,41,36,35,42,1,1,1,1,1]} to match command * on item
My item are configured like:
Switch toggle_5 "Kaminwand" <light> (grpToggle) {tcp=">[*:192.168.178.32:41139:JS(toggle_001.js)]"}
And the corresponding JS file:
(function(i) {
try{
if(i == "ON" || i == "OFF") return "001"
else return "";
} catch (NumberFormatException) {
return "";
}
})(input)
I assume that setting *
as parameter in the TCP binding I will accept everything and get rid of the warnings, but it is still the same…
Can anyone help?