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

For heating/cooling related questions in Domoticz
miljume
Posts: 78
Joined: Thursday 03 December 2015 22:36
Target OS: Raspberry Pi
Domoticz version: v3.8742
Contact:

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

Post by miljume » Friday 24 November 2017 22:18

Anyone?

Have anyone got this working with v3.8742?

Still getting

Code: Select all

2017-11-24 20:48:22.967 Error: (MELCloud) 'onHeartbeat' failed 'KeyError'.
2017-11-24 20:48:22.967 Error: (MELCloud) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-11-24 20:48:22.967 Error: (MELCloud) ----> Line 229 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat

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

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

Post by miljume » Sunday 26 November 2017 19:53

OK, I managed to figure out to change the language number in the code to 18 for Swedish. Perhaps that could be added in the configuration settings of the Domoticz hardware in the next version?

But the main errors are still there

Code: Select all

2017-11-26 18:51:34.445 Error: (MELCloud) 'onHeartbeat' failed 'KeyError'.
2017-11-26 18:51:34.445 Error: (MELCloud) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-11-26 18:51:34.445 Error: (MELCloud) ----> Line 229 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
@gysmo38: Any chance you could take a look at this?

Fred26
Posts: 2
Joined: Friday 03 November 2017 11:28
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: France
Contact:

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

Post by Fred26 » Sunday 07 January 2018 19:25

Hello all Domoticz and MelCloud users !

I still have problems with the MelCloud plugin when my own script changes 2 parameters at the same time ("mode" and "set temp" for example).
I seems the plugin can send only one parameter at a time, can anybody confirm this point ?
Is there a way to send only one command to Melcloud with the 2 parameters inside ? Or send 2 commands with a delay between them ?

Thanks and regards

Frederic

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

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

Post by miljume » Friday 12 January 2018 21:24

After I reinstalled the plugin it started working again

But I som recurrent problems that I can't get rid of

When changing the vanes I get the following error:

Code: Select all

2018-01-12 20:17:58.913 (MelCloud) Device not found
so switching the vanes simply doesn't work

And occasionally I also get:

Code: Select all

2018-01-12 15:55:52.648 Error: (MelCloud) 'onHeartbeat' failed 'HTTPError'.
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 226 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 479 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function melGetStatus
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 153 in /usr/lib/python3.4/urllib/request.py, function urlopen
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 461 in /usr/lib/python3.4/urllib/request.py, function open
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 571 in /usr/lib/python3.4/urllib/request.py, function http_response
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 499 in /usr/lib/python3.4/urllib/request.py, function error
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 433 in /usr/lib/python3.4/urllib/request.py, function _call_chain
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 579 in /usr/lib/python3.4/urllib/request.py, function http_error_default
Sometimes when this happens the plugin doesn't sync back again without restart of Domoticz

koppola
Posts: 3
Joined: Monday 22 January 2018 16:14
Target OS: Windows
Domoticz version: 3.8833
Contact:

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

Post by koppola » Monday 22 January 2018 19:20

here domoticz crashes after adding melcloud plugin as hardware
any help?

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

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

Post by dextm80 » Wednesday 24 January 2018 1:56

miljume wrote:
Sunday 26 November 2017 19:53
OK, I managed to figure out to change the language number in the code to 18 for Swedish. Perhaps that could be added in the configuration settings of the Domoticz hardware in the next version?

But the main errors are still there

Code: Select all

