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

For heating/cooling related questions in Domoticz

Moderator: leecollings

gysmo38
Posts: 50
Joined: Saturday 01 February 2014 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by gysmo38 »

@Wob76 : I try with demo website but this is only picture, there is no real request :(

@tunnus : Sorry I do not known Verra

@italoc : I only permit value authorize with the system from 16 degree celius to 31 degree celius. The Melcloud system do not authorize for value like 16.5 degree celius.
Beh0lder
Posts: 1
Joined: Thursday 29 June 2017 10:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Beh0lder »

Hi gysmo38, I tried to add my devices with your plugin but it only add the first of all (i have 4 a/a) and it show an error when it try to add the second device:

Log:

Code: Select all

2017-06-25 19:49:26.144 (ME) Initialized version 0.4, author 'gysmo'
2017-06-25 19:49:26.199 (ME) Debug log level set to: 'true'.
2017-06-25 19:49:26.600 (ME) MELCloud Login success. Key ID:3889D91ABF5E423xxxxxxxxxxxxx
2017-06-25 19:49:26.926 (ME) Find 4 devices in MELCloud
2017-06-25 19:49:26.926 (ME) Creating device: Dormitorio pequeño with melID 80xxx
2017-06-25 19:49:26.927 (ME) Creating device 'Dormitorio pequeño - Mode'.
2017-06-25 19:49:26.930 (ME) Creating device 'Dormitorio pequeño - Fan'.
2017-06-25 19:49:26.933 (ME) Creating device 'Dormitorio pequeño - Temp'.
2017-06-25 19:49:26.937 (ME) Creating device 'Dormitorio pequeño - Horiontal Vane'.
2017-06-25 19:49:26.941 (ME) Creating device 'Dormitorio pequeño - Vertical Vane'.
2017-06-25 19:49:26.945 (ME) Creating device 'Dormitorio pequeño - Room Temp'.
2017-06-25 19:49:26.948 (ME) Creating device 'Dormitorio pequeño - Unit Infos'.
2017-06-25 19:49:27.181 (ME - Dormitorio pequeño - Mode) Updating device from 0:'' to have values 0:'0'.
2017-06-25 19:49:27.666 (ME - Dormitorio pequeño - Fan) Updating device from 0:'' to have values 0:'50'.
2017-06-25 19:49:27.843 (ME - Dormitorio pequeño - Temp) Updating device from 0:'' to have values 0:'80'.
2017-06-25 19:49:28.024 (ME - Dormitorio pequeño - Horiontal Vane) Updating device from 0:'' to have values 0:'20'.
2017-06-25 19:49:28.185 (ME - Dormitorio pequeño - Vertical Vane) Updating device from 0:'' to have values 0:'60'.
2017-06-25 19:49:28.338 (ME - Dormitorio pequeño - Room Temp) Updating device from 0:'' to have values 1:'30.0'.
2017-06-25 19:49:28.858 (ME) Creating device: Dormitorio Principal with melID 80XXX
2017-06-25 19:49:28.858 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-06-25 19:49:28.858 Error: Device creation failed, Device object is not associated with a plugin.
2017-06-25 19:49:28.858 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-06-25 19:49:28.858 Error: Device creation failed, Device object is not associated with a plugin.
2017-06-25 19:49:28.858 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-06-25 19:49:28.858 Error: Device creation failed, Device object is not associated with a plugin.
2017-06-25 19:49:28.858 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-06-25 19:49:28.858 Error: Device creation failed, Device object is not associated with a plugin.
2017-06-25 19:49:28.858 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-06-25 19:49:28.858 Error: Device creation failed, Device object is not associated with a plugin.
2017-06-25 19:49:28.858 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-06-25 19:49:28.858 Error: Device creation failed, Device object is not associated with a plugin.
2017-06-25 19:49:28.858 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-06-25 19:49:28.858 Error: Device creation failed, Device object is not associated with a plugin.
2017-06-25 19:49:29.118 Error: (ME) 'onStart' failed 'KeyError'.
2017-06-25 19:49:29.118 Error: (ME) ----> Line 315 in /home/beholder/domoticz/plugins/Melcloud/plugin.py, function onStart
2017-06-25 19:49:34.296 Hardware Monitor: Fetching data (System sensors)
2017-06-25 19:49:35.688 (ME) Calling message handler 'onHeartbeat'.
2017-06-25 19:49:35.688 (ME) Current MEL Cloud Key ID:3889D91ABF5XXXXXXXXXXXXXXXX
2017-06-25 19:49:35.688 (ME) Current MEL Building ID:29XXX
2017-06-25 19:49:35.950 (ME) ******** Dormitorio pequeño ********
2017-06-25 19:49:35.950 (ME) Sync POWER False OPERATION MODE 3 FAN SPEED 0 VANE HOZ 3 VANE VER 0 UNIT TEMP 24.0
2017-06-25 19:49:35.950 (ME - Dormitorio pequeño - Vertical Vane) Updating device from 0:'60' to have values 0:'60'.
2017-06-25 19:49:36.110 (ME - Dormitorio pequeño - Unit Infos) Updating device from 0:'' to have values 1:'NEXT UPDATE 2017-06-25T17:50:34.03MAC ADDR b0:72:bf:xx:xx:xx S/N 170203xxxx'.
2017-06-25 19:49:36.266 (ME) Infos NEXT UPDATE 2017-06-25T17:50:34.03MAC ADDR b0:72:bf:xx:xx:xx S/N 17020xxxxx
2017-06-25 19:49:36.528 Error: (ME) 'onHeartbeat' failed 'KeyError'.
2017-06-25 19:49:36.528 Error: (ME) ----> Line 406 in /home/beholder/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-06-25 19:49:45.652 (ME) Calling message handler 'onHeartbeat'.
2017-06-25 19:49:45.652 (ME) Current MEL Cloud Key ID:3889D91ABF5E423xxxxxxxx
2017-06-25 19:49:45.652 (ME) Current MEL Building ID:29xxx
2017-06-25 19:49:45.923 (ME) ******** Dormitorio pequeño ********
2017-06-25 19:49:45.923 (ME) Sync POWER False OPERATION MODE 3 FAN SPEED 0 VANE HOZ 3 VANE VER 0 UNIT TEMP 24.0
2017-06-25 19:49:45.923 (ME - Dormitorio pequeño - Vertical Vane) Updating device from 0:'60' to have values 0:'60'.
2017-06-25 19:49:46.065 (ME) Infos NEXT UPDATE 2017-06-25T17:50:34.03MAC ADDR b0:72:bf:xx:xx:xx S/N 17020xxxxx
2017-06-25 19:49:46.326 Error: (ME) 'onHeartbeat' failed 'KeyError'.
2017-06-25 19:49:46.326 Error: (ME) ----> Line 406 in /home/beholder/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
Could you check the problem? Thank you a lot for your great plugin
Nickkkk72
Posts: 8
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805-b
Location: France
Contact:

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

Post by Nickkkk72 »

Hi Gysmo38, thanks for your excellent script.
I've got the same issue than Beh0lder, just after adding the first of my 2 devices.

Log :

Code: Select all

2017-07-11 13:19:00.024 (Clim) Initialized version 0.4, author 'gysmo'
2017-07-11 13:19:00.083 (Clim) Debug log level set to: 'true'.
2017-07-11 13:19:00.355 (Clim) MELCloud Login success. Key ID:30E0...2109C5
2017-07-11 13:19:00.591
2017-07-11 13:19:00.668 subtype = Interface Response
Sequence nbr = 2
response on cmnd = Get Status
Transceiver type = 433.92MHz
Firmware version = 1016
Firmware type = Ext2
Hardware version = 1.3
Undec off
X10 enabled
ARC enabled
AC enabled
HomeEasy EU disabled
Meiantech/Atlantic disabled
Oregon Scientific enabled
ATI/Cartelectronic disabled
Visonic disabled
Mertik disabled
AD disabled
Hideki disabled
La Crosse disabled
FS20/Legrand disabled
ProGuard disabled
BlindsT0 disabled
BlindsT1 disabled
AE disabled
RUBiCSON disabled
FineOffset disabled
Lighting4 disabled
Conrad RSL disabled
ByronSX disabled
IMAGINTRONIX disabled
KEELOQ disabled
Home Confort disabled
2017-07-11 13:19:06.910 Incoming connection from: 127.0.0.1
2017-07-11 13:19:09.561 (Clim) Calling message handler 'onHeartbeat'.
2017-07-11 13:19:09.561 (Clim) Current MEL Cloud Key ID:30E0...2109C5
2017-07-11 13:19:09.561 (Clim) Current MEL Building ID:31...81
2017-07-11 13:19:11.186 Error: (Clim) 'onHeartbeat' failed 'KeyError'.
2017-07-11 13:19:11.186 Error: (Clim) ----> Line 406 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-07-11 13:19:19.554 (Clim) Calling message handler 'onHeartbeat'.
2017-07-11 13:19:19.555 (Clim) Current MEL Cloud Key ID:30E0...2109C5
2017-07-11 13:19:19.555 (Clim) Current MEL Building ID:31...81
2017-07-11 13:19:26.516 (Clim) ******** Simon ********
2017-07-11 13:19:26.516 (Clim) Sync POWER False OPERATION MODE 3 FAN SPEED 1 VANE HOZ 3 VANE VER 0 UNIT TEMP 16.0
2017-07-11 13:19:26.516 (Clim - Simon - Vertical Vane) Updating device from 0:'60' to have values 0:'60'.
2017-07-11 13:19:26.527 (Clim) Infos NEXT UPDATE 2017-07-11T11:23:00.763MAC ADDR 00:1d:c9:...:15:b3 S/N 1605...070
2017-07-11 13:19:28.161 Error: (Clim) 'onHeartbeat' failed 'KeyError'.
2017-07-11 13:19:28.161 Error: (Clim) ----> Line 406 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
The devices for my first unit seem to be correctly created, but no devices for the second unit.

Another thing, Homekit via Home App show me only ON/OFF Switches, no possibility to choose the temperature needed, or Mode (Off, cold, etc...) only on and off ??

Thx a lot for your answer.
Regards,
Nickkkk
Nickkkk72
Posts: 8
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805-b
Location: France
Contact:

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

Post by Nickkkk72 »

My logs when the plugin start :

Code: Select all

2017-07-11 14:45:56.239 (Clim) Initialized version 0.4, author 'gysmo'
2017-07-11 14:45:56.293 (Clim) Debug log level set to: 'true'.
2017-07-11 14:45:56.531 (Clim) MELCloud Login success. Key ID:D4F2F25DEA674DCE9608F945939FA9
2017-07-11 14:45:56.761 (Clim) Find 2 devices in MELCloud
2017-07-11 14:45:56.761 (Clim) Creating device: Simon with melID 8...9
2017-07-11 14:45:56.762 (Clim) Creating device 'Simon - Mode'.
2017-07-11 14:45:56.765 (Clim) Creating device 'Simon - Fan'.
2017-07-11 14:45:56.767 (Clim) Creating device 'Simon - Temp'.
2017-07-11 14:45:56.769 (Clim) Creating device 'Simon - Horiontal Vane'.
2017-07-11 14:45:56.771 (Clim) Creating device 'Simon - Vertical Vane'.
2017-07-11 14:45:56.774 (Clim) Creating device 'Simon - Room Temp'.
2017-07-11 14:45:56.775 (Clim) Creating device 'Simon - Unit Infos'.
2017-07-11 14:45:56.998 (Clim - Simon - Mode) Updating device from 0:'' to have values 0:'0'.
2017-07-11 14:45:57.008 (Clim - Simon - Fan) Updating device from 0:'' to have values 0:'60'.
2017-07-11 14:45:57.016 (Clim - Simon - Temp) Updating device from 0:'' to have values 0:'0'.
2017-07-11 14:45:57.025 (Clim - Simon - Horiontal Vane) Updating device from 0:'' to have values 0:'20'.
2017-07-11 14:45:57.033 (Clim - Simon - Vertical Vane) Updating device from 0:'' to have values 0:'60'.
2017-07-11 14:45:57.042 (Clim - Simon - Room Temp) Updating device from 0:'' to have values 1:'23.5'.
2017-07-11 14:45:57.047 (Clim) Creating device: Salle with melID 8...5

2017-07-11 14:45:57.047 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-11 14:45:57.047 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-11 14:45:57.047 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-11 14:45:57.047 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-11 14:45:57.047 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-11 14:45:57.048 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-11 14:45:57.048 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-11 14:45:57.048 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-11 14:45:57.048 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-11 14:45:57.048 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-11 14:45:57.048 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-11 14:45:57.048 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-11 14:45:57.048 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-11 14:45:57.048 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-11 14:45:57.282 Error: (Clim) 'onStart' failed 'KeyError'.
2017-07-11 14:45:57.282 Error: (Clim) ----> Line 315 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onStart

2017-07-11 14:46:05.750 (Clim) Calling message handler 'onHeartbeat'.
2017-07-11 14:46:05.750 (Clim) Current MEL Cloud Key ID:D4F2F25DEA674DCE9608F945939FA9
2017-07-11 14:46:05.751 (Clim) Current MEL Building ID:3...1
2017-07-11 14:46:05.942 (Clim) ******** Simon ********
2017-07-11 14:46:05.943 (Clim) Sync POWER False OPERATION MODE 3 FAN SPEED 1 VANE HOZ 3 VANE VER 0 UNIT TEMP 16.0
2017-07-11 14:46:05.943 (Clim - Simon - Vertical Vane) Updating device from 0:'60' to have values 0:'60'.
2017-07-11 14:46:05.954 (Clim - Simon - Unit Infos) Updating device from 0:'' to have values 1:'NEXT UPDATE 2017-07-11T12:48:00.73MAC ADDR 00:1d:c9:...:15:b3 S/N 1605205070'.
2017-07-11 14:46:05.964 (Clim) Infos NEXT UPDATE 2017-07-11T12:48:00.73MAC ADDR 00:1d:c9:...:15:b3 S/N 1605...70

2017-07-11 14:46:06.161 Error: (Clim) 'onHeartbeat' failed 'KeyError'.
2017-07-11 14:46:06.161 Error: (Clim) ----> Line 406 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat

2017-07-11 14:46:15.782 (Clim) Calling message handler 'onHeartbeat'.
2017-07-11 14:46:15.782 (Clim) Current MEL Cloud Key ID:D4F2F25DEA674DCE9608F945939FA9
2017-07-11 14:46:15.782 (Clim) Current MEL Building ID:3...1
2017-07-11 14:46:16.178 (Clim) ******** Simon ********
2017-07-11 14:46:16.178 (Clim) Sync POWER False OPERATION MODE 3 FAN SPEED 1 VANE HOZ 3 VANE VER 0 UNIT TEMP 16.0
2017-07-11 14:46:16.179 (Clim - Simon - Vertical Vane) Updating device from 0:'60' to have values 0:'60'.
2017-07-11 14:46:16.190 (Clim) Infos NEXT UPDATE 2017-07-11T12:48:00.73MAC ADDR 00:1d:c9:...:15:b3 S/N 1605...70

2017-07-11 14:46:16.413 Error: (Clim) 'onHeartbeat' failed 'KeyError'.
2017-07-11 14:46:16.413 Error: (Clim) ----> Line 406 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
Many thanks in advance for your help...
hope you will reply

NB : My Line 406 is :
domCurrentTemp = domLevelTemp[Devices[device['thermoID']].sValue]
gysmo38
Posts: 50
Joined: Saturday 01 February 2014 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by gysmo38 »

Hello,

Sorry for the late answer...

I made a new version to be compliant with last version of domoticz?

Can you try it? (http://www.domoticz.com/wiki/Plugins/ME ... stallation) For me it work well.

Can you give me how your units are created under melcloud?

Give the names and name of area, building, floor if you use it.

I will try to repoduce the error with my melcloud account.

Thank you.
Nickkkk72
Posts: 8
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805-b
Location: France
Contact:

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

Post by Nickkkk72 »

Don't be sorry... it's really sympathic trying to help us...

I've now two issues with the new plugin.

(to proceed, i have first, deleted Hardawre MelCloud in Domoticz, stop Homebridge, replace the old plugin by the new one, restart Domoticz Service, restart homebridge, and add a new Hardare MelCloud, named clim)

Log :

Code: Select all

2017-07-12 00:38:36.394 (clim) Initialized version 0.5, author 'gysmo'
2017-07-12 00:38:36.448 (clim) Debug log level set to: 'true'.
2017-07-12 00:38:36.680 (clim) MELCloud Login success. Key ID:1874B4F1F03A4A678F5A327D2B5BEF
2017-07-12 00:38:36.908 (clim) Find 2 devices in MELCloud
2017-07-12 00:38:36.909 (clim) Creating device: Simon with melID 83...59
2017-07-12 00:38:36.909 (clim) Creating device 'Simon - Mode'.
2017-07-12 00:38:36.912 (clim) Creating device 'Simon - Fan'.
2017-07-12 00:38:36.914 (clim) Creating device 'Simon - Temp'.
2017-07-12 00:38:36.917 (clim) Creating device 'Simon - Horiontal Vane'.
2017-07-12 00:38:36.919 (clim) Creating device 'Simon - Vertical Vane'.
2017-07-12 00:38:36.922 (clim) Creating device 'Simon - Room Temp'.
2017-07-12 00:38:36.923 (clim) Creating device 'Simon - Unit Infos'.
2017-07-12 00:38:37.099 (clim - Simon - Mode) Updating device from 0:'' to have values 0:'0'.
2017-07-12 00:38:37.143 (clim - Simon - Fan) Updating device from 0:'' to have values 0:'0'.
2017-07-12 00:38:37.152 (clim - Simon - Temp) Updating device from 0:'' to have values 0:'0'.
2017-07-12 00:38:37.161 (clim - Simon - Horiontal Vane) Updating device from 0:'' to have values 0:'20'.
2017-07-12 00:38:37.169 (clim - Simon - Vertical Vane) Updating device from 0:'' to have values 0:'60'.
2017-07-12 00:38:37.177 (clim - Simon - Room Temp) Updating device from 0:'' to have values 1:'24.0'.
2017-07-12 00:38:37.183 (clim) Creating device: Salle with melID 83...55
2017-07-12 00:38:37.183 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-12 00:38:37.183 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-12 00:38:37.183 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-12 00:38:37.183 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-12 00:38:37.183 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-12 00:38:37.183 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-12 00:38:37.184 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-12 00:38:37.184 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-12 00:38:37.184 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-12 00:38:37.184 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-12 00:38:37.184 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-12 00:38:37.184 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-12 00:38:37.184 Error: CPlugin:CDevice_init, unable to find module for current interpreter.
2017-07-12 00:38:37.184 Error: Device creation failed, Device object is not associated with a plugin.
2017-07-12 00:38:37.398 Error: (clim) 'onStart' failed 'KeyError'.
2017-07-12 00:38:37.398 Error: (clim) ----> Line 492 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onStart
2017-07-12 00:38:37.398 Error: (clim) ----> Line 124 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onStart
2017-07-12 00:38:37.399 (clim) Heartbeat interval set to: 25.
2017-07-12 00:38:45.918 (clim) Calling message handler 'onHeartbeat'.
2017-07-12 00:38:45.918 (clim) Current MEL Cloud Key ID:1874B4F1F03A4A678F5A327D2B5BEF
2017-07-12 00:38:45.919 (clim) Current MEL Building ID:31...81
2017-07-12 00:38:46.119 (clim) ******** Simon ********
2017-07-12 00:38:46.120 (clim) Sync POWER False OPERATION MODE 3 FAN SPEED 1 VANE HOZ 3 VANE VER 0 UNIT TEMP 16.0
2017-07-12 00:38:46.120 (clim - Simon - Vertical Vane) Updating device from 0:'60' to have values 0:'60'.
2017-07-12 00:38:46.131 (clim - Simon - Unit Infos) Updating device from 0:'' to have values 1:'NEXT UPDATE 2017-07-11T22:43:00.43MAC ADDR 00:1d:...:b3 S/N 1605205070'.
2017-07-12 00:38:46.142 (clim) Infos NEXT UPDATE 2017-07-11T22:43:00.43MAC ADDR 00:1d:...:b3 S/N 1605...70
2017-07-12 00:38:46.338 Error: (clim) 'onHeartbeat' failed 'KeyError'.
2017-07-12 00:38:46.338 Error: (clim) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-07-12 00:38:46.338 Error: (clim) ----> Line 227 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-07-12 00:39:10.940 (clim) Calling message handler 'onHeartbeat'.
2017-07-12 00:39:10.940 (clim) Current MEL Cloud Key ID:1874B4F1F03A4A678F5A327D2B5BEF
2017-07-12 00:39:10.940 (clim) Current MEL Building ID:31...81
2017-07-12 00:39:11.158 (clim) ******** Simon ********
2017-07-12 00:39:11.158 (clim) Sync POWER False OPERATION MODE 3 FAN SPEED 1 VANE HOZ 3 VANE VER 0 UNIT TEMP 16.0
2017-07-12 00:39:11.158 (clim - Simon - Vertical Vane) Updating device from 0:'60' to have values 0:'60'.
2017-07-12 00:39:11.169 (clim) Infos NEXT UPDATE 2017-07-11T22:43:00.43MAC ADDR 00:1d:...:b3 S/N 1605...070
2017-07-12 00:39:11.363 Error: (clim) 'onHeartbeat' failed 'KeyError'.
2017-07-12 00:39:11.363 Error: (clim) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-07-12 00:39:11.363 Error: (clim) ----> Line 227 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
Building name : Batiment
Area(s) : Not used
1st device : Simon - on floor named Etage
2nd device : Salle - on floor named RDC

The lines in error :
492 : _plugin.onStart() (bloc : Def OnStart)
124 : Devices[device['modeID']].Update(0,"0",9) (bloc : When melDeviceStatus['Power'] is False)
520 : _plugin.onHeartbeat() (bloc : def onHeartbeat)
227 : domCurrentTemp = domLevelTemp[Devices[device['thermoID']].sValue] bloc : def onHeartbeat(self)

Sorry again to disturb you... i really need to make this automation working for my little son and i try to understand the code to be autonomous... but can't find the solution...
Many thanks again.

If it's more simple for you to take control on my configuration, let me know.

Regards
Nicolas
gysmo38
Posts: 50
Joined: Saturday 01 February 2014 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by gysmo38 »

fHello,

I send you a PM to find a solution.

Can you send le the version of domoticz you use?

Thank you.
Nickkkk72
Posts: 8
Joined: Tuesday 11 July 2017 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805-b
Location: France
Contact:

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

Post by Nickkkk72 »

Same issues with the last upgrade (today) : 3.8094
Can anybody try to help us please ?
Thanks a lot.
Nicolas
DannyElfman
Posts: 16
Joined: Monday 13 October 2014 14:05
Target OS: Linux
Domoticz version: 3.8136
Location: France
Contact:

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

Post by DannyElfman »

I just got the wifi module to control my MSZ-FH35 and was wondering how to include it into Domoticz.
This thread is a start :)

While wandering around the net, I found this : https://github.com/hadleyrich/MQMitsi , basically Python script to control the unit via an MQTT brocker.
The guy has designed a hardware solution to control the unit without using the melcloud : https://nicegear.co.nz/blog/hacking-a-m ... nditioner/

Brilliant.

I have no idea how to apply it to the standard Mitsubishi unit to get rid of Melcloud though :mrgreen:
Debian Jessie VM on EsxI on a Gen 8 Proliant + RFXCom + AeonLabs Zwave+ + Fibaro eye + Fibaro Smoke + Fibaro FGS211 Philips Hue + Harmony Hub + Somfy RTS + Oregon Temp sensors + Xiaomi Gateway + Xiaomi sensors + Sonoff basic
DannyElfman
Posts: 16
Joined: Monday 13 October 2014 14:05
Target OS: Linux
Domoticz version: 3.8136
Location: France
Contact:

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

Post by DannyElfman »

It's actually getting even better ....

https://github.com/SwiCago/HeatPump

With a simple ESP8266 , one might built what is necessary to remotely control its unit :)
Debian Jessie VM on EsxI on a Gen 8 Proliant + RFXCom + AeonLabs Zwave+ + Fibaro eye + Fibaro Smoke + Fibaro FGS211 Philips Hue + Harmony Hub + Somfy RTS + Oregon Temp sensors + Xiaomi Gateway + Xiaomi sensors + Sonoff basic
DannyElfman
Posts: 16
Joined: Monday 13 October 2014 14:05
Target OS: Linux
Domoticz version: 3.8136
Location: France
Contact:

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

