grzegorz914 / homebridge-melcloud-control

Homebridge plugin for Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation, publish as dynamic external platform accessory.
MIT License
49 stars 2 forks source link

Help to implement heat pump and ventilation #13

Closed grzegorz914 closed 1 year ago

grzegorz914 commented 1 year ago

Hi all,

I try to add support for Heat Pump and Energy Recovery Ventilation, but I don't have this devices to test, can some one with this devices instal 0.3.0-beta, enable debug mode and get me the log? or just send me the files from /homebridge/melcloud/ folder?

choooli commented 1 year ago

Hello grzegorz914,

First of all thanks for this plugin. It's great and it's adding more features than the other ones.

I have a Mitsubishi Zubadan ERST20D-VM6D heat-pump with PUD-SHWM140VAA at home. It's setup with dual zone.

I can help if you need a tester.

Since I have updated the plugin to 0.3.1, it's crashing Homebridge so I have to disable your plugin to have homebridge working.

Thanks

grzegorz914 commented 1 year ago

Cam you please enable debug in plugin settings and get the log, HB crashes because in v3 the plugin have found your Heat Pump. Also run the plugin as Child Bridge this present to crash whole HB.

choooli commented 1 year ago

Ok it's done. thanks for the child bridge. What do we do next ? do I send you logs ?

grzegorz914 commented 1 year ago

Enable debug in plugin config Advanced section and get the log.

choooli commented 1 year ago

Where can I send you the logs ? I don't want to post it here.

grzegorz914 commented 1 year ago

grzegorz914@icloud.com

Reliktdragons commented 1 year ago

If still need help to test, I have the Mitsubishi Electric Zubadan PUHZ-SHW112YHA + Ecodan EHSC-YM9EC

grzegorz914 commented 1 year ago

What is not working on your side?

Reliktdragons commented 1 year ago

Homebridge sometimes restarts when this message appears that MELCloud have a timeout.

But I am not sure if it has to do with MELCloud.

Is also strange that after 18:57:33 a log comes with the time 18:56:48

[05/03/2023, 18:52:21] [homebridge-melcloud-control] Heat Pump Zuhause, check state error, AxiosError: timeout of 10000ms exceeded, check again in 60s. [05/03/2023, 18:57:33] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#". [05/03/2023, 18:56:48] [homebridge-melcloud-control] Account email@, check devices list error, AxiosError: timeout of 10000ms exceeded, check again in 90s. [05/03/2023, 19:07:41] Got SIGTERM, shutting down Homebridge... [05/03/2023, 19:17:42] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [05/03/2023, 19:17:47] [HB Supervisor] Restarting Homebridge...

grzegorz914 commented 1 year ago

I see this error with promise rejection first time, to prevent crash whole HB run this plugin as child bridge. It will be very helpful if you an able debug mode in plugi settings advanced section and record the log if this error happens again.

Reliktdragons commented 1 year ago

Plugin is already running as a child bridge.

I have activated the debug log now. I will observe it.

I have an automation in HomeKit that reduces the temperature at 7 pm to 18 degrees.

In the last few days it happened again and again that the temperature in MELCloud was set to 18, but after a few seconds was then set back to 20. That it completely restarts is fortunately rare.

grzegorz914 commented 1 year ago

Ok, I will check it after you post the debug.

Reliktdragons commented 1 year ago

Here is the debug log

I removed private things like email, address and serial/device id.

