DurgNomis-drol / ha_toyota

Toyota Connected Services integration for Home Assistant.
MIT License
148 stars 32 forks source link

Expansion for Subaru #252

Open jontwycross opened 7 months ago

jontwycross commented 7 months ago

I have just purchased a Subaru Solterra. I am aware that this care is a rebrand of the Toyota BZ4X. I am also aware the the Subaru Care app is directly accessing Toyota infrastructure rather than Subaru's own systems.

Is there any way that Subaru's can be incorporated into this plugin for retrieving information from the car? I note in the Android app that the domain list is as follows:

platform.tme-atp.eu
    <domain includeSubdomains="true">lexuslink-agg-acc.toyota-europe.com</domain>
    <domain includeSubdomains="true">myt-agg-acc.toyota-europe.com</domain>
    <domain includeSubdomains="true">subarucare-agg-acc.subaru-europe.eu</domain>
    <domain includeSubdomains="true">lexuslink-agg.toyota-europe.com</domain>
    <domain includeSubdomains="true">myt-agg.toyota-europe.com</domain>
    <domain includeSubdomains="true">subarucare-agg.subaru-europe.eu</domain>
    <domain includeSubdomains="true">cpb2cs.toyota-europe.com</domain>
    <domain includeSubdomains="true">cpb2csp.toyota-europe.com</domain>
    <domain includeSubdomains="true">cpb2csd.toyota-europe.com</domain>
    <domain includeSubdomains="true">cpb2csa.toyota-europe.com</domain>

The login process seems to access Toyota directly rather than Subaru, and I guess my hope is that by expanding the login to the domains above, retrieving information on the car might be relatively easy, though I am most likely being naive.

There are no other plugins available for this particular vehicle, the old Starlink mySubaru app does not work with this car.

If this is even possible, it would be great to see the expansion of vehicles the app can support expanded.

CM000n commented 7 months ago

Before the Home Assistant integration can support Subaru, support must first be ensured in the mytoyota Python lib used. Please create a feature request there again: https://github.com/DurgNomis-drol/mytoyota/issues

However, I think this might take a while. There have already been efforts to support Lexus as another brand, which are currently stagnating due to lack of developer time and too few people willing and able to test it.

jontwycross commented 7 months ago

Added as a feature request as suggested. Appreciate time and expertise and short. Unfortunately I can't help with the programming but can help with the testing if need be.