JSON sensor (I think.. is what I want?) to setup a graph in HA

So, I am testing a remote system HWiNFO for cpu, fan, hdd monitoring using a web server (http://hostname:port/) which puts data out in this format based on sensors selected:

  {
    "SensorApp": "HWiNFO",
    "SensorClass": "NXZT Kraken X52/X62",
    "SensorName": "Liquid Temperature",
    "SensorValue": "85.46",
    "SensorUnit": "°F",
    "SensorUpdateTime": 1555817161
  },
  {
    "SensorApp": "HWiNFO",
    "SensorClass": "NXZT Kraken X52/X62",
    "SensorName": "Pump",
    "SensorValue": "2070",
    "SensorUnit": "RPM",
    "SensorUpdateTime": 1555817161
  }

I have Node-RED and Mosquitto working with Home Assistance.

Couple Questions:

  1. How can I bring this data into HA to display it as a history-graph or gauge etc.
  2. When testing it in browser I see the data and have to hit “refresh” in browser to display new data. If data can be pulled into HA, how will the refresh part work? I guess some sort of polling?

I am hoping someone can give me a generic template with simple explanation so I can tailor it later to my needs.

Thanks!

Edit: Starting to play with Node-RED, able to pull data into debug window… still tweaking to find the answer… anyway so far, I am thinking the best way is to use Node-RED and then publish it with MQTT… Or, is there a more direct approach?

Sounds like you could use a restful sensor

1 Like

Thank you. I will look into this.

Edit:
Easy enough. It is in an array… for anyone in similar situation, this is what I used to extract what I want:

value_template: “{{ value_json[0].SensorValue }}”

which will get the value: 85.46