Integrating Crypto Mining Rig Data into Home Assistant

Hey everyone, I’m trying to integrate data from my crypto mining rig into Home Assistant. The rig runs Claymore Dual Miner, which has an API that provides details like temperature and hash rates. I can fetch this data using a direct TCP call, but I’m hitting a snag with parsing the JSON response into separate attributes in Home Assistant.

I initially used the Command Line sensor, which works for retrieving the JSON, but it’s not ideal since I’d need a separate sensor for each value. I’d prefer using the RESTful sensor, but it only supports HTTP calls, and my setup requires a direct TCP connection.

I considered setting up a web server on the mining rig to serve the JSON via HTTP, but that feels a bit clunky. I’m hoping there’s a cleaner workaround within Home Assistant. Any suggestions or experiences you’ve had with similar setups would be super helpful! Looking forward to hearing your thoughts.