2017-11-26 18:51:34.445 Error: (MELCloud) 'onHeartbeat' failed 'KeyError'.
2017-11-26 18:51:34.445 Error: (MELCloud) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-11-26 18:51:34.445 Error: (MELCloud) ----> Line 229 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
@gysmo38: Any chance you could take a look at this?
@gysmo38
same error for me :(

Code: Select all

 2018-01-26 17:28:35.682 Error: (Mitsubishi Kirigamine) 'onHeartbeat' failed 'KeyError'.
2018-01-26 17:28:35.683 Error: (Mitsubishi Kirigamine) ----> Line 520 in /home/luigi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-01-26 17:28:35.683 Error: (Mitsubishi Kirigamine) ----> Line 227 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

User avatar
AndreaC
Posts: 1
Joined: Wednesday 24 January 2018 19:17
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Italy
Contact:

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

Post by AndreaC » Wednesday 31 January 2018 17:25

Hello,
i have same problem on line 520 and 227.
How can i do?
thanks.
Domoticz 3.8153 Raspbian stretch Raspberry PI 2 B
Honeywell Evohome - Mitsubishi conditioner
ESP8266 temp/hum sensors - ESP8266 Balcony irrigation
OpenWRT 15.05 on WL-500GP
Asterisk 1.8.32.3 - Gigaset A580 IP
Fujitsu Celvin Q600 (QNAP TS-109)

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

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

Post by dextm80 » Wednesday 31 January 2018 21:48

AndreaC wrote:Hello,
i have same problem on line 520 and 227.
How can i do?
thanks.

I’ve to wait a plugin update
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: 68
Joined: Saturday 01 February 2014 14:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

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

Post by gysmo38 » Tuesday 06 February 2018 22:00

Hello,

I will update the plugin.

I check for Vane, it is not yet coded. I started to code it, I will post an update when it is ready.

Do you known the frequency happen the Key Error. I have not this issue.

Key Error mean there is a problem with authentication .


Gysmo

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

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

Post by dextm80 » Tuesday 06 February 2018 23:31

gysmo38 wrote:
Tuesday 06 February 2018 22:00
Hello,

I will update the plugin.

I check for Vane, it is not yet coded. I started to code it, I will post an update when it is ready.

Do you known the frequency happen the Key Error. I have not this issue.

Key Error mean there is a problem with authentication .


Gysmo
Hi Gysmo, username and password are ok,i check it.

the error frequency is every 25 seconds
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: [Perl] Control Mitsubishi MAC-557IF-E airconditioning

Post by miljume » Wednesday 07 February 2018 9:51

Hello,

I also had the problem with KeyError but that stopped after I removed the plugin and re-installed it

Main problem for me is that I very often have the following errors in the log (at least 1-2 times each day). I know that it points at connection problems but the fact is that I don't experience any other problems with connections. Sometimes after that it also seems like the plugin doesn't re-connect to MelCloud where a restart is the only way to solve this

Code: Select all

2018-01-12 15:55:52.648 Error: (MelCloud) 'onHeartbeat' failed 'HTTPError'.
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 226 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 479 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function melGetStatus
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 153 in /usr/lib/python3.4/urllib/request.py, function urlopen
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 461 in /usr/lib/python3.4/urllib/request.py, function open
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 571 in /usr/lib/python3.4/urllib/request.py, function http_response
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 499 in /usr/lib/python3.4/urllib/request.py, function error
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 433 in /usr/lib/python3.4/urllib/request.py, function _call_chain
2018-01-12 15:55:52.648 Error: (MelCloud) ----> Line 579 in /usr/lib/python3.4/urllib/request.py, function http_error_default
@Gysmo: Any chance you could also look into the connection logic when updating the plugin?

Regards,
Mikael

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

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

Post by gysmo38 » Sunday 11 February 2018 0:36

On wiki page I upload a new version to control Vanes.

I start rewrite a new version with clean code. I will update the plugin when it is ready.

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 18 March 2018 20:55

Anyone else having problems with URLError?
I receive below error at least once a day and when it happens the room temp sensor stops updating. It is also not possible to change the temp on the selector switch. Only way to solve it is to restart Domoticz and wait for it to happen again :x

Code: Select all

2018-03-16 18:17:31.674 Error: (MelCloud) 'onStart' failed 'URLError'.
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 571 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onStart
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 74 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onStart
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 343 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function melLogin
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 153 in /usr/lib/python3.4/urllib/request.py, function urlopen
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 455 in /usr/lib/python3.4/urllib/request.py, function open
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 473 in /usr/lib/python3.4/urllib/request.py, function _open
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 433 in /usr/lib/python3.4/urllib/request.py, function _call_chain
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 1217 in /usr/lib/python3.4/urllib/request.py, function https_open
2018-03-16 18:17:31.675 Error: (MelCloud) ----> Line 1180 in /usr/lib/python3.4/urllib/request.py, function do_open

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 03 April 2018 14:35

@gysmo news ?

tnx :)
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: 68
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 » 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)

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 » Wednesday 04 April 2018 22:36

Hi @gysmo, thanks!

I've update plugin.py and it's results:

Code: Select all

 2018-04-04 22:24:40.727 Error: (MELCloud) failed to load 'plugin.py', Python Path used was '/home/luigi/domoticz/plugins/Melcloud/:/usr/lib/python35.zip:/usr/lib/python3.5/:/usr/lib/python3.5/plat-x86_64-linux-gnu:/usr/lib/python3.5/lib-dynload'.
2018-04-04 22:24:40.727 Error: (Mitsubishi Kirigamine) Module Import failed, exception: 'TypeError'
2018-04-04 22:26:00.361 Error: Mitsubishi Kirigamine hardware (6) thread seems to have ended unexpectedly 
any ideas?
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

Xian
Posts: 3
Joined: Monday 28 December 2015 1:43
Target OS: Windows
Domoticz version:
Contact:

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

Post by Xian » Thursday 05 April 2018 6:53

Hi !

I am running Homeseer and have made a script to implement the HVAC in HS. But I am struggling with the EffectiveFlags. I am able to set the different values, but the HVAC turns off at the same time...

T.Ex if I use EffectiveFlags 8 to set the Fanspeed to 1. The Fanspeed is going to 1 but the HVAC also goes in Off Mode.How have you made this to work ?

gysmo38
Posts: 68
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 » Thursday 05 April 2018 20:52

@dextm80 Please try to delete the plugin in hardware and create again. I am not sure that update work well because I change devices parameters in domoticz.

@Xian I notice the same issue with my plugin. I notice that if I send only valueof fan speed for example without value for vanes and others parameters, it not work.
Flag with value 8 is correct for set fan but you need to send this parameters with value:
Power
DeviceID
OperationMode
SetTemperature
SetFanSpeed
VaneHorizontal
VaneVertical
EffectiveFlags
HasPendingCommand=true

I have one function to update and I only change EffectiveFlags value depend on what I wand to change.

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 » Thursday 05 April 2018 21:00

@gysmo38 already tried but not works :(
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: 68
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 7:40

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests