Some available sensors do not output solimoisture as cbar, but as % (or something comparable).Soil Moisture
/json.htm?type=command¶m=udevice&idx=IDX&nvalue=MOISTURE
IDX = id of your device (This number can be found in the devices tab in the column "IDX")
MOISTURE = moisture content in cb 0-200 where:
00 - 09 = saturated, 10 - 19 = adequately wet, 20 - 59 = irrigation advice, 60 - 99 = irrigation, 100-200 = Dangerously dry,
Considering the background charaterictics a correct translation is non-linear and dependent on the soil-type.
Probably a specific lookup-table will be appropriate.
For a very rough & simple approximation the following scaling might be suitable,
reversely related to the API-scaling towards a scale of 0 => 100 = Dry = Wet?
Saturated = 100 ~ 96 => cb 00 ~ 09
Adequately Wet = 95 ~ 91 => cb 10 ~ 19
Irrigation advice = 90 ~ 80 => cb 20 ~ 59
Irrigation = 79 ~ 49 => cb 60 ~ 99
Very Dry = 50 ~ 0 => cb 100 ~ 200
Your opinion?