GithubHelp home page GithubHelp logo

Comments (11)

Farfar avatar Farfar commented on September 21, 2024

At the moment no. But could be implemented.
Is this for a PHEV or BEV?
Because I would need more data from BEVs, what values the car reports, what the API returns etc.
My Superb iV returns 254 as value for maximum current (16 A) and 252 for reduced (5-6 amps). For BEVs I would need to know all values and corresponding values in car/app.

from homeassistant-skodaconnect.

loeffelpan avatar loeffelpan commented on September 21, 2024

I have a Superb iV, too.
Would be nice to trigger the car to start charging either with maximum or reduced current, depending on available power from solar system.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on September 21, 2024

.

I have a Superb iV, too.
Would be nice to trigger the car to start charging either with maximum or reduced current, depending on available power from solar system.

This will probably be best to do via a service call. For Superb iV it's only two values but other models might have more levels to set. Easiest is to plan for both directly.

I don't think you can send a start charging request at the same time as a request to change charging current, they will consume two requests.

from homeassistant-skodaconnect.

loeffelpan avatar loeffelpan commented on September 21, 2024

I‘m new to homeassistant, so... no idea. But I will try if you implement this. Sound not to be complicated.
Unfortunatly I don‘t anybody with an BEV to get the other values. Can you implement this for PHEV with two values first? Maybe in another branch. So I can continue with my automation?

from homeassistant-skodaconnect.

loeffelpan avatar loeffelpan commented on September 21, 2024

Can you explain how you imagine to automate this?
I'm not sure how to use this with service calls or how to create a sequence of two actions.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on September 21, 2024

Can you explain how you imagine to automate this?
I'm not sure how to use this with service calls or how to create a sequence of two actions.

Do you know how to use service calls?
If not you can read more here: https://www.home-assistant.io/docs/scripts/service-calls

Imagine there's a service call named 'skodaconnect.set_charger_ampere' that takes two data parameters, 'vin' and 'ampere'.
Then you would call it with:

service: skodaconnect.set_charger_ampere
data:
  vin: vwsj123as123152
  ampere: <value>

Where vin is the vin number of your car and ampere is either a numeric value or one of "reduced" or "maximum", I haven't decided since I don't know yet how BEV's handle the configuration value.

from homeassistant-skodaconnect.

loeffelpan avatar loeffelpan commented on September 21, 2024

Ah. I got it.
The service have to be implemented by the integration (by you) and my automation can call it. Sounds good. The same thing would work for setting charging plans and things like that. Maybe you could implement this, too (not urgent but in future).

To be most compatible, I would devide it into two services. skodaconnect.set_charger_ampere_phev and skodaconnect.set_charger_ampere_bev.
So, nobody has to change their automations if you implement that feature for BEV.

Do you need to provice the VIN in that service call? The integration is globally configured for a specific VIN. I don‘t see a need for this.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on September 21, 2024

Maybe you could implement this, too (not urgent but in future).

It's planned for the future but it's not easy to implement in a good way.

So, nobody has to change their automations if you implement that feature for BEV.

When implemented it will be one service.

Do you need to provice the VIN in that service call? The integration is globally configured for a specific VIN. I don‘t see a need for this.

Yes the way the library and integration is written right now the vin is needed. The service call is global but there might be more than one vehicle for the account. Also since there's a library talking to the backend the vin is needed to get the correct class object to make the API calls.

from homeassistant-skodaconnect.

loeffelpan avatar loeffelpan commented on September 21, 2024

I see. Thanks for explaination.
Any idea when this will be implemented?
I need that to go on with my automation.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on September 21, 2024

I see. Thanks for explaination.
Any idea when this will be implemented?
I need that to go on with my automation.

When I have the time for it. Everything between tomorrow and within the week.

from homeassistant-skodaconnect.

Farfar avatar Farfar commented on September 21, 2024

I see. Thanks for explaination.
Any idea when this will be implemented?
I need that to go on with my automation.

New release v1.0.32 available with said function.

from homeassistant-skodaconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.