Page 6 of 8
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Friday 06 April 2018 9:34
by dextm80
gysmo38 wrote:@dextm80 What is your platform? I try with Ubuntu and RPI2, it work well.
It look like there is a missing library in python. I only import json and time.
Ubuntu 16.04, i’ve other python plugin and it works well
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Friday 06 April 2018 13:46
by miljume
For me the upgrade works really well, all reconnection errors are gone (so far ...)
Very good work!
Skickat från min SM-G960F via Tapatalk
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Friday 06 April 2018 21:42
by gysmo38
@dextm80 Here is the list of python package installed on my computer
libpython3.6:amd64 install
libpython3.6-dev:amd64 install
libpython3.6-minimal:amd64 install
libpython3.6-stdlib:amd64 install
python3.6 install
python3.6-dev install
python3.6-minimal install
Check if you have the same installed
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Friday 06 April 2018 23:49
by dextm80
gysmo38 wrote: ↑Friday 06 April 2018 21:42
@dextm80 Here is the list of python package installed on my computer
libpython3.6:amd64 install
libpython3.6-dev:amd64 install
libpython3.6-minimal:amd64 install
libpython3.6-stdlib:amd64 install
python3.6 install
python3.6-dev install
python3.6-minimal install
Check if you have the same installed
@gysmo38
yes, all ok. I try to delete and reinstall plugin,nw it starts but with errors:
Code: Select all
2018-04-06 23:47:18.932 (Melcloud) Connection to MELCloud OK
2018-04-06 23:47:18.932 Error: (Melcloud) failed to parse parameters, Message or Message,Verb,URL,Headers,Delay expected.
2018-04-06 23:47:18.932 Error: (Melcloud) 'CConnection_send' failed 'TypeError':'a bytes-like object is required, not 'dict''.
2018-04-06 23:47:28.365 Error: (Melcloud) 'onHeartbeat' failed 'TypeError':'Can't convert 'NoneType' object to str implicitly'.
2018-04-06 23:47:28.365 Error: (Melcloud) ----> Line 424 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-06 23:47:28.365 Error: (Melcloud) ----> Line 283 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Monday 09 April 2018 21:30
by gysmo38
@dextm80 Can you ative debug and send me your debug. I think there is a problem with autentication. Can you double check you login and password?
Maybe you can send me in PM .
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Tuesday 10 April 2018 10:32
by dextm80
gysmo38 wrote: ↑Monday 09 April 2018 21:30
@dextm80 Can you ative debug and send me your debug. I think there is a problem with autentication. Can you double check you login and password?
Maybe you can send me in PM .
Hi @gysmo38, yes i check my id and pwd and all is ok.
How i can enable debug?
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Saturday 14 April 2018 9:40
by echeberri77
gysmo38 wrote: ↑Wednesday 04 April 2018 19:03
Hello,
Yes news