Post by DannyElfman »

FYI, I have include the plugin into DOmoticz and it is working fine :)

Thanks for the excellent work Gysmo :mrgreen:
Debian Jessie VM on EsxI on a Gen 8 Proliant + RFXCom + AeonLabs Zwave+ + Fibaro eye + Fibaro Smoke + Fibaro FGS211 Philips Hue + Harmony Hub + Somfy RTS + Oregon Temp sensors + Xiaomi Gateway + Xiaomi sensors + Sonoff basic
bagnico
Posts: 5
Joined: Friday 26 February 2016 23:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by bagnico »

Hi Gysmo,

Plugin not work for me... maybe because i have 2 units :

2017-07-25 21:24:58.184 (Melcloud) Initialized version 0.5, author 'gysmo'
2017-07-25 21:24:58.239 (Melcloud) Debug log level set to: 'true'.
2017-07-25 21:24:58.728 (Melcloud) MELCloud Login success. Key ID:*************
2017-07-25 21:24:59.269 (Melcloud) Find 2 devices in MELCloud
2017-07-25 21:24:59.269 (Melcloud) Creating device: ETAGE with melID ****
2017-07-25 21:24:59.269 (Melcloud) Creating device 'ETAGE - Mode'.
2017-07-25 21:24:59.273 (Melcloud) Creating device 'ETAGE - Fan'.
2017-07-25 21:24:59.277 (Melcloud) Creating device 'ETAGE - Temp'.
2017-07-25 21:24:59.281 (Melcloud) Creating device 'ETAGE - Horiontal Vane'.
2017-07-25 21:24:59.284 (Melcloud) Creating device 'ETAGE - Vertical Vane'.
2017-07-25 21:24:59.287 (Melcloud) Creating device 'ETAGE - Room Temp'.
2017-07-25 21:24:59.290 (Melcloud) Creating device 'ETAGE - Unit Infos'.
2017-07-25 21:24:59.728 (Melcloud - ETAGE - Mode) Updating device from 0:'' to have values 0:'0'.
2017-07-25 21:24:59.798 Error: (Melcloud) 'onStart' failed 'UnboundLocalError':'local variable 'setDomFan' referenced before assignment'.
2017-07-25 21:24:59.798 Error: (Melcloud) ----> Line 492 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onStart
2017-07-25 21:24:59.798 Error: (Melcloud) ----> Line 125 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onStart
2017-07-25 21:24:59.798 (Melcloud) Heartbeat interval set to: 25.
2017-07-25 21:25:07.725 (Melcloud) Calling message handler 'onHeartbeat'.
2017-07-25 21:25:07.725 (Melcloud) Current MEL Cloud Key ID:*****
2017-07-25 21:25:07.726 (Melcloud) Current MEL Building ID:***
2017-07-25 21:25:08.153 Error: (Melcloud) 'onHeartbeat' failed 'KeyError'.
2017-07-25 21:25:08.153 Error: (Melcloud) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-07-25 21:25:08.153 Error: (Melcloud) ----> Line 227 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat

