Page 5 of 8
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Friday 24 November 2017 21:18
by miljume
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
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Sunday 26 November 2017 18:53
by miljume
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?
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Sunday 07 January 2018 18:25
by Fred26
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
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Friday 12 January 2018 20:24
by miljume
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
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Monday 22 January 2018 18:20
by koppola
here domoticz crashes after adding melcloud plugin as hardware
any help?
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Wednesday 24 January 2018 0:56
by dextm80
miljume wrote: ↑Sunday 26 November 2017 18: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
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Wednesday 31 January 2018 16:25
by AndreaC
Hello,
i have same problem on line 520 and 227.
How can i do?
thanks.
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Wednesday 31 January 2018 20:48
by dextm80
AndreaC wrote:Hello,
i have same problem on line 520 and 227.
How can i do?
thanks.
I’ve to wait a plugin update
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Tuesday 06 February 2018 21:00
by gysmo38
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
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Tuesday 06 February 2018 22:31
by dextm80
gysmo38 wrote: ↑Tuesday 06 February 2018 21: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
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Wednesday 07 February 2018 8:51
by miljume
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
Re: [Perl] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Saturday 10 February 2018 23:36
by gysmo38
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.
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Sunday 18 March 2018 19:55
by miljume
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
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
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Tuesday 03 April 2018 14:35
by dextm80
@gysmo news ?
tnx

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Wednesday 04 April 2018 19:03
by gysmo38
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)
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Wednesday 04 April 2018 22:36
by dextm80
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?
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Thursday 05 April 2018 6:53
by Xian
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 ?
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Thursday 05 April 2018 20:52
by gysmo38
@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.
Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Thursday 05 April 2018 21:00
by dextm80
@gysmo38 already tried but not works

Re: [Python] Control Mitsubishi MAC-557IF-E airconditioning
Posted: Friday 06 April 2018 7:40
by gysmo38
@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.