DeviceType TCP Connection

Trying to hook up my sharp aquos TV to smart things. It has a TCP/IP based API. I have created a new device type, setup a poll() function (which I can tell gets called). I fire off a a HubAction, and nothing happens.

new physicalgraph.device.HubAction("${settings.username}\r${settings.password}\rPOWR?   \r", physicalgraph.device.Protocol.LAN)

I have another one on() which using the simulator to actually trigger the command, I can see the api is fired and the TV turns on.

Nothing I do seems to trigger the parse(description?) method.

does HubAction take a callback? Is there something that needs to be done to get parse() to be fired?

https://github.com/halkeye/sharp.aquos.devicetype.groovy/blob/master/sharp.aquos.devicetype.groovy is what I have so far.

1 Like

Raw TCP sockets are not officially supported by ST. There’s no way to read a reply. Please see this discussion: