runDMCA / home-assistant-mazda

Custom component for Home Assistant that adds integration for Mazda Connected Services
Apache License 2.0
33 stars 19 forks source link

feat: added new sensor ev_remaining_charging_time_value #4

Closed fano0001 closed 5 months ago

fano0001 commented 5 months ago

Hi, i want to see the remaining changing time (AC) in my HomeAssistant dashboard. I saw that the api delivers already the property with the remaining time. So i created a new sensor entity that holds the remaining changing time (AC).

Screenshot 2024-02-16 at 10 43 21
HansVanEijsden commented 5 months ago

Thanks! Do you mean changing time or charging time?

fano0001 commented 5 months ago

Hi, I mean the remaining charging time 🙈

townsmcp commented 4 days ago

@fano0001 what happened with this sensor? Sounds like a good addition

fano0001 commented 3 days ago

@townsmcp i think the repository is not maintained anymore. So i close the pull requests, because i never got a feedback. I also fund sensor data for remaining KM EV of the CX-60 Plug IN hybrid.

townsmcp commented 3 days ago

Ah ok. That makes sense. Are you able to add the ‘Issues’ tab to your repo?

have you had the same issue as the rest of us when upgrading to 2024.07 as can be seen https://github.com/runDMCA/home-assistant-mazda/issues/5 ? It is not showing on the thread for some reason however @sethcalkins has created a fix here https://github.com/runDMCA/home-assistant-mazda/compare/main...SethCalkins:home-assistant-mazda:main which I am going to give a try today

fano0001 commented 3 days ago

Yes i can enable the tab i think. I have the Same issue when upgrading to 2024.07😔

Oh i Hope the fix will solve the problem. I will give IT also a try after my vecations.

DiVrox commented 3 days ago

Tried @SethCalkins fix, but it didn't work for me on 2024.7.1

townsmcp commented 3 days ago

Thanks for trying @DiVrox I was about to give it a go ;(

formiification commented 3 days ago

Also tried @SethCalkins fix. No luck so far

SethCalkins commented 3 days ago

Also tried @SethCalkins fix. No luck so far

Sorry guys, I have limited knowledge here but looks like possibly the API calls have changed -- I probably spent 4 hours last night working on this --- debug showed it was failing on this

controller.py

    async def get_vec_base_infos(self):  # noqa: D102
        return await self.connection.api_request(
            "POST",
            "remoteServices/getVecBaseInfos/v4",
            body_dict={"internaluserid": "__INTERNAL_ID__"},
            needs_keys=True,
            needs_auth=True,
        )