Closed grzegorz914 closed 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
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.
Ok it's done. thanks for the child bridge. What do we do next ? do I send you logs ?
Enable debug in plugin config Advanced section and get the log.
Where can I send you the logs ? I don't want to post it here.
grzegorz914@icloud.com
If still need help to test, I have the Mitsubishi Electric Zubadan PUHZ-SHW112YHA + Ecodan EHSC-YM9EC
What is not working on your side?
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 "#
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.
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.
Ok, I will check it after you post the debug.
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": "
Try0.5.5-beta.3 and let me know
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.
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.
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": "
Remove and add to HomeKit again
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.
sorry , beta 8 fixed the power reference
beta.9 ready, if you do not see in HomeKit to add need to clear Homebridge cache
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
beta.12 ready, if you don't see in HomeKit try this: https://github.com/grzegorz914/homebridge-melcloud-control/wiki#troubleshooting
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.
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
beta.13 need to be working again
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
Try beta.15 and let me know
Switching hot water temperature seems to work.
Room target temperature jumps back to the old value in most cases.
Can You make screenshots from all yor tiles in HomeKit
try beta 19, check please switch modes
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.
can you record video during temp set in heater/cooler?
From HomeKit/ Home App?
Yes I will try this afternoon.
Yes from Home.app
beta 22 ready, please test change modes for Heat Pump, Hot Water and Zone 1
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?
OK try 23 with modes change
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.
OK, you have only Heating then spring to heating back, try beta.24 and change zone 1 to AUTO and please the info log
Thanks. Now everything works.
I can select Automatic mode.
Changing room Target temperature via an automation in automatic mode also works perfectly now.
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?
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).
OK, will check it, in your case need to remove cool mode from select options in Heat Pump Tile
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,
beta.26 added in Thermostat mode in Heat Pump tile Power OFF options.
also 27 ready
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.
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?