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

Pause/Resume Charger not working #247

Open
osulivanDE opened this issue Nov 4, 2022 · 7 comments
Open

Pause/Resume Charger not working #247

osulivanDE opened this issue Nov 4, 2022 · 7 comments
Labels
more info requested More info requested support Support and questions

Comments

@osulivanDE
Copy link

Question

When using the new action_command to pause/resume the charging session i get the following Error in Home Assistant Logs:

Logger: custom_components.easee.services
Source: custom_components/easee/services.py:478
Integration: Easee EV Charger (documentation, issues)
First occurred: 3. November 2022 um 22:15:14 (142 occurrences)
Last logged: 10:00:14

Failed to execute service: action_command with data {'charger_id': 'EH3RMYID', 'action_command': 'pause'}

I trigger the service out of Node-Red. Here i get an green message, the service could be triggered but Home Assistant logs an Error.
This is how i trigger it in Node-Red:

Server: HomeAssistant
Domain: easee
Service: action_command
Data: {"charger_id":msg.chargerID,"action_command":"pause"}

Do i maybe put wrong Data into the Service?

Bildschirm­foto 2022-11-04 um 10 10 53

Bildschirm­foto 2022-11-04 um 10 11 34

What version of the integration are you using?

easeee-0.9.46

Anything in the logs that might be useful for us?

No response

Additional information

No response

@osulivanDE osulivanDE added the support Support and questions label Nov 4, 2022
@astrandb
Copy link
Collaborator

astrandb commented Nov 4, 2022

Is there anything interesting in the full HA log?

Have you tried to test the service in Developer tools in HA, there you can switch between UI and yaml mode to see the generated data.

You can turn on more detailed logging by entering following into configuration.yaml

logger:
  default: info
  logs:
    pyeasee: debug
    custom_components.easee: debug

@astrandb astrandb added the more info requested More info requested label Nov 4, 2022
@osulivanDE
Copy link
Author

Thanks astrandb for your fast answer. I tested the service out of the dev tools and could generate the same error
Bildschirm­foto 2022-11-04 um 10 49 08

But it seems this charger also has some other problems:

Bildschirm­foto 2022-11-04 um 10 49 20

The Charger looks great in the integration interface and sends data... strange.

@osulivanDE
Copy link
Author

Update: when i trigger Actions out of the integrations tab (for example activate/deactivate Smart charging) i get no error in the logs. So basic communication seems to be fine.

@astrandb
Copy link
Collaborator

astrandb commented Nov 4, 2022

The error indicates that the API does not accept the command when there is no car connected to the charger.

@osulivanDE
Copy link
Author

Oh, yes. That is true. There is no car connected at the moment. Did this behavior change with the new action_command?
I can´t remember this was a problem with the old start/resume command.

Thanks so much for your help.

@astrandb
Copy link
Collaborator

astrandb commented Nov 4, 2022

We are using the same API call, so there should be no differences in behaviour.

@osulivanDE
Copy link
Author

I will update my script to trigger pause/resume only when a car is connected. Thanks so much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info requested More info requested support Support and questions
Projects
None yet
Development

No branches or pull requests

2 participants