"DiagnosticMode": 0, "DiagnosticEndDate": null, "Location": 24595, "DetectedCountry": null, "Registrations": 9, "LocalIPAddress": null, "TimeZone": 119, "RegistReason": "STARTUP", "ExpectedCommand": 1, "RegistRetry": 0, "DateCreated": "2023-02-25T10:54:21.3Z", "FirmwareDeployment": null, "FirmwareUpdateAborted": false, "Permissions": { "CanSetForcedHotWater": true, "CanSetOperationMode": true, "CanSetPower": true, "CanSetTankWaterTemperature": true, "CanSetEcoHotWater": false, "CanSetFlowTemperature": true, "CanSetTemperatureIncrementOverride": true } } [06/03/2023, 06:10:33] [homebridge-melcloud-control] Heat Pump Zuhause, debug State: { "EffectiveFlags": 0, "LocalIPAddress": null, "SetTemperatureZone1": 18, "SetTemperatureZone2": 20, "RoomTemperatureZone1": 20, "RoomTemperatureZone2": -39, "OperationMode": 0, "OperationModeZone1": 0, "OperationModeZone2": 2, "WeatherObservations": [ { "Date": "2023-03-06T06:00:00", "Sunrise": "2023-03-06T06:57:00", "Sunset": "2023-03-06T18:16:00", "Condition": 116, "ID": 1089052089, "Humidity": 88, "Temperature": -1, "Icon": "wsymbol_0008_clear_sky_night", "ConditionName": "Teilweise bewölkt", "Day": 1, "WeatherType": 0 }, { "Date": "2023-03-06T15:00:00", "Sunrise": "2023-03-06T06:57:00", "Sunset": "2023-03-06T18:16:00", "Condition": 122, "ID": 1089052092, "Humidity": 52, "Temperature": 6, "Icon": "wsymbol_0004_black_low_cloud", "ConditionName": "Bedeckt", "Day": 1, "WeatherType": 1 }, { "Date": "2023-03-07T03:00:00", "Sunrise": "2023-03-07T06:55:00", "Sunset": "2023-03-07T18:18:00", "Condition": 122, "ID": 1090134064, "Humidity": 92, "Temperature": 0, "Icon": "wsymbol_0004_black_low_cloud", "ConditionName": "Bedeckt", "Day": 1, "WeatherType": 2 }, { "Date": "2023-03-07T15:00:00", "Sunrise": "2023-03-07T06:55:00", "Sunset": "2023-03-07T18:18:00", "Condition": 116, "ID": 1090134068, "Humidity": 52, "Temperature": 8, "Icon": "wsymbol_0002_sunny_intervals", "ConditionName": "Teilweise bewölkt", "Day": 2, "WeatherType": 1 } ], "ErrorMessage": null, "ErrorCode": 8000, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "HCControlType": 1, "TankWaterTemperature": 41, "SetTankWaterTemperature": 30, "ForcedHotWaterMode": false, "UnitStatus": 0, "OutdoorTemperature": 3, "EcoHotWater": true, "Zone1Name": null, "Zone2Name": null, "HolidayMode": false, "ProhibitZone1": false, "ProhibitZone2": false, "ProhibitHotWater": false, "TemperatureIncrementOverride": 0, "IdleZone1": true, "IdleZone2": true, "DemandPercentage": 100, "DeviceID": -, "DeviceType": 1, "LastCommunication": "2023-03-06T05:09:24.112", "NextCommunication": "2023-03-06T05:10:24.112", "Power": true, "HasPendingCommand": false, "Offline": false, "Scene": null, "SceneOwner": null } [06/03/2023, 06:10:34] [homebridge-melcloud-control] Heat Pump Zuhause, debug State: { "EffectiveFlags": 0, "LocalIPAddress": null, "SetTemperatureZone1": 18, "SetTemperatureZone2": 20, "RoomTemperatureZone1": 20, "RoomTemperatureZone2": -39, "OperationMode": 0, "OperationModeZone1": 0, "OperationModeZone2": 2, "WeatherObservations": [ { "Date": "2023-03-06T06:00:00", "Sunrise": "2023-03-06T06:57:00", "Sunset": "2023-03-06T18:16:00", "Condition": 116, "ID": 1089052089, "Humidity": 88, "Temperature": -1, "Icon": "wsymbol_0008_clear_sky_night", "ConditionName": "Teilweise bewölkt", "Day": 1, "WeatherType": 0 }, { "Date": "2023-03-06T15:00:00", "Sunrise": "2023-03-06T06:57:00", "Sunset": "2023-03-06T18:16:00", "Condition": 122, "ID": 1089052092, "Humidity": 52, "Temperature": 6, "Icon": "wsymbol_0004_black_low_cloud", "ConditionName": "Bedeckt", "Day": 1, "WeatherType": 1 }, { "Date": "2023-03-07T03:00:00", "Sunrise": "2023-03-07T06:55:00", "Sunset": "2023-03-07T18:18:00", "Condition": 122, "ID": 1090134064, "Humidity": 92, "Temperature": 0, "Icon": "wsymbol_0004_black_low_cloud", "ConditionName": "Bedeckt", "Day": 1, "WeatherType": 2 }, { "Date": "2023-03-07T15:00:00", "Sunrise": "2023-03-07T06:55:00", "Sunset": "2023-03-07T18:18:00", "Condition": 116, "ID": 1090134068, "Humidity": 52, "Temperature": 8, "Icon": "wsymbol_0002_sunny_intervals", "ConditionName": "Teilweise bewölkt", "Day": 2, "WeatherType": 1 } ], "ErrorMessage": null, "ErrorCode": 8000, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "HCControlType": 1, "TankWaterTemperature": 41, "SetTankWaterTemperature": 30, "ForcedHotWaterMode": false, "UnitStatus": 0, "OutdoorTemperature": 3, "EcoHotWater": true, "Zone1Name": null, "Zone2Name": null, "HolidayMode": false, "ProhibitZone1": false, "ProhibitZone2": false, "ProhibitHotWater": false, "TemperatureIncrementOverride": 0, "IdleZone1": true, "IdleZone2": true, "DemandPercentage": 100, "DeviceID": -, "DeviceType": 1, "LastCommunication": "2023-03-06T05:09:24.112", "NextCommunication": "2023-03-06T05:10:24.112", "Power": true, "HasPendingCommand": false, "Offline": false, "Scene": null, "SceneOwner": null } [06/03/2023, 06:10:34] [homebridge-melcloud-control] Heat Pump Zuhause, debug State: { "EffectiveFlags": 0, "LocalIPAddress": null, "SetTemperatureZone1": 18, "SetTemperatureZone2": 20, "RoomTemperatureZone1": 20, "RoomTemperatureZone2": -39, "OperationMode": 0, "OperationModeZone1": 0, "OperationModeZone2": 2, "WeatherObservations": [ { "Date": "2023-03-06T06:00:00", "Sunrise": "2023-03-06T06:57:00", "Sunset": "2023-03-06T18:16:00", "Condition": 116, "ID": 1089052089, "Humidity": 88, "Temperature": -1, "Icon": "wsymbol_0008_clear_sky_night", "ConditionName": "Teilweise bewölkt", "Day": 1, "WeatherType": 0 }, { "Date": "2023-03-06T15:00:00", "Sunrise": "2023-03-06T06:57:00", "Sunset": "2023-03-06T18:16:00", "Condition": 122, "ID": 1089052092, "Humidity": 52, "Temperature": 6, "Icon": "wsymbol_0004_black_low_cloud", "ConditionName": "Bedeckt", "Day": 1, "WeatherType": 1 }, { "Date": "2023-03-07T03:00:00", "Sunrise": "2023-03-07T06:55:00", "Sunset": "2023-03-07T18:18:00", "Condition": 122, "ID": 1090134064, "Humidity": 92, "Temperature": 0, "Icon": "wsymbol_0004_black_low_cloud", "ConditionName": "Bedeckt", "Day": 1, "WeatherType": 2 }, { "Date": "2023-03-07T15:00:00", "Sunrise": "2023-03-07T06:55:00", "Sunset": "2023-03-07T18:18:00", "Condition": 116, "ID": 1090134068, "Humidity": 52, "Temperature": 8, "Icon": "wsymbol_0002_sunny_intervals", "ConditionName": "Teilweise bewölkt", "Day": 2, "WeatherType": 1 } ], "ErrorMessage": null, "ErrorCode": 8000, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "HCControlType": 1, "TankWaterTemperature": 41, "SetTankWaterTemperature": 30, "ForcedHotWaterMode": false, "UnitStatus": 0, "OutdoorTemperature": 3, "EcoHotWater": true, "Zone1Name": null, "Zone2Name": null, "HolidayMode": false, "ProhibitZone1": false, "ProhibitZone2": false, "ProhibitHotWater": false, "TemperatureIncrementOverride": 0, "IdleZone1": true, "IdleZone2": true, "DemandPercentage": 100, "DeviceID": -, "DeviceType": 1, "LastCommunication": "2023-03-06T05:09:24.112", "NextCommunication": "2023-03-06T05:10:24.112", "Power": true, "HasPendingCommand": false, "Offline": false, "Scene": null, "SceneOwner": null } [06/03/2023, 06:10:37] [homebridge-melcloud-control] Heat Pump Zuhause, debug State: { "EffectiveFlags": 0, "LocalIPAddress": null, "SetTemperatureZone1": 18, "SetTemperatureZone2": 20, "RoomTemperatureZone1": 20, "RoomTemperatureZone2": -39, "OperationMode": 0, "OperationModeZone1": 0, "OperationModeZone2": 2, "WeatherObservations": [ { "Date": "2023-03-06T06:00:00", "Sunrise": "2023-03-06T06:57:00", "Sunset": "2023-03-06T18:16:00", "Condition": 116, "ID": 1089052089, "Humidity": 88, "Temperature": -1, "Icon": "wsymbol_0008_clear_sky_night", "ConditionName": "Teilweise bewölkt", "Day": 1, "WeatherType": 0 }, { "Date": "2023-03-06T15:00:00", "Sunrise": "2023-03-06T06:57:00", "Sunset": "2023-03-06T18:16:00", "Condition": 122, "ID": 1089052092, "Humidity": 52, "Temperature": 6, "Icon": "wsymbol_0004_black_low_cloud", "ConditionName": "Bedeckt", "Day": 1, "WeatherType": 1 }, { "Date": "2023-03-07T03:00:00", "Sunrise": "2023-03-07T06:55:00", "Sunset": "2023-03-07T18:18:00", "Condition": 122, "ID": 1090134064, "Humidity": 92, "Temperature": 0, "Icon": "wsymbol_0004_black_low_cloud", "ConditionName": "Bedeckt", "Day": 1, "WeatherType": 2 }, { "Date": "2023-03-07T15:00:00", "Sunrise": "2023-03-07T06:55:00", "Sunset": "2023-03-07T18:18:00", "Condition": 116, "ID": 1090134068, "Humidity": 52, "Temperature": 8, "Icon": "wsymbol_0002_sunny_intervals", "ConditionName": "Teilweise bewölkt", "Day": 2, "WeatherType": 1 } ], "ErrorMessage": null, "ErrorCode": 8000, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "HCControlType": 1, "TankWaterTemperature": 41, "SetTankWaterTemperature": 30, "ForcedHotWaterMode": false, "UnitStatus": 0, "OutdoorTemperature": 3, "EcoHotWater": true, "Zone1Name": null, "Zone2Name": null, "HolidayMode": false, "ProhibitZone1": false, "ProhibitZone2": false, "ProhibitHotWater": false, "TemperatureIncrementOverride": 0, "IdleZone1": true, "IdleZone2": true, "DemandPercentage": 100, "DeviceID": -, "DeviceType": 1, "LastCommunication": "2023-03-06T05:09:24.112", "NextCommunication": "2023-03-06T05:10:24.112", "Power": true, "HasPendingCommand": false, "Offline": false, "Scene": null, "SceneOwner": null } [06/03/2023, 06:10:38] [homebridge-melcloud-control] Heat Pump Zuhause, check state error, AxiosError: timeout of 10000ms exceeded, check again in 60s. [06/03/2023, 06:10:46] [homebridge-melcloud-control] Account email@, Scanning for devices. [06/03/2023, 06:10:48] [homebridge-melcloud-control] Account email@, debug Buildings: [ { "ID":,- "Name": "Zuhause", "AddressLine1": "", "AddressLine2": null, "City": "", "Postcode": "", "Latitude":, "Longitude":, "District": null, "FPDefined": false, "FPEnabled": false, "FPMinTemperature": 14, "FPMaxTemperature": 16, "HMDefined": false, "HMEnabled": false, "HMStartDate": null, "HMEndDate": null, "BuildingType": 1, "PropertyType": 8, "DateBuilt": null, "HasGasSupply": true, "LocationLookupDate": "2023-02-25T10:57:09.053", "Country": 85, "TimeZoneContinent": 3, "TimeZoneCity": 49, "TimeZone": 119, "Location": 24595, "CoolingDisabled": false, "Expanded": true, "Structure": { "Floors": [], "Areas": [], "Devices": [ { "DeviceID": removed, "DeviceName": "Zuhause", "BuildingID": removed, "BuildingName": null, "FloorID": null, "FloorName": null, "AreaID": null, "AreaName": null, "ImageID": -1, "InstallationDate": null, "LastServiceDate": null, "Presets": [ { "Power": true, "EcoHotWater": true, "OperationModeZone1": 0, "OperationModeZone2": 2, "SetTankWaterTemperature": 30, "SetTemperatureZone1": 18, "SetTemperatureZone2": 20, "ForcedHotWaterMode": false, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "ID": 389639, "Client": 702010, "DeviceLocation": 66191634, "Number": 1, "Configuration": "truetrue02301820false25202020", "NumberDescription": "Nachtabsenkung" }, { "Power": true, "EcoHotWater": true, "OperationModeZone1": 0, "OperationModeZone2": 2, "SetTankWaterTemperature": 29.5, "SetTemperatureZone1": 20, "SetTemperatureZone2": 20, "ForcedHotWaterMode": false, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "ID": 389672, "Client": 702010, "DeviceLocation": 66191634, "Number": 2, "Configuration": "truetrue0229.52020false25202020", "NumberDescription": "Tagtemperatur" } ], "OwnerID": 702010, "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": 3, "LinkedDevice": null, "Type": 1, "MacAddress": "", "SerialNumber": "", "Device": { "PCycleActual": 0, "ErrorMessages": "", "DeviceType": 1, "FTCVersion": 1500, "FTCRevision": "r0", "LastFTCVersion": 0, "LastFTCRevision": null, "FTCModel": 2, "RefridgerentAddress": 0, "DipSwitch1": 182, "DipSwitch2": 160, "DipSwitch3": 16, "DipSwitch4": 0, "DipSwitch5": 0, "DipSwitch6": 0, "HasThermostatZone1": true, "HasThermostatZone2": true, "TemperatureIncrement": 0.5, "DefrostMode": 0, "HeatPumpFrequency": 0, "MaxSetTemperature": 40, "MinSetTemperature": 25, "RoomTemperatureZone1": 20, "RoomTemperatureZone2": -39, "OutdoorTemperature": 3, "FlowTemperature": 18.5, "FlowTemperatureZone1": 24, "FlowTemperatureZone2": 25, "FlowTemperatureBoiler": 25, "ReturnTemperature": 19, "ReturnTemperatureZone1": 21, "ReturnTemperatureZone2": 25, "ReturnTemperatureBoiler": 25, "BoilerStatus": false, "BoosterHeater1Status": false, "BoosterHeater2Status": false, "BoosterHeater2PlusStatus": false, "ImmersionHeaterStatus": false, "WaterPump1Status": false, "WaterPump2Status": false, "WaterPump3Status": false, "ValveStatus3Way": false, "ValveStatus2Way": false, "WaterPump4Status": false, "ValveStatus2Way2a": false, "ValveStatus2Way2b": false, "TankWaterTemperature": 41, "UnitStatus": 0, "HeatingFunctionEnabled": true, "ServerTimerEnabled": false, "ThermostatStatusZone1": false, "ThermostatStatusZone2": false, "ThermostatTypeZone1": 1, "ThermostatTypeZone2": 2, "MixingTankWaterTemperature": 0, "CondensingTemperature": 0, "DemandPercentage": 100, "ConfiguredDemandPercentage": null, "HasDemandSideControl": false, "DailyHeatingEnergyConsumed": 13.51, "DailyCoolingEnergyConsumed": 0, "DailyHotWaterEnergyConsumed": 5.28, "DailyHeatingEnergyProduced": 41.78, "DailyCoolingEnergyProduced": 0, "DailyHotWaterEnergyProduced": 8.15, "DailyLegionellaActivationCounter": 0, "LastLegionellaActivationTime": "0001-01-01T00:00:00", "EffectiveFlags": 0, "LastEffectiveFlags": 0, "Power": true, "EcoHotWater": true, "OperationMode": 0, "OperationModeZone1": 0, "OperationModeZone2": 2, "SetTemperatureZone1": 18, "SetTemperatureZone2": 20, "SetTankWaterTemperature": 30, "TargetHCTemperatureZone1": 18, "TargetHCTemperatureZone2": 35, "ForcedHotWaterMode": false, "HolidayMode": false, "ProhibitHotWater": false, "ProhibitHeatingZone1": false, "ProhibitHeatingZone2": false, "ProhibitCoolingZone1": false, "ProhibitCoolingZone2": false, "ServerTimerDesired": false, "SecondaryZoneHeatCurve": false, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "DECCReport": false, "CSVReport1min": false, "Zone2Master": false, "DailyEnergyConsumedDate": "2023-03-05T00:00:00", "DailyEnergyProducedDate": "2023-03-05T00:00:00", "CurrentEnergyConsumed": 0, "CurrentEnergyProduced": 0, "CurrentEnergyMode": null, "HeatingEnergyConsumedRate1": 0, "HeatingEnergyConsumedRate2": 0, "CoolingEnergyConsumedRate1": 0, "CoolingEnergyConsumedRate2": 0, "HotWaterEnergyConsumedRate1": 0, "HotWaterEnergyConsumedRate2": 0, "HeatingEnergyProducedRate1": 0, "HeatingEnergyProducedRate2": 0, "CoolingEnergyProducedRate1": 0, "CoolingEnergyProducedRate2": 0, "HotWaterEnergyProducedRate1": 0, "HotWaterEnergyProducedRate2": 0, "ErrorCode2Digit": 0, "SpSubDivisionsToWrite": 0, "SpSubDivisionsToRead": 0, "SpState": 0, "SpSubDivisionsWriteInProgress": 0, "SpSubDivisionsReadInProgress": 0, "InitialSettingsData": null, "InitialSettingsTimestamp": null, "SupportsHourlyEnergyReport": false, "HasZone2": false, "HasSimplifiedZone2": false, "CanHeat": true, "CanCool": false, "HasHotWaterTank": true, "CanSetTankTemperature": true, "CanSetEcoHotWater": true, "HasEnergyConsumedMeter": true, "HasEnergyProducedMeter": true, "CanMeasureEnergyProduced": false, "CanMeasureEnergyConsumed": false, "Zone1InRoomMode": true, "Zone2InRoomMode": false, "Zone1InHeatMode": true, "Zone2InHeatMode": true, "Zone1InCoolMode": false, "Zone2InCoolMode": false, "AllowDualRoomTemperature": false, "IsGeodan": false, "HasEcoCuteSettings": false, "HasFTC45Settings": true, "HasFTC6Settings": false, "CanEstimateEnergyUsage": true, "CanUseRoomTemperatureCooling": false, "IsFtcModelSupported": true, "MaxTankTemperature": 60, "IdleZone1": true, "IdleZone2": true, "MinPcycle": 1, "MaxPcycle": 1, "MaxOutdoorUnits": 255, "MaxIndoorUnits": 255, "MaxTemperatureControlUnits": 0, "ModelCode": "027a", "DeviceID": -, "MacAddress": "", "SerialNumber": "", "TimeZoneID": 119, "DiagnosticMode": 0, "DiagnosticEndDate": null, "ExpectedCommand": 1, "Owner": 702010, "DetectedCountry": null, "AdaptorType": 3, "FirmwareDeployment": null, "FirmwareUpdateAborted": false, "LinkedDevice": null, "WifiSignalStrength": -63, "WifiAdapterStatus": "NORMAL", "Position": "Unknown", "PCycle": 2, "PCycleConfigured": null, "RecordNumMax": 1, "LastTimeStamp": "2023-03-06T06:10:00", "ErrorCode": 8000, "HasError": false, "LastReset": "2023-02-25T11:40:45.756", "FlashWrites": 2, "Scene": null, "TemperatureIncrementOverride": 0, "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": 37000, "FirmwareWebVersion": 0, "FirmwareWlanVersion": 0, "EffectivePCycle": 1, "MqttFlags": 9, "HasErrorMessages": false, "Offline": false, "Units": [ { "ID": 1, "Device": 0, "SerialNumber": "", "ModelNumber": 254, "Model": "EHSC-YM9C", "UnitType": 1, "IsIndoor": true } ] }, "DiagnosticMode": 0, "DiagnosticEndDate": null, "Location": 24595, "DetectedCountry": null, "Registrations": 9, "LocalIPAddress": null, "TimeZone": 119, "RegistReason": "STARTUP", "ExpectedCommand": 1, "RegistRetry": 0, "DateCreated": "2023-02-25T10:54:21.3Z", "FirmwareDeployment": null, "FirmwareUpdateAborted": false, "Permissions": { "CanSetForcedHotWater": true, "CanSetOperationMode": true, "CanSetPower": true, "CanSetTankWaterTemperature": true, "CanSetEcoHotWater": false, "CanSetFlowTemperature": true, "CanSetTemperatureIncrementOverride": true } } ], "Clients": [] }, "AccessLevel": 4, "DirectAccess": true, "MinTemperature": 0, "MaxTemperature": 40, "Owner": null, "EndDate": "2500-01-01T00:00:00", "iDateBuilt": null, "QuantizedCoordinates": { "Latitude":, "Longitude": } } ] [06/03/2023, 06:10:48] [homebridge-melcloud-control] Account email@, Found: 1 devices. [06/03/2023, 06:12:07] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#". [06/03/2023, 06:15:39] Got SIGTERM, shutting down Homebridge... [06/03/2023, 07:19:49] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null [06/03/2023, 07:19:55] [HB Supervisor] Restarting Homebridge... [06/03/2023, 07:19:55] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution

