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

Service not found #258

Open
Jolle1803 opened this issue Dec 13, 2022 · 1 comment
Open

Service not found #258

Jolle1803 opened this issue Dec 13, 2022 · 1 comment
Labels
support Support and questions

Comments

@Jolle1803
Copy link

Question

Hello, thank you for providing this integration.
I'm new to HA so maybe i'm doing obvious faults.

I tried to implement a button to the frontend which pause or resume charging.
It works if i only want it to either pause or start.
I tried to make it with if else so i can use one button for both actions but it just won't work.

error:
"Fehler beim Aufrufen des Diensts {% if is_state('sensor/xxx_status', 'ready_to_charge') %} easee. Service not found."

I think there's something wrong with my syntax.

show_name: true
show_icon: true
type: button
tap_action:
  action: call-service
  service: |
    {% if is_state('sensor.xxx_status', 'ready_to_charge') %}
      easee.pause
      data:
        charger_id: XXX
    {% if is_state('sensor.xxx_status', 'awaiting_start') %}
      easee.resume
      data:
        charger_id: XXX
    {% endif %}
entity: sensor.xxx_status
show_state: true

At the moment I'm just learning and having fun with HA.
I'm sure this isn't the smartest way to integrate a posibility to start and stop charging but I'm open for tips and inspiration.

Any Ideas as to what I'm doing wrong here?
Thank you :)

What version of the integration are you using?

easee: 0.9.47 HA: 2022.12.1

Anything in the logs that might be useful for us?

No response

Additional information

No response

@Jolle1803 Jolle1803 added the support Support and questions label Dec 13, 2022
@tmjo
Copy link
Collaborator

tmjo commented Dec 13, 2022

Hi and thanks for using the integration! I think the better place to ask this question is on the Home Assistant forum, but to get you started take a look at this post.

Just read it briefly myself, but seems like it is not possible to do it the way you propose, but that there is a workaround by calling a script instead.

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

No branches or pull requests

2 participants