MartinGris / node-red-contrib-skoda-connect

Simple Node-RED node for interacting with Skoda connect
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Issues with climate control #11

Open sledge1977 opened 2 years ago

sledge1977 commented 2 years ago

Hi

first - thanks for this great node. I'm having issues with the set node. Get works fine. I can read all data that I want/need. But when trying to set the temperature for the climate control I get an error.

10 May 20:32:45 - [error] [skoda-set:48bb472bb5830a01] 404
10 May 20:32:45 - [error] [skoda-set:48bb472bb5830a01] getHomeRegion failed
10 May 20:32:45 - [error] [skoda-set:48bb472bb5830a01] {"error":{"errorCode":"mbbc.registrationserver.sopCalculationFailed","description":"Could not calculate the SOP for vin=XXXXXXXXXXXXXXXXXX"}}
10 May 20:33:52 - [info] [pushover api:Valiant] pushover POST succeeded:
"{\"status\":1,\"request\":\"xxxxxxxxxxxxxx"}"
getHomeRegion
10 May 20:34:38 - [error] [skoda-set:48bb472bb5830a01] 404
10 May 20:34:38 - [error] [skoda-set:48bb472bb5830a01] getHomeRegion failed
10 May 20:34:38 - [error] [skoda-set:48bb472bb5830a01] {"error":{"errorCode":"mbbc.registrationserver.sopCalculationFailed","description":"Could not calculate the SOP for vin=XXXXXXXXXXXXXXXXXX"}}
getHomeRegion
10 May 20:36:25 - [error] [skoda-set:48bb472bb5830a01] 404
10 May 20:36:25 - [error] [skoda-set:48bb472bb5830a01] getHomeRegion failed
10 May 20:36:25 - [error] [skoda-set:48bb472bb5830a01] {"error":{"errorCode":"mbbc.registrationserver.sopCalculationFailed","description":"Could not calculate the SOP for vin=XXXXXXXXXXXXXXXXXX"}}
getHomeRegion
10 May 20:36:38 - [error] [skoda-set:48bb472bb5830a01] 404
10 May 20:36:38 - [error] [skoda-set:48bb472bb5830a01] getHomeRegion failed
10 May 20:36:38 - [error] [skoda-set:48bb472bb5830a01] {"error":{"errorCode":"mbbc.registrationserver.sopCalculationFailed","description":"Could not calculate the SOP for vin=XXXXXXXXXXXXXXXXXX"}}

404 - seems like an URL has changed?

Thx

MartinGris commented 2 years ago

Hi,

still working for me. The getHomeRegion method is also called when you querying the car data. So if this is working for you maybe you out the wrong vin number to the get-node ?

sledge1977 commented 2 years ago

Hi, tried again, but still the same issue. I have only one car connected to Skoda Connect. I verified the VIN in the Skoda Connect App. I'm able to set the values in Skoda Connect. I'm still getting the 404 error. And after trying Skoda-Set, Skoda-Get is no longer working. Giving me the error "TypeError: Cannot read property 'vehicle' of null" Any ideas?

MartinGris commented 2 years ago
  1. what kind of Skoda do you have?
  2. please check your input of the set-node. for example: {"payload": ,"vin": }
sledge1977 commented 2 years ago

Hi Martin, I have a Skoda Enyaq iV. I tried two ways.

  1. Inject Node with two fields. VIN and payload. I took the VIN from the Get Node
  2. Function node with following content: msg = { "vin": "xxxxxxxxxxxxx", "payload": 19.0 } return msg;

Both ways give me the same error: 24.5.2022, 22:29:27node: 48bb472bb5830a01 msg : number 404 24.5.2022, 22:29:27node: 48bb472bb5830a01 msg : string[20] "getHomeRegion failed" 24.5.2022, 22:29:27node: 48bb472bb5830a01 msg : string[140] "{"error":{"errorCode":"mbbc.registrationserver.sopCalculationFailed","description":"Could not calculate the SOP for vin=xxxxxxxxxxx"}}"

sledge1977 commented 2 years ago

I tested with ioBroker today and it is working there. So it seems that at least it is possible to write a new setpoint.

MartinGris commented 2 years ago

I'm sorry but the set node doesn't support Enyaq at the moment. Skoda is using a different API just for this model and I only implemented it for the get node. I'm on vacation the next weeks so there is no time to work on it soon. But everybody is invited to participate at the development!

sledge1977 commented 2 years ago

I will try to contribute. I will have a look at the ioBroker VW Connect adapter and see how it can be solved. I haven't created a Node Red node yet, but I will do my best - time is my biggest issue :)