dannerph / homeassistant-keba

Beta version of keba integration
Apache License 2.0
22 stars 4 forks source link

service keba.stop does not work #13

Open mattsve opened 1 year ago

mattsve commented 1 year ago

Calling service keba.stop (no rfid specified) does nothing, the car keeps on charging. The disable button works fine, and so does keba.start service after the disable button is pressed.

Tried with version 3.0.3

deqw commented 11 months ago

I’m very happy with this integration because I now I’m no longer dependent on the (slow) BMW webservice to see if the car is charging or not. But like above I have a problem with starting and stopping charging via the integration. I have no RFID in use and therefore could not specify anything in the integrations setup. Start and stop now resulting in a authentication error. Is there a way to circumvent the RFID sequence?

matlimatli commented 9 months ago

I changed my scripts/automations to use

service: button.press
data: {}
target:
  entity_id: button.keba_p30_enable

for starting, (and button.keba_p30_disable for stopping). Could this be an option for you as well?

pos-ei-don commented 9 months ago

I do the same. As long as the charging is not stopped by the car (becaus the condifured soc is reached) enable will restart charging directly after hitting enable. I the other case, when the car stopped the charging, I have to send the "charging" command to the car via api aswell.

deqw commented 9 months ago

I changed my scripts/automations to use

service: button.press
data: {}
target:
  entity_id: button.keba_p30_enable

for starting, (and button.keba_p30_disable for stopping). Could this be an option for you as well?

That is helpful @matlimatli . I compared this to the call that the Call Service node is making in Node-Red:

Screenshot 2023-11-27 at 13 02 55

So this is not resulting in the same call. I cannot get to a button.press service as far as I can see now. What I do see is that I can select a Keba domain in the node which can be used to start and stop. Which results in the following call.

Screenshot 2023-11-27 at 12 58 46

I have to test if that is doing anything / the same as your automation call.

deqw commented 9 months ago

Although the call is looking different it isn't.

I see that:

Screenshot 2023-11-27 at 13 25 20

Is picked up fine by the API:

Screenshot 2023-11-27 at 13 25 33

The keba domain start/stop doesn't do anything from Node-Red.

deqw commented 9 months ago

Tested and can confirm this Node-Red route works fine, although it might not solve the @mattsve opening issue.