-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error code 500 #27
Comments
same problem here.. :( |
It looks like MELcloud does not accept urlencoded forms. I have created a quick-and-dirty (very dirty) fix by replacing the urlencoded form with a json one. I don't have a time for patch or pull request now, so you have to edit plugin.py manually I also don't have time to check the whole code now so I don't want to patch the original melcloud_send_data function as it is used elsewhere. So copy the function melcloud_send_data as melcloud_send_data_json and change the content-type from application/x-www-form-urlencoded; to application/json;
Then change melcloud_set as follows (you may keep the old code as melcloud_set_urlencoded just in case):
EDIT: it seems MELcloud is validating the json syntax so I had to make some changes (lowcase for power, single quotes) |
Hello, I have tried but it does unfortunately not operate properly (maybe due to a bad paste from my side), see log below. By the way, it looks like there is some knowledgeable people there, would it be possible improving the plugin using a setpoint type device for temp setpoint instead of a multi level switch? Patrice 2022-02-01 16:02:27.805 Status: MELCloud: Initialized version 0.7.8, author 'gysmo' |
Did you left the original melcloud_send_data function intact? You are supposed to copy it and then change the name and content type, leaving the original function as it is, because it is used elsewhere (during login process, for example). You can probably make a script to synchronize the selector values with a setpoint. |
It looks like I did not catch something. Could you please share your plugin.py file? Thanks! |
Here it is |
Thanks ! |
When using the latest plugin version, I get others errors, like described in #24 and #22 |
It's hard to say. Unfortunately the debug setting does not work so you have to uncomment Domoticz.Debugging(62) or Domoticz.Debugging(-1) in my file and restart. Try not to use areas, only floors. Do not use any non-ascii characters in names. |
|
Thanks for this fix. It made me able to controle the airco's with Domoticz again. I do get the errors below. Any idea how to solve these? 2022-02-05 21:00:58.239 Error: Airco: (Airco) 'onMessage' failed 'UnboundLocalError':'local variable 'setPicID' referenced before assignment'. |
The given file works for me (only tested on a standard use case start/stop) ! Thx a lot :) Note the given file also includes the changes relative to #25, and I'm waiting to see if it crashed after some time or not (ongoing test, I'll let you know). |
As I was facing the same issue as several, I dig a bit in the plugin, and rewrote a bit the login function, to use json instead url-encoded logic. I also adapted the device discovery process to be able to discover my devices. Here is the modified file: |
I'll try this!
Thanks! |
Hello, Thanks to @mitkodotcom for the quick fix, it worked well for me. Hope the plugin will be updated properly :) |
Hi, I am facing the same issue : 2022-08-18 23:31:25.180 MelCloud clim: Set to Vent the unit Haut I tried several plugin.py, but still the same :( |
did you fix it? mine starting doing the same thing after 2 days of running... |
Gracias Patricen1, gracias a tu archivo todo funciona a la perfección. |
Hello, Today, I tried to solve a hearbeat problem with a rewrite of the heartbeat management. Thanks for correcting error code 500 ;) Have fun ;) EDIT : after few fixes... v0.8.2 based on Nonolk version : EDIT : and v0.8.3 based on Mitkodotcom version : Dalonsic. |
I'm afraid none of the solutions work for me. When I try the latest plugin.py in the post above, it gives me a lot of syntax errors: Any chance of a proper cleanup on the plugin? |
Hello,
Since a couple of days, there is an issue when controlling air conditioner.
Status is correctly uploaded to Domoticz, but when trying to control air conditioner from Domoticz, the following message appears in the log and there is no effect on the aircon system : "MELCloud receive unknonw message with error code 500".
Has anybody got a clue regarding this issue?
Thanks
The text was updated successfully, but these errors were encountered: