#Extractive Variables from a Sensor

1 messages · Page 1 of 1 (latest)

native mist
#

Hi Everyone,

I am trying to integrate HiveON/HiveOS with my Home Assistant. I have managed to get my Hive Rigs to send information to my home assistant server. The feed coming from the server is as per the following:

sensor.hiveos_params_4
hiveos_params_4
5039 v: 2
rig_id: 4976828
passwd: 7ZfqmkER
meta:
teamredminer:
coin: Nicehash-Ethash

temp: 0, 36, 35, 33, 40, 39, 35, 36, 36
fan: 0, 48, 48, 48, 48, 48, 48, 48, 48
power: 0, 91, 90, 91, 91, 95, 89, 88, 90
df: 2.1G
mem: 7843, 6728
cputemp: 45
cpuavg: 0.74, 0.92, 0.8
jtemp: 0, 41, 42, 36, 50, 44, 39, 41, 42
mtemp: 0, 72, 72, 68, 72, 74, 66, 66, 70
miner: teamredminer
total_khs: 291200
miner_stats:
status: running
hs:

  • 36380
  • 36370
  • 36380
  • 36380
  • 36820
  • 36150
  • 36390
  • 36370
    algo: ethash
    temp:
  • 36
  • 35
  • 33
  • 40
  • 39
  • 35
  • 35
  • 36
    fan:
  • 48
  • 48
  • 48
  • 48
  • 48
  • 48
  • 48
  • 48
    uptime: 5039
    ar:
  • 519
  • 8
  • 0
  • 0;0;0;0;0;0;0;0
    bus_numbers:
  • 3
  • 6
  • 9
  • 13
  • 16
  • 19
  • 22
  • 25
    ver: 0.10.2

friendly_name: hiveos_params_4

The important issue for me is extracting the line:
mtemp: 0, 72, 72, 68, 72, 74, 66, 66, 70
and then retrieving each temperature so that the figures can be used. Turn on cooling, etc. I am able to display this sensor attribute in lovelace but it displays it as 0, 72, 72, 68, 72, 74, 66, 66, 70 and that is obviously not usable to me.

To me, the sensor sensor.hiveos_params_4 has an attribute mtemp: but that attribute is an array and I have no idea how to pull these numbers out of the attribute.

Any assistant is greatly appreciated.

deep mango