The cFos Power Brain Wallbox returns the most important data as JSON in the HTTP call http://ipaddress/cnf?cmd=get_dev_info. The following files are necessary to read the most important values for the connected power meters (in my case two S0 meters are connected):
cfos.things:
Thing http:url:cfosm25 "CFos Wallbox M25" [baseURL="http://192.168.214.3/cnf?cmd=get_dev_info",refresh=60] {
Channels:
Type number : carpower "Text" [ stateTransformation="JSONPATH:$.devices[2].power" ]
Type number : housepower "Text" [ stateTransformation="JSONPATH:$.devices[1].power" ]
Type number : totalenergy "Text" [ stateTransformation="JSONPATH:$.devices[0].total_energy" ]
Type string : status "Text" [ stateTransformation="JSONPATH:$.devices[0].evse.cp_state" ]
}
cfos.items:
Number CFosM25CarPowerLocal "CFosM25CarPowerLocal" <status> { channel="http:url:cfosm25:carpower" }
Number CFosM25HousePowerLocal "CFosM25HousePowerLocal" <status> { channel="http:url:cfosm25:housepower" }
Number CFosM25TotalEnergyLocal "CFosM25TotalEnergyLocal" <status> { channel="http:url:cfosm25:totalenergy" }
String CFosM25StatusLocal "CFosM25StatusLocal" <status> { channel="http:url:cfosm25:status" }
The documentation for the cFos Power Brain HTTP API is available here: