MELCloud Binding Mitubishi

Thanks for your answer. I enabled debug level logging.
I shortened the log output by deleting 18000 characters and I changed some numbers for data protection (e.g. device IDs or address). If needed I can sent the complete log - if helpful.

I started device discovery by adding a thing in openHAB and chose MELcloud Bindung, than AC-device.

Log:
==> /var/log/openhab2/openhab.log <==

2020-07-09 14:06:01.153 [DEBUG] [ernal.handler.MelCloudAccountHandler] - Check MELCloud connection

2020-07-09 14:06:01.156 [DEBUG] [ernal.handler.MelCloudAccountHandler] - Connection to MELCloud open

2020-07-09 14:06:02.460 [DEBUG] [l.discovery.MelCloudDiscoveryService] - Discover devices

2020-07-09 14:06:02.927 [DEBUG] [loud.internal.api.MelCloudConnection] - Device list response: [{“ID”:123456,“Name”:“xyz”,“AddressLine1”:"xyz ",“AddressLine2”:null,“City”:“xyz”,“Postcode”:“12345”,“Latitude”:12.34567,“Longitude”:1.234568,“District”:null,“FPDefined”:false,“FPEnabled”:false,“FPMinTemperature”:14,“FPMaxTemperature”:16,“HMDefined”:false,“HMEnabled”:false,“HMStartDate”:null,“HMEndDate”:null,“BuildingType”:2,“PropertyType”:1,“DateBuilt”:null,“HasGasSupply”:true,“LocationLookupDate”:“2019-12-06T13:53:48.577”,“Country”:85,“TimeZoneContinent”:3,“TimeZoneCity”:49,“TimeZone”:119,“Location”:8230,“CoolingDisabled”:false,“Expanded”:true,“Structure”:{“Floors”:[],“Areas”:[{“ID”:12345,“Name”:“LivingRoom”,“BuildingId”:123456,“FloorId”:null,“AccessLevel”:4,“DirectAccess”:false,“EndDate”:“2500-01-01T00:00:00”,“MinTemperature”:0,“MaxTemperature”:40,“Expanded”:true,“Devices”:[{“DeviceID”:123456,“DeviceName”:“SZ”,“BuildingID”:12345,“BuildingName”:null, 
18000 more characters deleted! }}]

2020-07-09 14:06:02.933 [DEBUG] [loud.internal.api.MelCloudConnection] - Found 0 devices

Thanks for the log.
The response does show devices in the list so we need to look further.
Perhaps you have an unsupported device type, we currently only support types 0 and 1.
If a different type is found during discovery you should see “Unsupported device found:” in the log somewhere.

1 Like

ok, I hope nobody hits me, when I do post the whole log :slight_smile:
It says device type = 0 and I cannot find “unsupported device” or so.
not-shortened Log:

2020-07-09 14:06:01.153 [DEBUG] [ernal.handler.MelCloudAccountHandler] - Check MELCloud connection

2020-07-09 14:06:01.156 [DEBUG] [ernal.handler.MelCloudAccountHandler] - Connection to MELCloud open

2020-07-09 14:06:02.460 [DEBUG] [l.discovery.MelCloudDiscoveryService] - Discover devices

2020-07-09 14:06:02.927 [DEBUG] [loud.internal.api.MelCloudConnection] - Device list response: [{“ID”:123456,“Name”:“xyz”,“AddressLine1”:“xyz “,“AddressLine2”:null,“City”:“xyz”,“Postcode”:“12345”,“Latitude”:12.34567,“Longitude”:1.234568,“District”:null,“FPDefined”:false,“FPEnabled”:false,“FPMinTemperature”:14,“FPMaxTemperature”:16,“HMDefined”:false,“HMEnabled”:false,“HMStartDate”:null,“HMEndDate”:null,“BuildingType”:2,“PropertyType”:1,“DateBuilt”:null,“HasGasSupply”:true,“LocationLookupDate”:“2019-12-06T13:53:48.577”,“Country”:85,“TimeZoneContinent”:3,“TimeZoneCity”:49,“TimeZone”:119,“Location”:8230,“CoolingDisabled”:false,“Expanded”:true,“Structure”:{“Floors”:,“Areas”:[{“ID”:12345,“Name”:“LivingRoom”,“BuildingId”:123456,“FloorId”:null,“AccessLevel”:4,“DirectAccess”:false,“EndDate”:“2500-01-01T00:00:00”,“MinTemperature”:0,“MaxTemperature”:40,“Expanded”:true,“Devices”:[{“DeviceID”:123456,“DeviceName”:“SZ”,“BuildingID”:12345,“BuildingName”:null, “FloorID”:null,“FloorName”:null,“AreaID”:43636,“AreaName”:null,“ImageID”:-6,“InstallationDate”:null,“LastServiceDate”:null,“Presets”:[{“SetTemperature”:21.0,“Power”:true,“OperationMode”:3,“VaneHorizontal”:0,“VaneVertical”:0,“FanSpeed”:0,“ID”:124515,“Client”:191275,“DeviceLocation”:206555,“Number”:1,“Configuration”:”21true3000”,“NumberDescription”:“21”},{“SetTemperature”:21.0,“Power”:true,“OperationMode”:3,“VaneHorizontal”:1,“VaneVertical”:1,“FanSpeed”:0,“ID”:124600,“Client”:191275,“DeviceLocation”:206555,“Number”:2,“Configuration”:“21true3110”,“NumberDescription”:“21 zur Seite links”}],“OwnerID”:null,“OwnerName”:null,“OwnerEmail”:null,“AccessLevel”:4,“DirectAccess”:false,“EndDate”:“2500-01-01T00:00:00”,“Zone1Name”:null,“Zone2Name”:null,“MinTemperature”:0,“MaxTemperature”:40,“HideVaneControls”:false,“HideDryModeControl”:false,“HideRoomTemperature”:false,“HideSupplyTemperature”:false,“HideOutdoorTemperature”:false,“BuildingCountry”:null,“OwnerCountry”:null,“AdaptorType”:-1,“LinkedDevice”:null,“Type”:0,“MacAddress”:“d4:53:83:1c:69:8e”,“SerialNumber”:“1234567890”,“Device”:{“ListHistory24Formatters”:[null,null,{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_0”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_0(System.Object)”,“Signature2”:“System.String <.cctor>b__352_0(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_1”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_1(System.Object)”,“Signature2”:“System.String <.cctor>b__352_1(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_2”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_2(System.Object)”,“Signature2”:“System.String <.cctor>b__352_2(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_3”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_3(System.Object)”,“Signature2”:“System.String <.cctor>b__352_3(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_4”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_4(System.Object)”,“Signature2”:“System.String <.cctor>b__352_4(System.Object)”,“MemberType”:8,“GenericArguments”:null}},null,null,null,null,{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_5”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_5(System.Object)”,“Signature2”:“System.String <.cctor>b__352_5(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_6”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_6(System.Object)”,“Signature2”:“System.String <.cctor>b__352_6(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_7”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_7(System.Object)”,“Signature2”:“System.String <.cctor>b__352_7(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_8”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_8(System.Object)”,“Signature2”:“System.String <.cctor>b__352_8(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_9”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_9(System.Object)”,“Signature2”:“System.String <.cctor>b__352_9(System.Object)”,“MemberType”:8,“GenericArguments”:null}},null,null,null],“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,“HasWideVane”:false,“ModelIsAirCurtain”:true,“ModelSupportsFanSpeed”:true,“ModelSupportsAuto”:true,“ModelSupportsHeat”:true,“ModelSupportsDry”:true,“ModelSupportsVaneVertical”:true,“ModelSupportsVaneHorizontal”:true,“ModelSupportsWideVane”:true,“ModelDisableEnergyReport”:true,“ModelSupportsStandbyMode”:true,“ModelSupportsEnergyReporting”:false,“ProhibitSetTemperature”:false,“ProhibitOperationMode”:false,“ProhibitPower”:false,“Power”:false,“RoomTemperature”:24.0,“SetTemperature”:20.0,“ActualFanSpeed”:0,“FanSpeed”:1,“AutomaticFanSpeed”:false,“VaneVerticalDirection”:1,“VaneVerticalSwing”:false,“VaneHorizontalDirection”:1,“VaneHorizontalSwing”:false,“OperationMode”:3,“EffectiveFlags”:0,“LastEffectiveFlags”:0,“InStandbyMode”:false,“DefaultCoolingSetTemperature”:21.0,“DefaultHeatingSetTemperature”:23.0,“RoomTemperatureLabel”:0,“HeatingEnergyConsumedRate1”:0,“HeatingEnergyConsumedRate2”:0,“CoolingEnergyConsumedRate1”:0,“CoolingEnergyConsumedRate2”:0,“AutoEnergyConsumedRate1”:0,“AutoEnergyConsumedRate2”:0,“DryEnergyConsumedRate1”:0,“DryEnergyConsumedRate2”:0,“FanEnergyConsumedRate1”:0,“FanEnergyConsumedRate2”:0,“OtherEnergyConsumedRate1”:0,“OtherEnergyConsumedRate2”:0,“HasEnergyConsumedMeter”:true,“CurrentEnergyConsumed”:2400,“CurrentEnergyMode”:3,“CoolingDisabled”:false,“MinPcycle”:1,“MaxPcycle”:1,“EffectivePCycle”:1,“MaxOutdoorUnits”:255,“MaxIndoorUnits”:255,“MaxTemperatureControlUnits”:0,“DeviceID”:206555,“MacAddress”:“d4:53:83:1c:69:8e”,“SerialNumber”:“1234567890”,“TimeZoneID”:119,“DiagnosticMode”:0,“DiagnosticEndDate”:null,“ExpectedCommand”:1,“Owner”:null,“DetectedCountry”:null,“AdaptorType”:-1,“FirmwareDeployment”:null,“FirmwareUpdateAborted”:false,“LinkedDevice”:null,“WifiSignalStrength”:-57,“WifiAdapterStatus”:“NORMAL”,“Position”:“Unknown”,“PCycle”:1,“RecordNumMax”:0,“LastTimeStamp”:“2020-07-09T14:05:00”,“ErrorCode”:8000,“HasError”:false,“LastReset”:“2019-12-06T14:05:52.293”,“FlashWrites”:0,“Scene”:null,“SSLExpirationDate”:“2037-12-31T00:00:00”,“SPTimeout”:1,“Passcode”:null,“ServerCommunicationDisabled”:false,“ConsecutiveUploadErrors”:0,“DoNotRespondAfter”:null,“OwnerRoleAccessLevel”:1,“OwnerCountry”:85,“HideEnergyReport”:false,“ExceptionHash”:null,“ExceptionDate”:null,“ExceptionCount”:null,“Rate1StartTime”:null,“Rate2StartTime”:null,“ProtocolVersion”:0,“UnitVersion”:0,“FirmwareAppVersion”:17000,“FirmwareWebVersion”:0,“FirmwareWlanVersion”:0,“HasErrorMessages”:false,“HasZone2”:false,“Offline”:false,“Units”:},“DiagnosticMode”:0,“DiagnosticEndDate”:null,“Location”:8230,“DetectedCountry”:null,“Registrations”:68,“LocalIPAddress”:null,“TimeZone”:119,“RegistReason”:“STARTUP”,“ExpectedCommand”:1,“RegistRetry”:0,“DateCreated”:“2019-12-06T14:05:52.293”,“FirmwareDeployment”:null,“FirmwareUpdateAborted”:false,“Permissions”:{“CanSetOperationMode”:true,“CanSetFanSpeed”:true,“CanSetVaneDirection”:true,“CanSetPower”:true,“CanSetTemperatureIncrementOverride”:true,“CanDisableLocalController”:true}}]},{“ID”:43635,“Name”:“Wohnzimmer”,“BuildingId”:123456,“FloorId”:null,“AccessLevel”:4,“DirectAccess”:false,“EndDate”:“2500-01-01T00:00:00”,“MinTemperature”:0,“MaxTemperature”:40,“Expanded”:true,“Devices”:[{“DeviceID”:12345,“DeviceName”:“WZ”,“BuildingID”:123456,“BuildingName”:null,“FloorID”:null,“FloorName”:null,“AreaID”:43635,“AreaName”:null,“ImageID”:-4,“InstallationDate”:null,“LastServiceDate”:null,“Presets”:[{“SetTemperature”:20.0,“Power”:true,“OperationMode”:3,“VaneHorizontal”:0,“VaneVertical”:0,“FanSpeed”:0,“ID”:123456,“Client”:123456,“DeviceLocation”:206544,“Number”:1,“Configuration”:“20true3000”,“NumberDescription”:“20”},{“SetTemperature”:21.0,“Power”:true,“OperationMode”:3,“VaneHorizontal”:0,“VaneVertical”:0,“FanSpeed”:0,“ID”:123456,“Client”:123456,“DeviceLocation”:206544,“Number”:2,“Configuration”:“21true3000”,“NumberDescription”:“21”},{“SetTemperature”:22.0,“Power”:true,“OperationMode”:3,“VaneHorizontal”:0,“VaneVertical”:0,“FanSpeed”:0,“ID”:124514,“Client”:191275,“DeviceLocation”:206544,“Number”:3,“Configuration”:“22true3000”,“NumberDescription”:“22”}],“OwnerID”:null,“OwnerName”:null,“OwnerEmail”:null,“AccessLevel”:4,“DirectAccess”:false,“EndDate”:“2500-01-01T00:00:00”,“Zone1Name”:null,“Zone2Name”:null,“MinTemperature”:0,“MaxTemperature”:40,“HideVaneControls”:false,“HideDryModeControl”:false,“HideRoomTemperature”:false,“HideSupplyTemperature”:false,“HideOutdoorTemperature”:false,“BuildingCountry”:null,“OwnerCountry”:null,“AdaptorType”:-1,“LinkedDevice”:null,“Type”:0,“MacAddress”:“e8:e8:b7:15:04:xx”,“SerialNumber”:“1234567890”,“Device”:{“ListHistory24Formatters”:[null,null,{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_0”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808e0000”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_0(System.Object)”,“Signature2”:“System.String <.cctor>b__352_0(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_1”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_1(System.Object)”,“Signature2”:“System.String <.cctor>b__352_1(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_2”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_2(System.Object)”,“Signature2”:“System.String <.cctor>b__352_2(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_3”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_3(System.Object)”,“Signature2”:“System.String <.cctor>b__352_3(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_4”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_4(System.Object)”,“Signature2”:“System.String <.cctor>b__352_4(System.Object)”,“MemberType”:8,“GenericArguments”:null}},null,null,null,null,{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_5”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_5(System.Object)”,“Signature2”:“System.String <.cctor>b__352_5(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_6”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_6(System.Object)”,“Signature2”:“System.String <.cctor>b__352_6(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_7”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_7(System.Object)”,“Signature2”:“System.String <.cctor>b__352_7(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_8”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_8(System.Object)”,“Signature2”:“System.String <.cctor>b__352_8(System.Object)”,“MemberType”:8,“GenericArguments”:null}},{“Delegate”:{},“target0”:{},“method0”:{“Name”:“<.cctor>b__352_9”,“AssemblyName”:“Mitsubishi.Wifi.Data, Version=1.20.0.5, Culture=neutral, PublicKeyToken=36776ba0808eb702”,“ClassName”:“Mitsubishi.Wifi.Data.Entities.Device.AtaDeviceSettings+<>c”,“Signature”:“System.String <.cctor>b__352_9(System.Object)”,“Signature2”:“System.String <.cctor>b__352_9(System.Object)”,“MemberType”:8,“GenericArguments”:null}},null,null,null],“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,“HasWideVane”:false,“ModelIsAirCurtain”:false,“ModelSupportsFanSpeed”:true,“ModelSupportsAuto”:true,“ModelSupportsHeat”:true,“ModelSupportsDry”:true,“ModelSupportsVaneVertical”:true,“ModelSupportsVaneHorizontal”:true,“ModelSupportsWideVane”:true,“ModelDisableEnergyReport”:false,“ModelSupportsStandbyMode”:true,“ModelSupportsEnergyReporting”:true,“ProhibitSetTemperature”:false,“ProhibitOperationMode”:false,“ProhibitPower”:false,“Power”:false,“RoomTemperature”:26.0,“SetTemperature”:21.0,“ActualFanSpeed”:0,“FanSpeed”:0,“AutomaticFanSpeed”:true,“VaneVerticalDirection”:0,“VaneVerticalSwing”:false,“VaneHorizontalDirection”:0,“VaneHorizontalSwing”:false,“OperationMode”:3,“EffectiveFlags”:0,“LastEffectiveFlags”:0,“InStandbyMode”:false,“DefaultCoolingSetTemperature”:21.0,“DefaultHeatingSetTemperature”:23.0,“RoomTemperatureLabel”:0,“HeatingEnergyConsumedRate1”:0,“HeatingEnergyConsumedRate2”:0,“CoolingEnergyConsumedRate1”:0,“CoolingEnergyConsumedRate2”:0,“AutoEnergyConsumedRate1”:0,“AutoEnergyConsumedRate2”:0,“DryEnergyConsumedRate1”:0,“DryEnergyConsumedRate2”:0,“FanEnergyConsumedRate1”:0,“FanEnergyConsumedRate2”:0,“OtherEnergyConsumedRate1”:0,“OtherEnergyConsumedRate2”:0,“HasEnergyConsumedMeter”:true,“CurrentEnergyConsumed”:120800,“CurrentEnergyMode”:3,“CoolingDisabled”:false,“MinPcycle”:1,“MaxPcycle”:1,“EffectivePCycle”:1,“MaxOutdoorUnits”:255,“MaxIndoorUnits”:255,“MaxTemperatureControlUnits”:0,“DeviceID”:206544,“MacAddress”:“e8:e8:b7:15:xx:xx”,“SerialNumber”:“1234567890”,“TimeZoneID”:119,“DiagnosticMode”:0,“DiagnosticEndDate”:null,“ExpectedCommand”:1,“Owner”:null,“DetectedCountry”:null,“AdaptorType”:-1,“FirmwareDeployment”:null,“FirmwareUpdateAborted”:false,“LinkedDevice”:null,“WifiSignalStrength”:-48,“WifiAdapterStatus”:“NORMAL”,“Position”:“Unknown”,“PCycle”:1,“RecordNumMax”:0,“LastTimeStamp”:“2020-07-09T14:05:00”,“ErrorCode”:8000,“HasError”:false,“LastReset”:“2019-12-06T13:42:50.977”,“FlashWrites”:0,“Scene”:null,“SSLExpirationDate”:“2037-12-31T00:00:00”,“SPTimeout”:1,“Passcode”:null,“ServerCommunicationDisabled”:false,“ConsecutiveUploadErrors”:0,“DoNotRespondAfter”:null,“OwnerRoleAccessLevel”:1,“OwnerCountry”:85,“HideEnergyReport”:false,“ExceptionHash”:null,“ExceptionDate”:null,“ExceptionCount”:null,“Rate1StartTime”:null,“Rate2StartTime”:null,“ProtocolVersion”:0,“UnitVersion”:0,“FirmwareAppVersion”:15000,“FirmwareWebVersion”:0,“FirmwareWlanVersion”:0,“HasErrorMessages”:false,“HasZone2”:false,“Offline”:false,“Units”:},“DiagnosticMode”:0,“DiagnosticEndDate”:null,“Location”:8230,“DetectedCountry”:null,“Registrations”:62,“LocalIPAddress”:null,“TimeZone”:119,“RegistReason”:“STARTUP”,“ExpectedCommand”:1,“RegistRetry”:0,“DateCreated”:“2019-12-06T13:42:50.98”,“FirmwareDeployment”:null,“FirmwareUpdateAborted”:false,“Permissions”:{“CanSetOperationMode”:true,“CanSetFanSpeed”:true,“CanSetVaneDirection”:true,“CanSetPower”:true,“CanSetTemperatureIncrementOverride”:true,“CanDisableLocalController”:true}}]}],“Devices”:,“Clients”:},“AccessLevel”:4,“DirectAccess”:true,“MinTemperature”:0,“MaxTemperature”:40,“Owner”:null,“EndDate”:“2500-01-01T00:00:00”,“iDateBuilt”:null,“QuantizedCoordinates”:{“Latitude”:12.3,“Longitude”:1.234 }}]

2020-07-09 14:06:02.933 [DEBUG] [loud.internal.api.MelCloudConnection] - Found 0 devices

perfect thanks!
I took a quick look and I think we’re only looking into area’s when they are on a floor.
Could you test by opening MELCloud and moving one device to an Area on a Floor in a Building?
Discovery should then find it.
I’ll look into it further this week and fix the issue.

1 Like

I added a floor in MELcloud following your advise - and A.C. was found! :+1:
Obviously that was the issue. I didn’t maintain any floors, just rooms because I didn’t see any sense for me.
But now it’s working! Thanks for your help. I highly appreciate it! :slight_smile:

1 Like

Glad to hear the workaround works for you.
Thanks for reporting the issue, it should just work no matter where the devices are so I definitely need to fix this :slight_smile:.
I’m updating my dev environment now and hope to have time this weekend or next week latest.

1 Like

My PR with a fix got merged so it will be in openHAB 2.5.7.
From then on it doesn’t matter where the devices are, they will be discovered.

On a side note, once discovery is done with the current version and devices are added you can move them back to any level you want in MELCloud and it will pose no problem for the binding.

Sorry for delayed answer @thewiep averything ios working perfect!

All my AC Machines, Water Pumps, Pool even Crypto mining Rigs working at home related to that addon.

One suggestion, it would me amazing to get the value of the % autosufiency like the one we get on the Fronius solar Web.

Thanks!

@Andreu_Ferret, glad to hear it’s working for you.
Is this value something that is present in the MELCloud app?

Happy to see this binding. I’m hoping to use it for voice control via google assistant.

Unfortunately, I am struggling to get it working. It keeps giving me

[WARN ] [ternal.handler.MelCloudDeviceHandler] - No initial data available, ignore command

When I try to use it.

I’ve tried a couple of versions as mentioned in this post, but to no avail.

(to change the bundle, I copy it to addons, and clear cache before restarting). I tried to set the log level to DEBUG, but this binding does not seem to give me any more info


Any suggestion for my next step troubleshooting ?

Which version of openHAB are you using?
I haven’t seen the issue you mentioned in quite some time and thought I fixed it.
When setting the binding to DEBUG it does log more but it indeed nit excessive.

I have managed to turn on debug for the binding (via the console), and managed to see useful info!

I was using bad ids (I used the serial instead)(I like to use text file configuration). I put in the correct ids and it now works! Just one comment I guess, the log that says it does not find the id could be at ERROR level. Would have helped me.

Great binding!
Thank you!

1 Like

Managed to set up MelCloud with Google assistant :slight_smile:

I had to work around the fact that the mode includes power. In items:

/* Melcloud AC */
Group gLivingroomThermostat "Livingroom AC" { ga="Thermostat" }
Switch      LivingRoomAC_Power              "Power            " (gLivingroomThermostat){ channel="melcloud:acdevice:myaccount:livingroom:power"}
String      LivingRoomAC_OperationMode      "OperationMode    " (gLivingroomThermostat){ channel="melcloud:acdevice:myaccount:livingroom:operationMode" }
Number      LivingRoomAC_SetTemperature     "SetTemperature   " (gLivingroomThermostat){ channel="melcloud:acdevice:myaccount:livingroom:setTemperature" ,  ga="thermostatTemperatureSetpoint" }
String      LivingRoomAC_FanSpeed           "FanSpeed         " (gLivingroomThermostat){ channel="melcloud:acdevice:myaccount:livingroom:fanSpeed" }
String      LivingRoomAC_VaneHorizontal     "VaneHorizontal   " (gLivingroomThermostat){ channel="melcloud:acdevice:myaccount:livingroom:vaneHorizontal" }
String      LivingRoomAC_VaneVertical       "VaneVertical     " (gLivingroomThermostat){ channel="melcloud:acdevice:myaccount:livingroom:vaneVertical" }
Number      LivingRoomAC_RoomTemperature    "RoomTemperature  " (gLivingroomThermostat){ channel="melcloud:acdevice:myaccount:livingroom:roomTemperature" , ga="thermostatTemperatureAmbient"}
DateTime    LivingRoomAC_LastCommunication  "LastCommunication" (gLivingroomThermostat){ channel="melcloud:acdevice:myaccount:livingroom:lastCommunication" }
String      LivingRoomAC_Mode               "Mode"              (gLivingroomThermostat) { ga="thermostatMode" }

In rules:

rule "LivingRoomACMode rule"
when
	Item LivingRoomAC_Mode received command
then
	if (receivedCommand=="heat") {
		sendCommand(LivingRoomAC_OperationMode,"Heat")
	}
	else if (receivedCommand=="cool") {
		sendCommand(LivingRoomAC_OperationMode,"Cool")
	}
	else if (receivedCommand=="on") {
		sendCommand(LivingRoomAC_Power, ON)
	}
	else if (receivedCommand=="off") {
		sendCommand(LivingRoomAC_Power, OFF)
	}
	
end
1 Like

Thanks for the clarification!
I also prefer using the text files for configuration but didn’t think about the scenario where incorrect id’s would be used.
It makes sense to have this info available in the log without setting it to debug though.
I’ll have a look at improving this a bit.

Also, thanks for adding the info/example on using it with Google Assistant.

Awesome work. Just got my Mitsubishi AC, connected and it works almost seamlessly!

I have a question though.

I can see in the logs, that even though i set pollinfg interval to 60seconds, it’s not really happening every 60 seconds but every 600 seconds. Any changes made meanwhile from other sources are not reflected.
To be clear: if i make a change to device via OH then the command is sent to AC sooner, but if i were to make a change to device via remote, data would come only after 600seconds.


022-09-04 06:21:30.685 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from ON to OFF
2022-09-04 06:23:30.977 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from OFF to ON
2022-09-04 06:31:32.112 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from ON to OFF
2022-09-04 06:33:32.416 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from OFF to ON
2022-09-04 06:41:33.562 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from ON to OFF
2022-09-04 06:43:33.791 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from OFF to ON
2022-09-04 06:51:34.849 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from ON to OFF
2022-09-04 06:53:35.499 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from OFF to ON
2022-09-04 07:01:36.552 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from ON to OFF
2022-09-04 07:03:36.823 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from OFF to ON
2022-09-04 07:11:37.907 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from ON to OFF
2022-09-04 07:13:38.220 [vent.ItemStateChangedEvent] - SLZ_M35FA2_offline changed from OFF to ON

I’m running OH 2.5 if that makes any difference.

Any insight?

Worked perfect until today 17:20. A restart of the binding did not help. The bridge stays offline with the following error:

COMMUNICATION_ERROR

Login error, reason: java.util.concurrent.ExecutionException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

seems like the folks over at home-assistant got the exact same problem:

1 Like

Seemed to be certificate issue in Melcloud, now it is working again for me.

yes, its working again :slight_smile:

Hi!is there any way to support also reading energy usage data?

1 Like