Hi,
I defined different items with corresponding map files like
Switch lights_wall “Lights Wall” [ “Lighting” ] {tcp=“>[ON:192.168.178.32:1139:MAP(wall_lights.map)], >[OFF:192.168.178.32:1139:MAP(wall_lights.map)]”}
where the map files look like
ON=3H34GJ67NH001
OFF=3H34GJ67NH001
The sending part works as expected. The response I get gives information about all available values and status and is JSON formated. Now I want to parse this response. How can I achieve this? Currently I got following warning in the openHAB2 log:
2020-11-27 18:48:41.568 [WARN ] [ing.tcp.protocol.internal.TCPBinding] - Cannot parse input {“d”:[0,0,1,0,1,1,1,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,1,1,1],“a”:[24,20,22,20,0,20,90,0,24,20,0,47,46,37,47,1,1,1,1,1]} to match command ON on item lights_wall
It is possible to run a script or something else to parse the JSON and perform several actions?
Thanks for your help