Parsing answer from Daikin http get request

How is it possible to divide answer from Daikin Aircon Wifi interface like:
http:/daikin_ip/aircon/get_week_power

Answer:
ret=OK,today_runtime=73,datas=0/0/0/0/0/0/0

How can I divide the answer into separate items ?
String ret (OK)
Number todayrt (73 minutes)
Number MondayConsumption (0 kWh)

Number SundayConsumption (0 kWh)
Thanks.

Assuming you’re using the HTTP Binding, use separate Channels for each type of data, and transform the incoming data using the REGEX Transformation Service so that each Channel extracts only the bit of information it is interested in.

1 Like

Thanks for help. Can you help me with a REGEX example please ?
Assume a item like:

String Daikin_WeekPower1    "Week power [%s]" <energy> (Daikin1) { http="<[http://daikin_ip/aircon/get_week_power:1000:JSONPATH($.ret)]" }
Number ElapsedTime "Working minutes [%s] mins"
Number MondayEnergy "Consumed energy on monday [%0.f] kWh"
etc.

OK, that’s very old syntax. What version of openHAB are you running?

I’m running 2.5.12.