ysimonx / node-red-contrib-melcloud

node-red node for mitsubishi with melcloud API
MIT License
15 stars 5 forks source link

Error 403; "SyntaxError: Unexpected token S in JSON at position 4" with melcloud-device or melcloud-overide #11

Closed Meewis closed 1 year ago

Meewis commented 1 year ago

Hi,

With melcloud-connect I get the correct return of data; BuildingID, DeviceID. Then I fill out the settings for the melcloud-device and connect it to a default inject node and a debug node (likewise melcloud-device.png). Then when i push the inject node, I get an error message at the debug node: {"statusCode":403,"payload":"\r\n{ Success: false, ErrorMessage: \"Forbidden\"}","error":"SyntaxError: Unexpected token S in JSON at position 4"}

Am I doing something wrong?

Kind regards, Wilco

mengi69 commented 1 year ago

I have the same error... it happens to me the same as it happens to you, but I can't find help anywhere. I have asked here, but I do not receive an answer.

Meewis commented 1 year ago

Found the cause of my problems; wrong DeviceID. It should be copied from: payload[0].Structure.Floors[0].Devices[0].DeviceID

Kind regards, Wilco

mengi69 commented 1 year ago

image

Me, I try to put the Set of the temperature of the hot water tank, but it puts, not defined

image

Meewis commented 1 year ago

You only can use the terms as shown in the example. SetTankwaterTemperatue does not exist.

mengi69 commented 1 year ago

But I would like to use it to change the temperature of my hot water tank for the shower.

Meewis commented 1 year ago

It is not foreseen in this code and also not in the code of this type of Mitsubishi equipment....

mengi69 commented 1 year ago

Okay, I didn't know... let's see if one day they solve it, to be able to put the temperature.

Thank you very much.