This is the original posting and perhaps a little complex for your needs.
A Proxy Item is just an Item not bound to anything. So you would have:
Switch HallwayCommand { tcp=">[ON:10.5.1.6:3040:'MAP(90.map)'],>[OFF:10.5.1.6:3040:'MAP(90.map)'] " }
Switch HallwayUpdate { tcp="<[10.5.1.6:3040:'MAP(m90.map)']" }
Switch HallwayProxy
Rules
// when the proxy receives a command, send it to the device
rule "HallwayProxy received command"
when
Item HallwayProxy received command
then
HallwayCommand.sendCommand(HallwayProxy.state)
end
// when the Update Item receives a command, update the Proxy
rule "HallwayUpdate received command"
when
Item HallwayUpdate received command
then
HallwayProxy.postUpdate(HallwayUpdate.state)
end
Put HallwayProxy on your sitemap and only use HallwayProxy in the rest of your rules.