Any idea ?
gysmo38
Posts: 50
Joined: Saturday 01 February 2014 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by gysmo38 »

Hello,

This due to a bug in the pre build version for Raspberry pi.

I will post a message when it is solved.

For working, you need to compile Domoticz from source. There is documentation on the WIKI.
steppi
Posts: 41
Joined: Saturday 30 January 2016 0:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by steppi »

Hello guys! I installed the MelCloud plugin, but it only adds 1 unit of 4 existing on my MelCloud regularly.
Some idea?
gysmo38
Posts: 50
Joined: Saturday 01 February 2014 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by gysmo38 »

Hello,

I think you use a raspberry for Domoticz.

There is a bug with my MELCloud plugin and raspberry prebuild version.

I send a message to the creator of domoticz pyhton framework. I hope he will find a solution.
steppi
Posts: 41
Joined: Saturday 30 January 2016 0:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by steppi »

gysmo38 wrote: Sunday 20 August 2017 13:40 Hello,

I think you use a raspberry for Domoticz.

There is a bug with my MELCloud plugin and raspberry prebuild version.

I send a message to the creator of domoticz pyhton framework. I hope he will find a solution.
Hi bro! Nothing new? did not they answer you? Too bad, I'd be happy to run your plugin !!!
gysmo38
Posts: 50
Joined: Saturday 01 February 2014 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by gysmo38 »