grzegorz914 commented 1 year ago

Try0.5.5-beta.3 and let me know

Reliktdragons commented 1 year ago

With the beta, there has been no restart so far.

What remains:

This plugin generated a warning from the characteristic 'Target Heater-Cooler State': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.

This Only With Setting Heater/Cooler with Setting Thermostat no warning.

The second thing I noticed:

When the Target Room temperature is changed via HomeKit, it jumps back to the value before after a few seconds.

grzegorz914 commented 1 year ago

Please try 0.5.5-beta.7

You have Zone 1 and Hot Water, what happen if You change temp for Hot Water and for Zone 1. it will be good if you enable log info and record this during changes.

Reliktdragons commented 1 year ago

With this version i have no Response in Homekit

Log:

"Name": "Zuhause", "AddressLine1": „-, "AddressLine2": null, "City": „-„, "Postcode": „-„, "Latitude": -, "Longitude": -, "District": null, "FPDefined": false, "FPEnabled": false, "FPMinTemperature": 14, "FPMaxTemperature": 16, "HMDefined": false, "HMEnabled": false, "HMStartDate": null, "HMEndDate": null, "BuildingType": 1, "PropertyType": 8, "DateBuilt": null, "HasGasSupply": true, "LocationLookupDate": "2023-02-25T10:57:09.053", "Country": 85, "TimeZoneContinent": 3, "TimeZoneCity": 49, "TimeZone": 119, "Location": -, "CoolingDisabled": false, "Expanded": true, "Structure": { "Floors": [], "Areas": [], "Devices": [ { "DeviceID": removed, "DeviceName": "Zuhause", "BuildingID": -, "BuildingName": null, "FloorID": null, "FloorName": null, "AreaID": null, "AreaName": null, "ImageID": -1, "InstallationDate": null, "LastServiceDate": null, "Presets": [ { "Power": true, "EcoHotWater": true, "OperationModeZone1": 0, "OperationModeZone2": 2, "SetTankWaterTemperature": 30, "SetTemperatureZone1": 18, "SetTemperatureZone2": 20, "ForcedHotWaterMode": false, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "ID": -, "Client": - "DeviceLocation": -, "Number": 1, "Configuration": "truetrue02301820false25202020", "NumberDescription": "Nachtabsenkung" }, { "Power": true, "EcoHotWater": true, "OperationModeZone1": 0, "OperationModeZone2": 2, "SetTankWaterTemperature": 29.5, "SetTemperatureZone1": 20, "SetTemperatureZone2": 20, "ForcedHotWaterMode": false, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "ID": -, "Client": -, "DeviceLocation": - "Number": 2, "Configuration": "truetrue0229.52020false25202020", "NumberDescription": "Tagtemperatur" } ], "OwnerID": -, "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": 3, "LinkedDevice": null, "Type": 1, "MacAddress": „-„, "SerialNumber": „-„, "Device": { "PCycleActual": 0, "ErrorMessages": "", "DeviceType": 1, "FTCVersion": 1500, "FTCRevision": "r0", "LastFTCVersion": 0, "LastFTCRevision": null, "FTCModel": 2, "RefridgerentAddress": 0, "DipSwitch1": 182, "DipSwitch2": 160, "DipSwitch3": 16, "DipSwitch4": 0, "DipSwitch5": 0, "DipSwitch6": 0, "HasThermostatZone1": true, "HasThermostatZone2": true, "TemperatureIncrement": 0.5, "DefrostMode": 0, "HeatPumpFrequency": 32, "MaxSetTemperature": 40, "MinSetTemperature": 25, "RoomTemperatureZone1": 20.5, "RoomTemperatureZone2": -39, "OutdoorTemperature": 5, "FlowTemperature": 34, "FlowTemperatureZone1": 31, "FlowTemperatureZone2": 25, "FlowTemperatureBoiler": 25, "ReturnTemperature": 27, "ReturnTemperatureZone1": 24, "ReturnTemperatureZone2": 25, "ReturnTemperatureBoiler": 25, "BoilerStatus": false, "BoosterHeater1Status": false, "BoosterHeater2Status": false, "BoosterHeater2PlusStatus": false, "ImmersionHeaterStatus": false, "WaterPump1Status": true, "WaterPump2Status": true, "WaterPump3Status": false, "ValveStatus3Way": false, "ValveStatus2Way": true, "WaterPump4Status": false, "ValveStatus2Way2a": false, "ValveStatus2Way2b": false, "TankWaterTemperature": 46.5, "UnitStatus": 0, "HeatingFunctionEnabled": true, "ServerTimerEnabled": false, "ThermostatStatusZone1": false, "ThermostatStatusZone2": false, "ThermostatTypeZone1": 0, "ThermostatTypeZone2": 0, "MixingTankWaterTemperature": 0, "CondensingTemperature": 0, "DemandPercentage": 20, "ConfiguredDemandPercentage": null, "HasDemandSideControl": false, "DailyHeatingEnergyConsumed": 13.51, "DailyCoolingEnergyConsumed": 0, "DailyHotWaterEnergyConsumed": 5.28, "DailyHeatingEnergyProduced": 41.78, "DailyCoolingEnergyProduced": 0, "DailyHotWaterEnergyProduced": 8.15, "DailyLegionellaActivationCounter": 0, "LastLegionellaActivationTime": "0001-01-01T00:00:00", "EffectiveFlags": 0, "LastEffectiveFlags": 0, "Power": true, "EcoHotWater": true, "OperationMode": 2, "OperationModeZone1": 0, "OperationModeZone2": 2, "SetTemperatureZone1": 20, "SetTemperatureZone2": 20, "SetTankWaterTemperature": 45, "TargetHCTemperatureZone1": 20, "TargetHCTemperatureZone2": 35, "ForcedHotWaterMode": false, "HolidayMode": false, "ProhibitHotWater": false, "ProhibitHeatingZone1": false, "ProhibitHeatingZone2": false, "ProhibitCoolingZone1": false, "ProhibitCoolingZone2": false, "ServerTimerDesired": false, "SecondaryZoneHeatCurve": false, "SetHeatFlowTemperatureZone1": 25, "SetHeatFlowTemperatureZone2": 20, "SetCoolFlowTemperatureZone1": 20, "SetCoolFlowTemperatureZone2": 20, "DECCReport": false, "CSVReport1min": false, "Zone2Master": false, "DailyEnergyConsumedDate": "2023-03-05T00:00:00", "DailyEnergyProducedDate": "2023-03-05T00:00:00", "CurrentEnergyConsumed": 2, "CurrentEnergyProduced": 19, "CurrentEnergyMode": null, "HeatingEnergyConsumedRate1": 2, "HeatingEnergyConsumedRate2": 0, "CoolingEnergyConsumedRate1": 0, "CoolingEnergyConsumedRate2": 0, "HotWaterEnergyConsumedRate1": 0, "HotWaterEnergyConsumedRate2": 0, "HeatingEnergyProducedRate1": 19, "HeatingEnergyProducedRate2": 0, "CoolingEnergyProducedRate1": 0, "CoolingEnergyProducedRate2": 0, "HotWaterEnergyProducedRate1": 0, "HotWaterEnergyProducedRate2": 0, "ErrorCode2Digit": 0, "SpSubDivisionsToWrite": 0, "SpSubDivisionsToRead": 0, "SpState": 0, "SpSubDivisionsWriteInProgress": 0, "SpSubDivisionsReadInProgress": 0, "InitialSettingsData": null, "InitialSettingsTimestamp": null, "SupportsHourlyEnergyReport": false, "HasZone2": false, "HasSimplifiedZone2": false, "CanHeat": true, "CanCool": false, "HasHotWaterTank": true, "CanSetTankTemperature": true, "CanSetEcoHotWater": true, "HasEnergyConsumedMeter": true, "HasEnergyProducedMeter": true, "CanMeasureEnergyProduced": false, "CanMeasureEnergyConsumed": false, "Zone1InRoomMode": true, "Zone2InRoomMode": false, "Zone1InHeatMode": true, "Zone2InHeatMode": true, "Zone1InCoolMode": false, "Zone2InCoolMode": false, "AllowDualRoomTemperature": false, "IsGeodan": false, "HasEcoCuteSettings": false, "HasFTC45Settings": true, "HasFTC6Settings": false, "CanEstimateEnergyUsage": true, "CanUseRoomTemperatureCooling": false, "IsFtcModelSupported": true, "MaxTankTemperature": 60, "IdleZone1": false, "IdleZone2": true, "MinPcycle": 1, "MaxPcycle": 1, "MaxOutdoorUnits": 255, "MaxIndoorUnits": 255, "MaxTemperatureControlUnits": 0, "ModelCode": "027a", "DeviceID": -, "MacAddress": „-, "SerialNumber": „-„, "TimeZoneID": 119, "DiagnosticMode": 0, "DiagnosticEndDate": null, "ExpectedCommand": 1, "Owner": 702010, "DetectedCountry": null, "AdaptorType": 3, "FirmwareDeployment": null, "FirmwareUpdateAborted": false, "LinkedDevice": null, "WifiSignalStrength": -69, "WifiAdapterStatus": "NORMAL", "Position": "Unknown", "PCycle": 2, "PCycleConfigured": null, "RecordNumMax": 1, "LastTimeStamp": "2023-03-06T19:32:00", "ErrorCode": 8000, "HasError": false, "LastReset": "2023-02-25T11:40:45.756", "FlashWrites": 2, "Scene": null, "TemperatureIncrementOverride": 0, "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": 37000, "FirmwareWebVersion": 0, "FirmwareWlanVersion": 0, "EffectivePCycle": 1, "MqttFlags": 9, "HasErrorMessages": false, "Offline": false, "Units": [ { "ID": 1, "Device": 0, "SerialNumber": „-„, "ModelNumber": 254, "Model": "EHSC-YM9C", "UnitType": 1, "IsIndoor": true } ] }, "DiagnosticMode": 0, "DiagnosticEndDate": null, "Location": 24595, "DetectedCountry": null, "Registrations": 9, "LocalIPAddress": null, "TimeZone": 119, "RegistReason": "STARTUP", "ExpectedCommand": 1, "RegistRetry": 0, "DateCreated": "2023-02-25T10:54:21.3Z", "FirmwareDeployment": null, "FirmwareUpdateAborted": false, "Permissions": { "CanSetForcedHotWater": true, "CanSetOperationMode": true, "CanSetPower": true, "CanSetTankWaterTemperature": true, "CanSetEcoHotWater": false, "CanSetFlowTemperature": true, "CanSetTemperatureIncrementOverride": true } } ], "Clients": [] }, "AccessLevel": 4, "DirectAccess": true, "MinTemperature": 0, "MaxTemperature": 40, "Owner": null, "EndDate": "2500-01-01T00:00:00", "iDateBuilt": null, "QuantizedCoordinates": { "Latitude": - "Longitude": - } }

