Parsing text from REST sensor

Hi,

I am trying to use the unofficial API from Daikin to extract some info from my heating pump.

I have used following in my configuration.yaml

The sensor returns following string:
ret=OK,pow=1,mode=4,adv=,stemp=19.5,shum=0,dt1=25.0,dt2=M,dt3=25.0,dt4=19.5,dt5=19.5,dt7=25.0,dh1=AUTO,dh2=50,dh3=0,dh4=0,dh5=0,dh7=AUTO,dhh=50,b_mode=4,b_stemp=19.5,b_shum=0,alert=255,f_rate=A,f_dir=1,b_f_rate=A,b_f_dir=1,dfr1=5,dfr2=5,dfr3=5,dfr4=A,dfr5=A,dfr6=5,dfr7=5,dfrh=5,dfd1=0,dfd2=0,dfd3=0,dfd4=1,dfd5=1,dfd6=0,dfd7=0,dfdh=0,dmnd_run=0,en_demand=0

How do I parse this string to get one or several values?

I am not sure how to do this using what is built into HA, but if you know some programing language you could use a command_line sensor and call a script to pull that URL and parse the data.