Mitsubishi MELCLOUD integration with Home Assistant

Yes, i have two conditioner

I have the language in Italian, could you give problems?

2018-03-25 15:51:15 DEBUG (SyncWorker_1) [homeassistant.util.json] JSON file not found: /usr/lib/python3.6/site-packages/homeassistant/components/climate/.translations/en.json
18-03-25 15:51:15 DEBUG (SyncWorker_1) [homeassistant.util.json] JSON file not found: /config/custom_components/climate/.translations/melcloud.en.json

Hi,

After reviewed your logs, i think you didn’t write _LOGGER.debug(req.json()) at the correct place. I think you wrote it after login and not after ListDevices. Could you have a review of your code and place the log at the correct place :wink: thx.

ok,
now:

2018-03-25 16:46:21 INFO (MainThread) [homeassistant.components.climate] Setting up climate.melcloud
2018-03-25 16:46:21 DEBUG (SyncWorker_1) [custom_components.climate.melcloud] Adding component: melcloud …
2018-03-25 16:46:21 DEBUG (SyncWorker_1) [custom_components.climate.melcloud] Login …
2018-03-25 16:46:22 DEBUG (SyncWorker_1) [custom_components.climate.melcloud] [{‘ID’: 15037, ‘Name’: ‘Casa’, ‘AddressLine1’: ‘GGGGG’, ‘AddressLine2’: None, ‘City’: “XXXXX”, ‘Postcode’: ‘YYYY’, ‘Latitude’: AAAAA, ‘Longitude’: ZZZZZZZ, ‘District’: None, ‘FPDefined’: False, ‘FPEnabled’: False, ‘FPMinTemperature’: 14, ‘FPMaxTemperature’: 16, ‘HMDefined’: False, ‘HMEnabled’: False, ‘HMStartDate’: None, ‘HMEndDate’: None, ‘BuildingType’: 1, ‘PropertyType’: 8, ‘DateBuilt’: None, ‘HasGasSupply’: True, ‘LocationLookupDate’: ‘2016-01-29T13:32:32.683’, ‘Country’: 112, ‘TimeZoneContinent’: 3, ‘TimeZoneCity’: 54, ‘TimeZone’: 119, ‘Location’: 5216, ‘CoolingDisabled’: False, ‘Expanded’: True, ‘Structure’: {‘Floors’: [], ‘Areas’: [{‘ID’: 8255, ‘Name’: ‘Camere’, ‘BuildingId’: 15037, ‘FloorId’: None, ‘AccessLevel’: 4, ‘DirectAccess’: False, ‘EndDate’: ‘2500-01-01T00:00:00’, ‘MinTemperature’: 0, ‘MaxTemperature’: 40, ‘Expanded’: True, ‘Devices’: [{‘DeviceID’: 54208, ‘DeviceName’: ‘Camere’, ‘BuildingID’: 15037, ‘BuildingName’: None, ‘FloorID’: None, ‘FloorName’: None, ‘AreaID’: 8255, ‘AreaName’: None, ‘ImageID’: 10276, ‘InstallationDate’: ‘2014-03-01T00:00:00’, ‘LastServiceDate’: None, ‘Presets’: [{‘SetTemperature’: 28.0, ‘Power’: False, ‘OperationMode’: 1, ‘VaneHorizontal’: 3, ‘VaneVertical’: 5, ‘FanSpeed’: 5, ‘ID’: 6921, ‘Client’: 26360, ‘DeviceLocation’: 54208, ‘Number’: 1, ‘Configuration’: ‘28false1535’, ‘NumberDescription’: ‘Caldo’}, {‘SetTemperature’: 24.0, ‘Power’: False, ‘OperationMode’: 2, ‘VaneHorizontal’: 3, ‘VaneVertical’: 5, ‘FanSpeed’: 0, ‘ID’: 6922, ‘Client’: 26360, ‘DeviceLocation’: 54208, ‘Number’: 2, ‘Configuration’: ‘24false2530’, ‘NumberDescription’: ‘Deumidificato’}, {‘SetTemperature’: 25.0, ‘Power’: False, ‘OperationMode’: 3, ‘VaneHorizontal’: 3, ‘VaneVertical’: 5, ‘FanSpeed’: 0, ‘ID’: 6923, ‘Client’: 26360, ‘DeviceLocation’: 54208, ‘Number’: 3, ‘Configuration’: ‘25false3530’, ‘NumberDescription’: ‘Freddo’}], ‘OwnerID’: None, ‘OwnerName’: None, ‘OwnerEmail’: None, ‘AccessLevel’: 4, ‘DirectAccess’: False, ‘EndDate’: ‘2500-01-01T00:00:00’, ‘Zone1Name’: None, ‘Zone2Name’: None, ‘MinTemperature’: 0, ‘MaxTemperature’: 40, ‘HideVaneControls’: False, ‘HideDryModeControl’: False, ‘HideRoomTemperature’: False, ‘HideSupplyTemperature’: False, ‘HideOutdoorTemperature’: False, ‘BuildingCountry’: None, ‘OwnerCountry’: None, ‘AdaptorType’: 0, ‘Type’: 0, ‘MacAddress’: ‘00:1d:c9:97:7f:48’, ‘SerialNumber’: ‘1509305039’, ‘Device’: {‘ListHistory24Formatters’: [None, None, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_0’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_0(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_0(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_1’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_1(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_1(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_2’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_2(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_2(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_3’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_3(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_3(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_4’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_4(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_4(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, None, None, None, None, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_5’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_5(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_5(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_6’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_6(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_6(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_7’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_7(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_7(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_8’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_8(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_8(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_9’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_9(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_9(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, None], ‘DeviceType’: 0, ‘CanCool’: True, ‘CanHeat’: True, ‘CanDry’: True, ‘HasAutomaticFanSpeed’: True, ‘AirDirectionFunction’: True, ‘SwingFunction’: True, ‘NumberOfFanSpeeds’: 5, ‘UseTemperatureA’: True, ‘TemperatureIncrementOverride’: 0, ‘TemperatureIncrement’: 0.5, ‘MinTempCoolDry’: 16.0, ‘MaxTempCoolDry’: 31.0, ‘MinTempHeat’: 10.0, ‘MaxTempHeat’: 31.0, ‘MinTempAutomatic’: 16.0, ‘MaxTempAutomatic’: 31.0, ‘LegacyDevice’: False, ‘UnitSupportsStandbyMode’: True, ‘ModelIsAirCurtain’: False, ‘ModelSupportsFanSpeed’: True, ‘ModelSupportsAuto’: True, ‘ModelSupportsHeat’: True, ‘ModelSupportsDry’: True, ‘ModelSupportsVaneVertical’: True, ‘ModelSupportsVaneHorizontal’: True, ‘ModelSupportsStandbyMode’: True, ‘ModelSupportsEnergyReporting’: False, ‘Power’: False, ‘RoomTemperature’: 21.0, ‘SetTemperature’: 28.0, ‘ActualFanSpeed’: 0, ‘FanSpeed’: 5, ‘AutomaticFanSpeed’: False, ‘VaneVerticalDirection’: 5, ‘VaneVerticalSwing’: False, ‘VaneHorizontalDirection’: 3, ‘VaneHorizontalSwing’: False, ‘OperationMode’: 1, ‘EffectiveFlags’: 0, ‘LastEffectiveFlags’: 0, ‘InStandbyMode’: False, ‘DefaultCoolingSetTemperature’: 23.0, ‘DefaultHeatingSetTemperature’: 21.0, ‘RoomTemperatureLabel’: 0, ‘HasEnergyConsumedMeter’: False, ‘CurrentEnergyConsumed’: 0, ‘CurrentEnergyMode’: 1, ‘CoolingDisabled’: False, ‘MinPcycle’: 1, ‘MaxPcycle’: 5, ‘EffectivePCycle’: 5, ‘MaxOutdoorUnits’: 255, ‘MaxIndoorUnits’: 255, ‘MaxTemperatureControlUnits’: 0, ‘DeviceID’: 54208, ‘MacAddress’: ‘00:1d:c9:97:7f:48’, ‘SerialNumber’: ‘1509305039’, ‘TimeZoneID’: 119, ‘DiagnosticMode’: 0, ‘DiagnosticEndDate’: None, ‘ExpectedCommand’: 1, ‘Owner’: None, ‘DetectedCountry’: None, ‘AdaptorType’: 0, ‘FirmwareDeployment’: None, ‘FirmwareUpdateAborted’: False, ‘WifiSignalStrength’: -46, ‘WifiAdapterStatus’: ‘NORMAL’, ‘Position’: ‘unregistered’, ‘PCycle’: 5, ‘RecordNumMax’: 5, ‘LastTimeStamp’: ‘2018-03-25T16:45:00’, ‘ErrorCode’: 8000, ‘HasError’: False, ‘LastReset’: ‘2016-01-29T13:24:33.63’, ‘FlashWrites’: 0, ‘Scene’: None, ‘SSLExpirationDate’: None, ‘SPTimeout’: None, ‘Passcode’: None, ‘ServerCommunicationDisabled’: False, ‘Rate1StartTime’: None, ‘Rate2StartTime’: None, ‘ProtocolVersion’: 768, ‘UnitVersion’: 8192, ‘FirmwareAppVersion’: 4000, ‘FirmwareWebVersion’: 2000, ‘FirmwareWlanVersion’: 3005009, ‘HasErrorMessages’: False, ‘HasZone2’: False, ‘Offline’: False, ‘Units’: []}, ‘DiagnosticMode’: 0, ‘DiagnosticEndDate’: None, ‘Location’: 5216, ‘DetectedCountry’: None, ‘Registrations’: 133, ‘LocalIPAddress’: None, ‘TimeZone’: 119, ‘RegistReason’: None, ‘ExpectedCommand’: 1, ‘RegistRetry’: None, ‘DateCreated’: ‘2016-01-29T13:23:32.337’, ‘FirmwareDeployment’: None, ‘FirmwareUpdateAborted’: False, ‘Permissions’: {‘CanSetOperationMode’: True, ‘CanSetFanSpeed’: True, ‘CanSetVaneDirection’: True, ‘CanSetPower’: True, ‘CanSetTemperatureIncrementOverride’: True}}]}, {‘ID’: 8267, ‘Name’: ‘Soggiorno’, ‘BuildingId’: 15037, ‘FloorId’: None, ‘AccessLevel’: 4, ‘DirectAccess’: False, ‘EndDate’: ‘2500-01-01T00:00:00’, ‘MinTemperature’: 0, ‘MaxTemperature’: 40, ‘Expanded’: True, ‘Devices’: [{‘DeviceID’: 54233, ‘DeviceName’: ‘Soggiorno’, ‘BuildingID’: 15037, ‘BuildingName’: None, ‘FloorID’: None, ‘FloorName’: None, ‘AreaID’: 8267, ‘AreaName’: None, ‘ImageID’: 10283, ‘InstallationDate’: ‘2014-03-01T00:00:00’, ‘LastServiceDate’: None, ‘Presets’: [{‘SetTemperature’: 28.0, ‘Power’: False, ‘OperationMode’: 1, ‘VaneHorizontal’: 3, ‘VaneVertical’: 7, ‘FanSpeed’: 5, ‘ID’: 6951, ‘Client’: 26360, ‘DeviceLocation’: 54233, ‘Number’: 1, ‘Configuration’: ‘28false1735’, ‘NumberDescription’: ‘Caldo’}, {‘SetTemperature’: 24.0, ‘Power’: False, ‘OperationMode’: 2, ‘VaneHorizontal’: 3, ‘VaneVertical’: 7, ‘FanSpeed’: 5, ‘ID’: 6952, ‘Client’: 26360, ‘DeviceLocation’: 54233, ‘Number’: 2, ‘Configuration’: ‘24false2735’, ‘NumberDescription’: ‘Deumidificato’}, {‘SetTemperature’: 25.0, ‘Power’: False, ‘OperationMode’: 3, ‘VaneHorizontal’: 3, ‘VaneVertical’: 7, ‘FanSpeed’: 5, ‘ID’: 6953, ‘Client’: 26360, ‘DeviceLocation’: 54233, ‘Number’: 3, ‘Configuration’: ‘25false3735’, ‘NumberDescription’: ‘Freddo’}], ‘OwnerID’: None, ‘OwnerName’: None, ‘OwnerEmail’: None, ‘AccessLevel’: 4, ‘DirectAccess’: False, ‘EndDate’: ‘2500-01-01T00:00:00’, ‘Zone1Name’: None, ‘Zone2Name’: None, ‘MinTemperature’: 0, ‘MaxTemperature’: 40, ‘HideVaneControls’: False, ‘HideDryModeControl’: False, ‘HideRoomTemperature’: False, ‘HideSupplyTemperature’: False, ‘HideOutdoorTemperature’: False, ‘BuildingCountry’: None, ‘OwnerCountry’: None, ‘AdaptorType’: 0, ‘Type’: 0, ‘MacAddress’: ‘00:1d:c9:97:6c:2b’, ‘SerialNumber’: ‘1510015046’, ‘Device’: {‘ListHistory24Formatters’: [None, None, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_0’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_0(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_0(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_1’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_1(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_1(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_2’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_2(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_2(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_3’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_3(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_3(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_4’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_4(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_4(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, None, None, None, None, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_5’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_5(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_5(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_6’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_6(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_6(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_7’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_7(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_7(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_8’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_8(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_8(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, {‘Delegate’: {}, ‘target0’: {}, ‘method0’: {‘Name’: ‘<.cctor>b__270_9’, ‘AssemblyName’: ‘Mitsubishi.Wifi.Data, Version=1.15.3.0, Culture=neutral, PublicKeyToken=36776ba0808eb702’, ‘ClassName’: ‘Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c’, ‘Signature’: ‘System.String <.cctor>b__270_9(System.Object)’, ‘Signature2’: ‘System.String <.cctor>b__270_9(System.Object)’, ‘MemberType’: 8, ‘GenericArguments’: None}}, None], ‘DeviceType’: 0, ‘CanCool’: True, ‘CanHeat’: True, ‘CanDry’: True, ‘HasAutomaticFanSpeed’: True, ‘AirDirectionFunction’: True, ‘SwingFunction’: True, ‘NumberOfFanSpeeds’: 5, ‘UseTemperatureA’: True, ‘TemperatureIncrementOverride’: 0, ‘TemperatureIncrement’: 0.5, ‘MinTempCoolDry’: 16.0, ‘MaxTempCoolDry’: 31.0, ‘MinTempHeat’: 10.0, ‘MaxTempHeat’: 31.0, ‘MinTempAutomatic’: 16.0, ‘MaxTempAutomatic’: 31.0, ‘LegacyDevice’: False, ‘UnitSupportsStandbyMode’: True, ‘ModelIsAirCurtain’: False, ‘ModelSupportsFanSpeed’: True, ‘ModelSupportsAuto’: True, ‘ModelSupportsHeat’: True, ‘ModelSupportsDry’: True, ‘ModelSupportsVaneVertical’: True, ‘ModelSupportsVaneHorizontal’: True, ‘ModelSupportsStandbyMode’: True, ‘ModelSupportsEnergyReporting’: False, ‘Power’: True, ‘RoomTemperature’: 24.5, ‘SetTemperature’: 26.0, ‘ActualFanSpeed’: 4, ‘FanSpeed’: 4, ‘AutomaticFanSpeed’: False, ‘VaneVerticalDirection’: 3, ‘VaneVerticalSwing’: False, ‘VaneHorizontalDirection’: 3, ‘VaneHorizontalSwing’: False, ‘OperationMode’: 1, ‘EffectiveFlags’: 0, ‘LastEffectiveFlags’: 0, ‘InStandbyMode’: False, ‘DefaultCoolingSetTemperature’: 23.0, ‘DefaultHeatingSetTemperature’: 21.0, ‘RoomTemperatureLabel’: 0, ‘HasEnergyConsumedMeter’: False, ‘CurrentEnergyConsumed’: 0, ‘CurrentEnergyMode’: 1, ‘CoolingDisabled’: False, ‘MinPcycle’: 1, ‘MaxPcycle’: 5, ‘EffectivePCycle’: 5, ‘MaxOutdoorUnits’: 255, ‘MaxIndoorUnits’: 255, ‘MaxTemperatureControlUnits’: 0, ‘DeviceID’: 54233, ‘MacAddress’: ‘00:1d:c9:97:6c:2b’, ‘SerialNumber’: ‘1510015046’, ‘TimeZoneID’: 119, ‘DiagnosticMode’: 0, ‘DiagnosticEndDate’: None, ‘ExpectedCommand’: 1, ‘Owner’: None, ‘DetectedCountry’: None, ‘AdaptorType’: 0, ‘FirmwareDeployment’: None, ‘FirmwareUpdateAborted’: False, ‘WifiSignalStrength’: -52, ‘WifiAdapterStatus’: ‘NORMAL’, ‘Position’: ‘unregistered’, ‘PCycle’: 5, ‘RecordNumMax’: 5, ‘LastTimeStamp’: ‘2018-03-25T16:45:00’, ‘ErrorCode’: 8000, ‘HasError’: False, ‘LastReset’: ‘2016-01-30T12:09:10.287’, ‘FlashWrites’: 0, ‘Scene’: None, ‘SSLExpirationDate’: None, ‘SPTimeout’: None, ‘Passcode’: None, ‘ServerCommunicationDisabled’: False, ‘Rate1StartTime’: None, ‘Rate2StartTime’: None, ‘ProtocolVersion’: 768, ‘UnitVersion’: 8192, ‘FirmwareAppVersion’: 4000, ‘FirmwareWebVersion’: 2000, ‘FirmwareWlanVersion’: 3005009, ‘HasErrorMessages’: False, ‘HasZone2’: False, ‘Offline’: False, ‘Units’: []}, ‘DiagnosticMode’: 0, ‘DiagnosticEndDate’: None, ‘Location’: 5216, ‘DetectedCountry’: None, ‘Registrations’: 172, ‘LocalIPAddress’: None, ‘TimeZone’: 119, ‘RegistReason’: None, ‘ExpectedCommand’: 1, ‘RegistRetry’: None, ‘DateCreated’: ‘2016-01-30T12:08:07.1’, ‘FirmwareDeployment’: None, ‘FirmwareUpdateAborted’: False, ‘Permissions’: {‘CanSetOperationMode’: True, ‘CanSetFanSpeed’: True, ‘CanSetVaneDirection’: True, ‘CanSetPower’: True, ‘CanSetTemperatureIncrementOverride’: True}}]}], ‘Devices’: [], ‘Clients’: []}, ‘AccessLevel’: 4, ‘DirectAccess’: True, ‘MinTemperature’: 0, ‘MaxTemperature’: 40, ‘Owner’: None, ‘EndDate’: ‘2500-01-01T00:00:00’, ‘iDateBuilt’: None, ‘QuantizedCoordinates’: {‘Latitude’: 43.25, ‘Longitude’: 13.75}}]
2018-03-25 16:46:22 DEBUG (SyncWorker_1) [custom_components.climate.melcloud] melcloud: Component successfully added !

Ok great I can see the problem. I will update the code this evening and provide you an update.

1 Like

I also would love this feature implemented! Thank oyu o0Zz for you work!

@o0Zz

I saw that the drying mode is missing

@o0Zz Fantastic JOB ! Great to know someone is also interested in this device for HomeAssistant.

I’ve installed your custom component and got an error:

2018-03-25 17:46:43 ERROR (MainThread) [homeassistant.config] Invalid config for [climate]: required key not provided @ data[‘platform’]. Got None. (See /config/configuration.yaml, line 122). Please check the docs at https://home-assistant.io/components/climate/

I’ve copied the .py file to the custom_components/climate folder and added the necessary config lines into the configuration.yaml file .

The line mentioned in the error (line 122) is referred to
climate:

Can you help ?

thanks in advance

Hi,

It seems you forgot to provided “-platform” key.
Please check the sample configuration.yaml:

@Miki_Mercuri

Could you please try the last version available on github. I updated the code in order to support your areas.

I also added support for Dry mode as you suggested.

Let me know if your issue is fixed.

@o0Zz I’ve installed the latest on GitHub and I guess the component loaded correctly, but I don’t see any new entities in Hass.io

This is what I got in the last lines of the debug:
2018-03-25 20:31:55 DEBUG (SyncWorker_19) [custom_components.climate.melcloud] melcloud: Component successfully added !

Can you please advise ?
Thanks !

Log Details (ERROR)
Sun Mar 25 2018 22:13:53 GMT+0200 (CEST)

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.6/asyncio/tasks.py”, line 180, in _step
result = coro.send(None)
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 222, in async_update_ha_state
attr = self.state_attributes or {}
File “/usr/lib/python3.6/site-packages/homeassistant/components/climate/init.py”, line 517, in state_attributes
data[ATTR_FAN_MODE] = self.current_fan_mode
File “/config/custom_components/climate/melcloud.py”, line 395, in current_fan_mode
return self._fan_list[self._device.getFanSpeed()]
IndexError: list index out of range

I see the same error msg, using latest version of hassio.

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 222, in async_update_ha_state
attr = self.state_attributes or {}
File “/usr/lib/python3.6/site-packages/homeassistant/components/climate/init.py”, line 517, in state_attributes
data[ATTR_FAN_MODE] = self.current_fan_mode
File “/config/custom_components/climate/melcloud.py”, line 397, in current_fan_mode
return self._fan_list[self._device.getFanSpeed()]
IndexError: list index out of range

Is working great now with the latest changes you did to the melcloud.py file. Thanks for creating the component :grinning:

Is it possible to add adjustment for vane vertical and horizontal?

hi @o0Zz , now it works for me too! You did a great job, thank you!

Great ! good to see it works on your side too.

@nsoares
Could you try the last version. I added support for Floors last night, so your issue might be fixed. If not, could you please provide logs before: “custom_components.climate.melcloud] melcloud: Component successfully added !”

@Dennis87
I will have a look for vanes but I’m not sure HomeAssistant support it.

Thanks. The Sensibo component supports vanes adjust so think it should be possible :slight_smile:

@o0Zz Fantastic Job! All is working! Thanks so much.
Will you add the Vane position also ?

Wondering if anyone has tried this code as a starting point to work with Kumo Cloud (I believe this is the same/similar system for the North American market).
I’m tempted to go the custom hardware route though too: https://github.com/SwiCago/HeatPump

1 Like

please help me
2018-04-08 01:46:24 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/app/homeassistant/setup.py”, line 56, in async_setup_component
return await task
File “/usr/src/app/homeassistant/setup.py”, line 116, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File “/usr/src/app/homeassistant/config.py”, line 645, in async_process_component_config
platform = get_platform(domain, p_name)
File “/usr/src/app/homeassistant/loader.py”, line 104, in get_platform
return get_component(PLATFORM_FORMAT.format(domain, platform))
File “/usr/src/app/homeassistant/loader.py”, line 142, in get_component
module = importlib.import_module(path)
File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 674, in exec_module
File “”, line 781, in get_code
File “”, line 741, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/climate/melcloud.py”, line 7

^
SyntaxError: invalid syntax

Hi,

Line 7 doesn’t make sense it’s a comment. How did you transfer script to your rapsberry pi ? I believe the software you used to transfer it alterate the content. I suggest you to use wget and download it directly from your rpi.

Regards,
o0Zz