grzegorz914 commented 1 year ago

Remove and add to HomeKit again

Reliktdragons commented 1 year ago

I remove it,but It no longer shows up for me to add.

Reinstalling the plugin and restarting has also brought nothing.

Log now shows this:

[06/03/2023, 20:14:03] [homebridge-melcloud-control] Account email@, check devices list error, ReferenceError: power is not defined, check again in 90s.

grzegorz914 commented 1 year ago

sorry , beta 8 fixed the power reference

grzegorz914 commented 1 year ago

beta.9 ready, if you do not see in HomeKit to add need to clear Homebridge cache

Reliktdragons commented 1 year ago

It is no longer possible for me to add the heater in HomeKit.

New installation Clear cache Older versions of the plugin All did not work. I will try again

grzegorz914 commented 1 year ago

beta.12 ready, if you don't see in HomeKit try this: https://github.com/grzegorz914/homebridge-melcloud-control/wiki#troubleshooting

Reliktdragons commented 1 year ago

add to homekit unfortunately still not possible.

Log shows this:

[homebridge-melcloud-control] Heat Pump Zuhause, check info, ReferenceError: atwHasHotWaterTank is not defined, check again in 60s.

Reliktdragons commented 1 year ago

I was now able to add it. With the point out from the link I have deleted the files.

