To be allowable as a deductible expense against your business taxable profits the particular item must be ‘wholly and exclusively incurred’ for the purpose of the business. So as the house is not wholly and exclusively used for business reasons the expenditure would not qualify for capital allowances.
In addition, your primary residence is exempted from Capital Gains Tax (CGT) when it is sold. If you were able to claim items of expenditure such as solar panels as a capital allowance, it is possible that HMRC would challenge the CGT exemption meaning the sale would be chargeable to CGT, at least in part.
See also: Solar panel grants for businesses