I rewrite all the plugin to use builtin plugin system.
You can try it :
https://github.com/gysmo38/domoticz-python-melcloud
It should be more stable. If there is any issue, just send a message here, I will try to answer (shortly if possible)
Hi,
thanks for you plugin!
I am a total newbie so I ask for pardon then I ask: how to configure it step-by-step?
I downloaded last version of your plugin and saved it into my domoticz plugin directory then I gave it "chmod +x" to make it executable.
I restarted domoticz but nothing happened....
1)Do I have to manually create devices? Which device type and names?
2)Do I have to specify somewhere melcloud username and password?
3)Do I have to use config file or....it it plugin file enough to make it work?
4)Do I have to create variables? Which ones?
Please help newbies!!
Thanks
Xavier
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Saturday 14 April 2018 10:04
by echeberri77
Ok, I figured out how to install plugin, but I get these errors:
Code: Select all
2018-04-14 10:02:04.735 (MelCloud) Connection to MELCloud OK
2018-04-14 10:02:04.735 Error: (MelCloud) 'onConnect' failed 'KeyError'.
2018-04-14 10:02:04.735 Error: (MelCloud) ----> Line 404 in /home/xavier/domoticz/plugins/Melcloud/plugin.py, function onConnect
2018-04-14 10:02:04.735 Error: (MelCloud) ----> Line 123 in /home/xavier/domoticz/plugins/Melcloud/plugin.py, function onConnect
2018-04-14 10:02:04.735 Error: (MelCloud) ----> Line 323 in /home/xavier/domoticz/plugins/Melcloud/plugin.py, function melcloud_login
2018-04-14 10:02:13.951 Error: (MelCloud) 'onHeartbeat' failed 'TypeError':'Can't convert 'NoneType' object to str implicitly'.
2018-04-14 10:02:13.951 Error: (MelCloud) ----> Line 424 in /home/xavier/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-14 10:02:13.951 Error: (MelCloud) ----> Line 283 in /home/xavier/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Sunday 15 April 2018 9:16
by gysmo38
@dextm80: In the plugin configuration page (where you put your login/pass) you can put debut at true.
Do you have a Segmentation fault ? Which version do you use?
@echeberri77
1)Do I have to manually create devices? Which device type and names?
No everything is created by the plugin
2)Do I have to specify somewhere melcloud username and password?
Go to Hardware add melcloud plugin. You will have a page where you can put your login/password
3)Do I have to use config file or....it it plugin file enough to make it work?
no
4)Do I have to create variables? Which ones?
no
I saw your logs, I will check it. Which version do you use of Domoticz?
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Sunday 15 April 2018 10:23
by gysmo38
@dextem80 and @echeberri77 I have updated the plugin. Can you try and give me feedback? Thank you
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Sunday 15 April 2018 11:48
by echeberri77
Gysmo: Immediately! I'll test it today and I'll report any bugs...
Thanks!!
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Sunday 15 April 2018 12:05
by echeberri77
Plugin is working good but I still have these errors on log:
Code: Select all
2018-04-15 12:04:42.065 (Condizionatore salotto) Current MEL Cloud Key ID:29CD07C0F8DD4D1389F5A6749041F1
2018-04-15 12:04:42.215 (Condizionatore salotto) Update unit Mitsu-salotto information.
2018-04-15 12:04:42.218 Error: (Condizionatore salotto) 'onMessage' failed 'UnboundLocalError':'local variable 'setDomFan' referenced before assignment'.
2018-04-15 12:04:42.218 Error: (Condizionatore salotto) ----> Line 408 in /home/xavier/domoticz/plugins/Melcloud/plugin.py, function onMessage
2018-04-15 12:04:42.218 Error: (Condizionatore salotto) ----> Line 176 in /home/xavier/domoticz/plugins/Melcloud/plugin.py, function onMessage
2018-04-15 12:04:42.218 Error: (Condizionatore salotto) ----> Line 385 in /home/xavier/domoticz/plugins/Melcloud/plugin.py, function domoticz_sync_switchs
My domoticz version is: 3.9203
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Sunday 15 April 2018 17:36
by miljume
I have been running the newest version for some time but lately I have had some problems
The plugin does not update the value from MelCloud if I change the temp there and I get the following errors in the log
Code: Select all
2018-04-15 17:33:17.994 Error: (MelCloud) 'onMessage' failed 'UnboundLocalError':'local variable 'setDomTemp' referenced before assignment'.
2018-04-15 17:33:17.994 Error: (MelCloud) ----> Line 408 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onMessage
2018-04-15 17:33:17.994 Error: (MelCloud) ----> Line 176 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onMessage
2018-04-15 17:33:17.994 Error: (MelCloud) ----> Line 386 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function domoticz_sync_switchs
@gysmo38 Anything you could look into?
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Monday 16 April 2018 7:49
by whatisk
Just wondering if there was any update to having the plugin work for Australia (app.melview.net).
I saw some talk but then nothing else. Happy to help out however I can.
Cheers.
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Monday 16 April 2018 19:14
by gysmo38
@whatisk I would like to try but I was not able to create an account to make test. I think it check is the connection it from Australia.
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Monday 16 April 2018 22:25
by gysmo38
@miljume I test it work for me. Can you put the plugin option debug to true and send me detailed log in PM?
@echeberri77 Can you put the plugin option debug to true and send me detailed log in PM?
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Tuesday 17 April 2018 2:31
by whatisk
gysmo38 wrote: ↑Monday 16 April 2018 19:14
@whatisk I would like to try but I was not able to create an account to make test. I think it check is the connection it from Australia.
Bummer. If I can assist in some way let me know as would really like to get this working here

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Wednesday 18 April 2018 7:19
by whatisk
I have found the following. Not sure if it helps at all with getting an Australian version going...
https://github.com/NovaGL/diy-melview
https://github.com/lennyby93/node-mmcontrol
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Wednesday 18 April 2018 17:36
by miljume
gysmo38 wrote: ↑Monday 16 April 2018 22:25
@miljume I test it work for me. Can you put the plugin option debug to true and send me detailed log in PM?
I removed and added the plugin in hardware setup and since then this error hasn't occurred again
But I have receive some other errors that I am not sure if it is a problem or not?
Code: Select all
2018-04-17 22:14:42.052 Error: (MelCloud): Async Secure Read Exception: 104, Connection reset by peer
But for now it seems like the plugin is working well

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Friday 20 April 2018 23:31
by dextm80
gysmo38 wrote: ↑Sunday 15 April 2018 10:23
@dextem80 and @echeberri77 I have updated the plugin. Can you try and give me feedback? Thank you
Hi @gysmo38, i've updated plugin but it doesn't still work
Code: Select all
2018-04-20 23:21:41.029 Error: (Melcloud) failed to parse parameters, Message or Message,Verb,URL,Headers,Delay expected.
2018-04-20 23:21:41.029 Error: (Melcloud) 'CConnection_send' failed 'TypeError':'a bytes-like object is required, not 'dict''.
2018-04-20 23:21:48.014 Error: (Melcloud) 'onHeartbeat' failed 'TypeError':'Can't convert 'NoneType' object to str implicitly'.
2018-04-20 23:21:48.014 Error: (Melcloud) ----> Line 436 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:21:48.014 Error: (Melcloud) ----> Line 295 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:22:13.032 Error: (Melcloud) 'onHeartbeat' failed 'TypeError':'Can't convert 'NoneType' object to str implicitly'.
2018-04-20 23:22:13.032 Error: (Melcloud) ----> Line 436 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:22:13.032 Error: (Melcloud) ----> Line 295 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:22:38.001 Error: (Melcloud) 'onHeartbeat' failed 'TypeError':'Can't convert 'NoneType' object to str implicitly'.
2018-04-20 23:22:38.001 Error: (Melcloud) ----> Line 436 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:22:38.001 Error: (Melcloud) ----> Line 295 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:23:03.016 Error: (Melcloud) 'onHeartbeat' failed 'TypeError':'Can't convert 'NoneType' object to str implicitly'.
2018-04-20 23:23:03.016 Error: (Melcloud) ----> Line 436 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:23:03.016 Error: (Melcloud) ----> Line 295 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:23:28.028 Error: (Melcloud) 'onHeartbeat' failed 'TypeError':'Can't convert 'NoneType' object to str implicitly'.
2018-04-20 23:23:28.028 Error: (Melcloud) ----> Line 436 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:23:28.028 Error: (Melcloud) ----> Line 295 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-04-20 23:23:39.483 Error: Plugin: Async Read Exception: 104, Connection reset by peer
2018-04-20 23:23:39.510 Error: Plugin: Disconnect Exception: 107, Transport endpoint is not connected
where is locate debug file?