With Beta, the add was still not possible.

With 0.5.4 it was also not possible

With 0.5.3 it worked now

grzegorz914 commented 1 year ago

beta.13 need to be working again

Reliktdragons commented 1 year ago

thanks yes it works

here is a log entry when trying to change the target temperature to 18:

[06/03/2023, 22:33:17] [homebridge-melcloud-control] Heat Pump: Zuhause, Zone 1, Set target temperature: 18°C [06/03/2023, 22:33:17] [homebridge-melcloud-control] Heat Pump: Zuhause, Zone 1, Set heating threshold temperature: 20°C [06/03/2023, 22:33:17] [homebridge-melcloud-control] Heat Pump: Zuhause, Zone 1, Set target heating cooling mode: HEAT THERMOSTAT [06/03/2023, 22:33:17] [homebridge-melcloud-control] Heat Pump: Zuhause, Zone 1, Set cooling threshold temperature: 20°C

after 4 attempts it has accepted the 18

grzegorz914 commented 1 year ago

Try beta.15 and let me know

Reliktdragons commented 1 year ago

Switching hot water temperature seems to work.

Room target temperature jumps back to the old value in most cases.

grzegorz914 commented 1 year ago

Can You make screenshots from all yor tiles in HomeKit

Reliktdragons commented 1 year ago

