The clinical value of using digital tools to assess adherence and lung function in uncontrolled asthma is not known. We aimed to compare treatment decisions guided by digitally acquired data on adherence, inhaler technique, and peak flow with existing methods. A 32-week prospective, multicentre, single-blinded, parallel, randomly controlled trial was done in ten severe asthma clinics across Ireland, Northern Ireland, and England. Participants were 18 years or older, had uncontrolled asthma, asthma control test (ACT) score of 19 or less, despite treatment with high-dose inhaled corticosteroids, and had at least one severe exacerbation in the past year despite high-dose inhaled corticosteroids. Patients were randomly assigned in a 1:1 ratio to the active group or the control group, by means of a computer-generated randomisation sequence of permuted blocks of varying sizes (2, 4, and 6) stratified by fractional exhaled nitric oxide (FeNO) concentration and recruitment site. In the control group, participants were masked to their adherence and errors in inhaler technique data. A statistician masked to study allocation did the statistical analysis. After a 1-week run-in period, both groups attended three nurse-led education visits over 8 weeks (day 7, week 4, and week 8) and three physician-led treatment adjustment visits at weeks 8, 20, and 32. In the active group, treatment adjustments during the physician visits were informed by digital data on inhaler adherence, twice daily digital peak expiratory flow (ePEF), patient-reported asthma control, and exacerbation history. Treatment was adjusted in the control group on the basis of pharmacy refill rates (a measure of adherence), asthma control by ACT questionnaire, and history of exacerbations and visual management of inhaler technique. Both groups used a digitally enabled Inhaler Compliance Assessment (INCA) and PEF. The primary outcomes were asthma medication burden measured as proportion of patients who required a net increase in treatment at the end of 32 weeks and adherence rate measured in the last 12 weeks by area under the curve in the intention-to-treat population. The safety analyses included all patients who consented for the trial. The trial is registered with ClinicalTrials.gov, NCT02307669 and is complete. Between Oct 25, 2015, and Jan 26, 2020, of 425 patients assessed for eligibility, 220 consented to participate in the study, 213 were randomly assigned (n=108 in the active group; n=105 in the control group) and 200 completed the study (n=102 in the active group; n=98 in the control group). In the intention-to-treat analysis at week 32, 14 (14%) active and 31 (32%) control patients had a net increase in treatment compared with baseline (odds ratio [OR] 0·31 [95% CI 0·15-0·64], p=0·0015) and 11 (11%) active and 21 (21%) controls required add-on biological therapy (0·42 [0·19-0·95], p=0·038) adjusted for study site, age, sex, and baseline FeNO. Three (16%) of 19 active and 11 (44%) of 25 control patients increased their medication from fluticasone propionate 500 μg daily to 1000 μg daily (500 μg twice a day; adjusted OR 0·23 [0·06-0·87], p=0·026). 26 (31%) of 83 active and 13 (18%) of 73 controls reduced their medication from fluticasone propionate 1000 μg once daily to 500 μg once daily (adjusted OR 2·43 [1·13-5·20], p=0·022. Week 20-32 actual mean adherence was 64·9% (SD 23·5) in the active group and 55·5% (26·8) in the control group (between-group difference 11·1% [95% CI 4·4-17·9], p=0·0012). A total of 29 serious adverse events were recorded (16 [55%] in the active group, and 13 [45%] in the control group), 11 of which were confirmed as respiratory. None of the adverse events reported were causally linked to the study intervention, to the use of salmeterol-fluticasone inhalers, or the use of the digital PEF or INCA. Evidence-based care informed by digital data led to a modest improvement in medication adherence and a significantly lower treatment burden. Health Research Board of Ireland, Medical Research Council, INTEREG Europe, and an investigator-initiated project grant from GlaxoSmithKline.