Hello,

Yes now it should work with last beta version :)

I use it without problem.
miljume
Posts: 62
Joined: Thursday 03 December 2015 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8742
Contact:

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

Post by miljume »

Hello,

I have installed the latest version of the Melcloud plugin by pasting the v0.5 code in a file called plugin.py and putting it in domoticz dir/plugin/Melcloud but no hardware devices show up

I am using the last beta 3.8635

What should the hardware name be?
Fred26
Posts: 2
Joined: Friday 03 November 2017 10:28
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: France
Contact:

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

Post by Fred26 »

Hi all,

I have a Mitsubishi HVAC for one week, I installed the python plugin, it works well, thanks a lot Gysmo38 !

I saw in the log that update for vertical vane was sent each time, it seems there is a typo in the code, line 269 :

Code: Select all

if(melDeviceStatus['VaneVertical'] != domCurrentVaneH):
Shouldn't it be compared to domCurrentVaneV ?

I also have some issues with setTemp synchronization, sometimes set to 10°C instead of 18°C... I continue trying to understand.

Thanks and regards

Frederic
miljume
Posts: 62
Joined: Thursday 03 December 2015 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8742
Contact:

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

Post by miljume »

Hello,

I am running the MELCloud plugin with the v.3.8742 version of Domoticz

I repeatedly get the following error in the log

Code: Select all

2017-11-18 23:47:51.285 Error: (MELCloud) 'onHeartbeat' failed 'KeyError'.
2017-11-18 23:47:51.285 Error: (MELCloud) ----> Line 520 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
2017-11-18 23:47:51.285 Error: (MELCloud) ----> Line 227 in /home/pi/domoticz/plugins/Melcloud/plugin.py, function onHeartbeat
Also after I have added the hardware and started the plugin, when I login to Melcloud GUI it has switched the language to French !?

Any clues?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest