[Python] Control Mitsubishi MAC-557IF-E airconditioning

For heating/cooling related questions in Domoticz
dextm80
Posts: 78
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 3.9527
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by dextm80 » Friday 06 April 2018 9:34

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
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
2x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

miljume
Posts: 78
Joined: Thursday 03 December 2015 22:36
Target OS: Raspberry Pi
Domoticz version: v3.8742
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by miljume » Friday 06 April 2018 13:46

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


gysmo38
Posts: 66
Joined: Saturday 01 February 2014 14:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by gysmo38 » 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

dextm80
Posts: 78
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 3.9527
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by dextm80 » Friday 06 April 2018 23:49

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 
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
2x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

gysmo38
Posts: 66
Joined: Saturday 01 February 2014 14:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by gysmo38 » 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 .

dextm80
Posts: 78
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 3.9527
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by dextm80 » Tuesday 10 April 2018 10:32

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?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
2x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

echeberri77
Posts: 36
Joined: Friday 09 March 2018 19:52
Target OS: Linux
Domoticz version: 3.9203
Location: Italy
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by echeberri77 » Saturday 14 April 2018 9:40

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

echeberri77
Posts: 36
Joined: Friday 09 March 2018 19:52
Target OS: Linux
Domoticz version: 3.9203
Location: Italy
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by echeberri77 » Saturday 14 April 2018 10:04

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

gysmo38
Posts: 66
Joined: Saturday 01 February 2014 14:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by gysmo38 » Sunday 15 April 2018 9:16

@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?

gysmo38
Posts: 66
Joined: Saturday 01 February 2014 14:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by gysmo38 » Sunday 15 April 2018 10:23

@dextem80 and @echeberri77 I have updated the plugin. Can you try and give me feedback? Thank you

echeberri77
Posts: 36
Joined: Friday 09 March 2018 19:52
Target OS: Linux
Domoticz version: 3.9203
Location: Italy
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by echeberri77 » Sunday 15 April 2018 11:48

Gysmo: Immediately! I'll test it today and I'll report any bugs...:D

Thanks!!

echeberri77
Posts: 36
Joined: Friday 09 March 2018 19:52
Target OS: Linux
Domoticz version: 3.9203
Location: Italy
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by echeberri77 » Sunday 15 April 2018 12:05

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

miljume
Posts: 78
Joined: Thursday 03 December 2015 22:36
Target OS: Raspberry Pi
Domoticz version: v3.8742
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by miljume » Sunday 15 April 2018 17:36

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?

whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by whatisk » Monday 16 April 2018 7:49

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.

gysmo38
Posts: 66
Joined: Saturday 01 February 2014 14:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by gysmo38 » 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.

gysmo38
Posts: 66
Joined: Saturday 01 February 2014 14:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by gysmo38 » 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?

@echeberri77 Can you put the plugin option debug to true and send me detailed log in PM?

whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by whatisk » Tuesday 17 April 2018 2:31

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 :)

whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by whatisk » Wednesday 18 April 2018 7:19

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

miljume
Posts: 78
Joined: Thursday 03 December 2015 22:36
Target OS: Raspberry Pi
Domoticz version: v3.8742
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by miljume » Wednesday 18 April 2018 17:36

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 :)

dextm80
Posts: 78
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 3.9527
Contact:

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning

Post by dextm80 » Friday 20 April 2018 23:31

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?
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
2x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests