Giter Club home page Giter Club logo

Comments (9)

syssi avatar syssi commented on June 30, 2024 1

The API v1 has an API key called alw:

https://github.com/cathiele/homeassistant-goecharger/blob/master/custom_components/goecharger/switch.py#L101
https://github.com/cathiele/goecharger/blob/master/goecharger/goecharger.py#L246-L250

This key isn't available at the API v2 anymore. We have to use frc (force state) instead:

goecharger/go-eCharger-API-v2#47

I don't want to expose the force state as switch entity (on/off) because the off state should be sometimes neutral and sometimes forced off.

from homeassistant-goecharger-mqtt.

syssi avatar syssi commented on June 30, 2024 1

You can do useful things. Just use the select.go_echarger_072246_frc entity in your automations. ;-) And add some button cards to your dashboard.

from homeassistant-goecharger-mqtt.

syssi avatar syssi commented on June 30, 2024 1

buttons

I've prepared a new release with some goodies: There are three (per default disabled) new button entities now to enforce the state.

from homeassistant-goecharger-mqtt.

syssi avatar syssi commented on June 30, 2024

There are some internal automations to start charging (f.e. if the price is low) and to stop charging (if an amount of energy is reached). The force state can be used to override these decision by force on or force off. Neutral (0) means no override.

It's hard to map these three states into one switch. Let's say we call the switch switch.start_charging. If this switch is turned on the state 2 will be written. Which value should be written if we turn the switch off again? 1 would block all internal automations.

from homeassistant-goecharger-mqtt.

syssi avatar syssi commented on June 30, 2024

My go-e isn't installed yet. So may be you can answer some easy questions about the handling:

If we provide a button.start_charging entity similar to the restart button. Could also be done via a lovelace button card already:

type: button
name: Start charging
show_state: false
tap_action:
  action: call-service
  service: select.select_option
  target:
    entity_id: select.go_echarger_072246_frc
  data:
    option: '2'

The charging starts if you press this button. What do you do if you want to drive away and the charging isn't finished yet?

from homeassistant-goecharger-mqtt.

kolossboss avatar kolossboss commented on June 30, 2024

I think you can always stop charging with the car. On our Zoe you simply need to unlock the plug and it stops charging.

Actually I start and stop the charging in connection with our supplied photovoltaic system.
Even if you provide (or done by the switch component) a switch on=2 and off=1, I think it can always overwrite by the app or by selecting force_state.

This integration provides a switch for allowing charging.
https://github.com/cathiele/homeassistant-goecharger

from homeassistant-goecharger-mqtt.

kolossboss avatar kolossboss commented on June 30, 2024

Iā€˜m also stopping the charger on 80% battery via Home Assistant with this switch.

from homeassistant-goecharger-mqtt.

kolossboss avatar kolossboss commented on June 30, 2024

Ok I understand!
I will try to make my one switch based und die force_state.
I think it essential to be able to start/stop the charger via HA, to do useful thinks :-)

from homeassistant-goecharger-mqtt.

kolossboss avatar kolossboss commented on June 30, 2024

The buttons are working great. Thanks a lot!

from homeassistant-goecharger-mqtt.

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.