custom-components / zaptec

zaptec charger custom component for home assistant
MIT License
67 stars 20 forks source link

call service failure #28

Closed Kirono closed 1 year ago

Kirono commented 1 year ago

Call service does not work for me I get the error message "Failed to call service zaptec.start_charging. Error rendering data template: Result is not a Dictionary. Could it be because I have the wrong charger id? I could not find any id with the format: yyyyyyyy-9999-99xx-xxx-yyyyyyyyyyyy. Where can I find this id?

thols11 commented 1 year ago

I have somewhat the same issue. I get an error message saying "required key not provided @ data['charger_id']".

Kirono commented 1 year ago

Yes, i get the same error when I don’t have anything in the service data field, but when I add something I get my error

thols11 commented 1 year ago

@Kirono what field and in whitch file have you added the Zap id?

Kirono commented 1 year ago

zaptec Just tested it in developer tools call service and there is a data field there

thols11 commented 1 year ago

Well, I gave up, I found an integration to the car itself (Kia) on github and uses that to start/stop charging. I can also start/ stop preheating of the car.

jorgel272 commented 1 year ago

I stumbled upon this issue and was also not able to use the Zaptec HAC integration. I had the same error message "required key not provided @ data['charger_id']".

The solution was to get the correct value from the device. I used the value "ID" shown under attributes of the charger.

image

Hope this works for others!

sveinse commented 1 year ago

@Kirono Is this issue still open? Did you get the help you needed? Thanks.

sveinse commented 1 year ago

A new 0.7.0 version has been released that fixes some of the service call issues. Can you please test. I'd like to close the issue if this issue is no longer valid. Thanks.