Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

car plugged in entity missing? #81

Closed
domerich opened this issue Feb 28, 2023 · 20 comments
Closed

car plugged in entity missing? #81

domerich opened this issue Feb 28, 2023 · 20 comments

Comments

@domerich
Copy link

Hello is there an entity available if a car is plugged in? in this integration I cannot find it, it seems:

sensor.goecharger_garage_rechts**_cable_lock_mode**

in the other integration I can see with this if a car is plugged in

@syssi
Copy link
Owner

syssi commented Feb 28, 2023

I will have a look.

@syssi
Copy link
Owner

syssi commented Feb 28, 2023

It's called "cable unlock mode" (ust) here.

@domerich
Copy link
Author

cable unlock mode

I dont think so with cable unlock mode I can select how to unlock

_cable_lock_mode** gave me the info if any car is plugged into the wallbox. I would like to have this info

@syssi
Copy link
Owner

syssi commented Feb 28, 2023

Are you sure about the name of the other entity? Do you mean car state may be?

@syssi
Copy link
Owner

syssi commented Feb 28, 2023

A may be you are looking for cable lock status (cus). This entity is disabled per default an can be found and enabled at the hidden section of the device page.

@domerich
Copy link
Author

No this entity is not there even down there with the hidden ones

@syssi syssi closed this as completed in 80abc18 Feb 28, 2023
@syssi
Copy link
Owner

syssi commented Feb 28, 2023

I've released a new version. The Cable unlock status sensor should be available now if you update to version 0.16.0.

@domerich
Copy link
Author

domerich commented Mar 1, 2023

sorry this is still not the right entity. I do not want to know if the cable is locked but if a cable is plugged in.

@syssi syssi reopened this Mar 1, 2023
@syssi
Copy link
Owner

syssi commented Mar 1, 2023

I will have a look.

@syssi
Copy link
Owner

syssi commented Mar 1, 2023

Is the car state what you are looking for?

@nilrog
Copy link

nilrog commented Mar 1, 2023

Afaik this is the car entity in the v2 API. If the cable is disconnected/unplugged from the car it will be in "Idle". If plugged in it will be in any of the other states depending on if the car is charging etc.

@syssi
Copy link
Owner

syssi commented Mar 1, 2023

I could introduce a binary_sensor which maps the values to a boolean and call the sensor car_detected if this is helpful.

@domerich
Copy link
Author

domerich commented Mar 1, 2023

maybe you guys could just steal it from the other integration :D I wanted to make such automation to heat up the house more if no cars are plugged in in the garages and their batteries is <90%
If it is not possible I think I must use 2 integrations

alias: PV_Heizung_Anhebung++
description: ""
trigger:
  - platform: time_pattern
    minutes: /1
condition:
  - condition: numeric_state
    entity_id: sensor.battery_soc
    above: 95
  - condition: numeric_state
    entity_id: sensor.pv_house_garage_total
    above: 4
  - condition: numeric_state
    entity_id: sensor.aussentemperatur
    below: 20
  - condition: state
    entity_id: binary_sensor.plugged_in
    state: "off"
  - condition: state
    entity_id: binary_sensor.plugged_in_2
    state: "off"
action:
  - service: climate.set_temperature
    data:
      temperature: 23
    target:
      entity_id:
        - climate.klima_eg_wohnung
        - climate.klima_og_wohnung
        - climate.klima_ug_wohnung
        - climate.klima_dg_wohnung
mode: single

@nilrog
Copy link

nilrog commented Mar 1, 2023

You can easily do that with what is available from this integration today. There is no need, imo, to add more sensors. That will only make you dependent on the integration to implement things. When instead you have the power of home assistant to do whatever you want :)

The condition you need to check in an automation, triggered by something else, to see if the car is unplugged is this:

- condition: state
  entity_id: sensor.go_echarger_123456_car
  state: "Idle"

Or, if you want to trigger an automation when the car becomes unplugged you can use this as trigger:

- platform: state
  entity_id: sensor.go_echarger_123456_car
  to: "Idle"

@domerich
Copy link
Author

domerich commented Mar 1, 2023

yeah I guess that works, I just liked the yellow plug symbol so I could tell that my wife plugged in her car.

@woopstar
Copy link
Contributor

woopstar commented Mar 1, 2023

I could introduce a binary_sensor which maps the values to a boolean and call the sensor car_detected if this is helpful.

I think that would be very beneficial. Lots of automations, blueprints etc uses a "boolean state" to check if the EV is connected or not.

I personally currently use this template sensor:

- platform: template
  sensors:
    go_e_ev_connected:
      friendly_name: "Go-E EV Connected"
      unique_id: "go_e_ev_connected"
      value_template: >
        {%- if states("sensor.go_echarger_222819_car") | default('Idle') == "Idle" %}
          False
        {%- else %}
          True
        {% endif %}

@syssi
Copy link
Owner

syssi commented Mar 1, 2023

I've introduced a new binary sensor called car connected. It will speed things up so there is no need for a template sensor.

@syssi syssi closed this as completed in 52089f4 Mar 1, 2023
@woopstar
Copy link
Contributor

@syssi is it also possible to get the car SoC through Go-E ? So you do not need to have a EV integration also for your Audi, Skoda, Tesla or whatever.

@syssi
Copy link
Owner

syssi commented Mar 10, 2023

The short answer is "no". The go-eCharger APIv2 doesn't provide this information probably because the information isn't available via a Type 2 plug. This is the API description of the manufacturer: https://github.com/goecharger/go-eCharger-API-v2/blob/main/apikeys-en.md

@woopstar
Copy link
Contributor

The short answer is "no". The go-eCharger APIv2 doesn't provide this information probably because the information isn't available via a Type 2 plug. This is the API description of the manufacturer: https://github.com/goecharger/go-eCharger-API-v2/blob/main/apikeys-en.md

I see. But available from DC? I see that some charging stations show the SoC on screens, so it must be available in some cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants