I’m beginning my first steps with the openHAB and i love it.
My target is to be able to communicate with my old Litetouch system in my house.
I’m experimenting with the TCP binding and sending commands via IP to the system.
I am able to toggle lights through the following switch:
The “<” indicated the direction, in this case incoming. The REGEX basically returns the full String unmodified.
Depending on what the device is returning (i.e. it is telling you when the light is toggled manually, you can put this all in the one Switch Item and use a transform on the String to determine which Strings indicate the Switch should be ON or OFF.