16C2763E-FDA8-48B7-8E63-30AA3B02146D ACD3EB9A-526F-42CB-9520-734386388152 31F57465-D319-4837-81C0-25C854635BB8 65732E70-6A3F-4C8B-872D-41312E4FAC76

grzegorz914 commented 1 year ago

try beta 19, check please switch modes

Reliktdragons commented 1 year ago

No improvement. I have now also tried the Heater/Cooler mode. Is the same, only that I have here again:

This plugin generated a warning from the characteristic 'Target Heater-Cooler State': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.

If I change the temperature directly in the MELCloud app it works. There it says send command for a few seconds.

Via HomeKit it jumps back 8 out of 10 times.

grzegorz914 commented 1 year ago

can you record video during temp set in heater/cooler?

Reliktdragons commented 1 year ago

From HomeKit/ Home App?

Yes I will try this afternoon.

grzegorz914 commented 1 year ago

Yes from Home.app

grzegorz914 commented 1 year ago

beta 22 ready, please test change modes for Heat Pump, Hot Water and Zone 1

Reliktdragons commented 1 year ago

For hot water, I can change the mode to automatic and heat. Changing the temperature also works great.

For room temperature, the mode always jumps back to heating. Off / Cooling / Automatic always jumps back.

Edit: Change the Temperature with the slider now works Great.

