DurgNomis-drol / ha_toyota

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

Wehybrid Insurance #255

Closed faz17 closed 3 months ago

faz17 commented 7 months ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like it would be useful to add support to wehybrid insurance to calculate how many km are left before reaching the minimum amount of €15 and once the minimum amount is reached how much will it cost in the month

CM000n commented 7 months ago

Is this a feature that is already supported by the current app? As far as I know, the "Wehybrid" program is not available here in Germany. At least I couldn't find anything about it. This makes an implementation of your feature request very unlikely, as the feature seems to be regionally limited. A developer must first be found who can test the whole thing and integrate it into the mytoyota Python lib.

faz17 commented 7 months ago

Yes, the feature is partially present in the app. There is a special wehybrid insurance section. I don't know if it's regionally limited. Here in Italy it works that you pay €0.04 for each NON EV km driven with a minimum of €15. It would actually be a very simple implementation. In a month you have 375 NON-EV km (15/0.04) available. Reading the data from MYT of non-EV km traveled in a given period, only one subtraction should be made. Example Reference period 28/03/2024 - 28/04/2024 NON EV Km Available:375 NON EV km travelled: data to be read from myt NON EV km available: 375 - NON EV km travelled Extra km: 0.04 * each km after 375

CM000n commented 7 months ago

That is too specific and not generic enough. For example, how would we ever know whether the non-EV kilometre count would change? Or whether it is the same for every country? I think I'd rather leave that to the users themselves for the time being. You can create your own template sensors for this. But I'll leave the feature request open to see if there is any further interest.