Using RESTful sensors with streaming APIs

Hi Guys,

I am trying to get a device (AC controller) to communicate it’s status to HA and then once I have that sorted trigger it with automations, etc. I seem to have run into an issue with the way the API works as it appears to be a streaming style connection. Using ncat for example I can make JSON queries to it and get JSON replies but it doesn’t disconnect.

Current config for fetching temperature (under sensor: in config.yaml):
platform: rest name: Daikin Temp resource: method: POST payload: '{"get":"temp"}' value_template: '{{value_json.temp}}'

Is it possible to use this with the RESTful sensor in this case or so I need to create a custom component that can handle the API interface to get there?