Now only with HomeKit Automation it Jumps back. (Direct from 20 to 18 or 18 to 20)

This can then only be due to HomeKit or?

My heater does not have a cooling function. Can it be because of this?

grzegorz914 commented 1 year ago

OK try 23 with modes change

Reliktdragons commented 1 year ago

No changes

Mode Off / Cooling / Automatic always jumps back to Heating

But in the MELCloud app I can also only select heat and on/off.

Automatic and cooling are nowhere to be found.

grzegorz914 commented 1 year ago

OK, you have only Heating then spring to heating back, try beta.24 and change zone 1 to AUTO and please the info log

Reliktdragons commented 1 year ago

Thanks. Now everything works.

I can select Automatic mode.

Changing room Target temperature via an automation in automatic mode also works perfectly now.

grzegorz914 commented 1 year ago

As you write in previous post you don’t have cool mode, can you post screenshots what an option are to select in MELCloud app? For Heat pump water tank and zone?

Reliktdragons commented 1 year ago

F31668F0-ECD4-46DE-9B01-502A4D8AC17B E32D3C53-E98F-45C5-B33C-0B8795817C58 363B66D4-C3B2-4343-AB87-01A077FEA343

Reliktdragons commented 1 year ago

I just noticed.

Heating mode = room temperature guided control (change temperature via automation not possible/ jumps back).

Mode Automatic= Control according to heating curve (change temperature via automation works).

grzegorz914 commented 1 year ago

OK, will check it, in your case need to remove cool mode from select options in Heat Pump Tile

grzegorz914 commented 1 year ago

beta.25 ready, check please Thermostat and Heater/Cooler. Now displayed options in Heat Pump, Hot Water, and Zone, need to be only for Heat Pump - Heat, Hot Water - Auto/Heat, Zone 1 - Auto/Heat,

grzegorz914 commented 1 year ago

beta.26 added in Thermostat mode in Heat Pump tile Power OFF options.

grzegorz914 commented 1 year ago

also 27 ready

Reliktdragons commented 1 year ago

On the way right now, Therefore only a short update. Beta 27 now looks like this for hot water:

The rest I can only try later when I'm home.

B10BDC5A-CDFB-453E-8815-36B2A55F091E