dgthomson / nodered-shellrecharge

A subflow for Nodered to control Shell Recharge car charging equipment.
GNU General Public License v3.0
20 stars 7 forks source link

Actions start, stop outputs error not found or not permitted #7

Closed Marc1200 closed 1 year ago

Marc1200 commented 1 year ago

I have a problem with the action start stop, when i inject start and stop then i get the following error: 9d1c491f862db027018d4c3c19f87a4319f76995 @dgthomson do you know what the problem is? Or is this also because of changing shell api?

dgthomson commented 1 year ago

Not sure. I have uploaded a version for you. Please send over as much of its debug output as possible.

Marc1200 commented 1 year ago

Below are the screenshots of the debug output, i saw a double slash between chargepoints and remote-control maybe that is something wrong image image image image

dgthomson commented 1 year ago

Below are the screenshots of the debug output, i saw a double slash between chargepoints and remote-control

Yes, that's a problem [the charger UUID should be there]. In the node setup, what have you entered in Charger ID and Card ID?

Screenshot 2023-02-26 at 11 15 27
Marc1200 commented 1 year ago

I entered the entire array of chargepoints into charger id And the chargetokens array into card id

dgthomson commented 1 year ago

Enter just a number corresponding with the array index...

Data
Marc1200 commented 1 year ago

Okay, when i use 2 cards, can i add a payload to the start command to choose the card which i'm using for charge ?

dgthomson commented 1 year ago

There is a version Marc1200-cardid.json that you can try. It accepts

msg.payload.cardid: \<number>

to select whichever card you want for the session.

(Edited)

Marc1200 commented 1 year ago

Okay, I will try later with 2 cards, i know configured it with one card. Start, stop and charging status are working perfectly. Many thanks for the help!