Hernas / homebridge-panasonic-heat-pump

Apache License 2.0
7 stars 2 forks source link

Aquarea heat pump frequently reporting as "No response" in homekit #7

Closed denisbobovnik closed 1 month ago

denisbobovnik commented 6 months ago

Describe Your Problem: My heat pump's heating setting range from -5 to 5, the integration seems to be able to se it even higher or lower than that, uppon which it becoms unresponsive. Since heating season is almost over at our location, i have it manually set to -5 (lowest possible to maintain temperature at night), and when that is set, it reports as no response in homekit. when i set it to the dot, in the thermostat entity, it sets it to the 0 value on heat pump, and is then reponsive again. but then its heating too much for my needs. the entities are responsive in homebridge though.

Logs: [3/25/2024, 7:40:51 AM] Homebridge v1.7.0 (HAP v0.11.2) (Homebridge D9B1) is running on port 51574. [3/25/2024, 7:40:55 AM] [PanasonicHeatPumpHomebridgePlugin] Authenticated to Aquarea Smart Panasonic [3/25/2024, 7:40:55 AM] [PanasonicHeatPumpHomebridgePlugin] Adding new accessory: Pralnica [3/25/2024, 7:40:55 AM] [PanasonicHeatPumpHomebridgePlugin] Adding new accessory: Pralnica [3/25/2024, 7:40:55 AM] [@hernas/homebridge-panasonic-heat-pump] This plugin generated a warning from the characteristic 'Active': Characteristic not in required or optional characteristic section for service Thermostat. Adding anyway.. See https://homebridge.io/w/JtMGR for more info. [3/25/2024, 7:48:19 AM] [PanasonicHeatPumpHomebridgePlugin] Authenticated to Aquarea Smart Panasonic [3/25/2024, 7:52:12 AM] [Homebridge UI] [denisbobovnik] Accessory layout changes saved. [3/25/2024, 7:52:29 AM] [Homebridge UI] [denisbobovnik] Accessory layout changes saved. [3/25/2024, 7:52:43 AM] [Homebridge UI] [denisbobovnik] Accessory layout changes saved. [3/25/2024, 7:53:06 AM] [Homebridge UI] [denisbobovnik] Accessory layout changes saved. [3/25/2024, 8:04:49 AM] [Homebridge UI] [denisbobovnik] Accessory layout changes saved.

Plugin Config: "email": "removed", "password": "removed", "enableOutdoorTempSensor": true, "enableEcoModeSwitch": false, "enableComfortModeSwitch": false, "refreshTime": 5, "platform": "PanasonicHeatPumpHomebridgePlugin"

Screenshots: IMG_9674 JPEG_compressed

Environment:

vinietu commented 6 months ago

I used to have same issue with random "no response" in homekit but after upgrading to 2.01. problem disappeared

bimusiek commented 6 months ago

@denisbobovnik Hey, I know about the issue but I could never really debug it correctly. Even before Panasonic changed their API I am randomly getting "No response" for the heater (but not for the water tank).

At least now I have a clue, that it happens with -5, so maybe my calculations in the code are incorrect which breaks the homekit integration somehow. As I don't have 100% reproducible scenario, it is hard for me to find the issue. The code looks ok.

vinietu commented 6 months ago

and now, have no idea why the same issue is reported in homekit 65DC976A-FD04-45F1-B983-91D861ED89A3_1_201_a Water - no response

bimusiek commented 6 months ago

Can you post the logs? I will take a look at this on weekend. I feel something is off with the accessory setup, but I tried adding caching and always returning the value on get method so that is surprising.

vinietu commented 6 months ago

[25/03/2024, 14:10:33] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [7080972b-acc5-4ee0-be5e-95907e876663] [25/03/2024, 14:10:33] [@hernas/homebridge-panasonic-heat-pump] Updating outdoor temp: 8 [25/03/2024, 14:10:42] [@hernas/homebridge-panasonic-heat-pump] Readings: { "temperatureNow": 40, "heatingCoolingState": 1, "targetHeatingCoolingState": 1, "outdoorTemperatureNow": 8, "tankTemperatureNow": 45, "tankTemperatureSet": 45, "tankHeatingCoolingState": 0, "tankTargetHeatingCoolingState": 1, "isActive": true, "ecoModeIsActive": false, "comfortModeIsActive": false, "tankTemperatureMax": 65, "tankTemperatureMin": 40, "targetTempSet": -1, "targetTempMin": -5, "targetTempMax": 5, "tempType": "heat" } [25/03/2024, 14:10:42] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [3c7ca285-dfb4-4f5f-8116-324ca4389cbf] [25/03/2024, 14:10:42] [@hernas/homebridge-panasonic-heat-pump] Updating TargetTemperature of Floor Heater: {"minValue":35,"maxValue":45,"minStep":1} [25/03/2024, 14:10:42] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [7080972b-acc5-4ee0-be5e-95907e876663] [25/03/2024, 14:10:42] [@hernas/homebridge-panasonic-heat-pump] Updating outdoor temp: 8 [25/03/2024, 14:10:51] [@hernas/homebridge-panasonic-heat-pump] Readings: { [25/03/2024, 14:10:51] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [3c7ca285-dfb4-4f5f-8116-324ca4389cbf] [25/03/2024, 14:10:51] [@hernas/homebridge-panasonic-heat-pump] Updating TargetTemperature of Floor Heater: {"minValue":35,"maxValue":45,"minStep":1} [25/03/2024, 14:10:51] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [7080972b-acc5-4ee0-be5e-95907e876663] [25/03/2024, 14:10:51] [@hernas/homebridge-panasonic-heat-pump] Updating outdoor temp: 8 [25/03/2024, 14:11:00] [@hernas/homebridge-panasonic-heat-pump] Readings: { [25/03/2024, 14:11:00] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [3c7ca285-dfb4-4f5f-8116-324ca4389cbf] [25/03/2024, 14:11:00] [@hernas/homebridge-panasonic-heat-pump] Updating TargetTemperature of Floor Heater: {"minValue":35,"maxValue":45,"minStep":1} [25/03/2024, 14:11:00] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [7080972b-acc5-4ee0-be5e-95907e876663] [25/03/2024, 14:11:00] [@hernas/homebridge-panasonic-heat-pump] Updating outdoor temp: 8 [25/03/2024, 14:11:09] [@hernas/homebridge-panasonic-heat-pump] Readings: { [25/03/2024, 14:11:09] [@hernas/homebridge-panasonic-heat-pump] Updating: Trojanki [3c7ca285-dfb4-4f5f-8116-324ca4389cbf] [25/03/2024, 14:11:09] [@hernas/homebridge-panasonic-heat-pump] Updating TargetTemperature of Floor Heater: {"minValue":35,"maxValue":45,"minStep":1}

denisbobovnik commented 6 months ago

i tried this integration just today after ours from HA stopped working because of the Auth0 authentication. didn't even know there was an aquarea integration in HB. We also had problems over there. but not with unresponsiveness. the heat pump has settings from -5 to 5. and that integration had (at least when expoised to homekit), these same values, and since homekit doesn't have the concept of negative temperature, the only values i could set were from 0 to 5. if i wanted to have it below 0 i had to set it on the pump itself or on the official app (or the ha integration). if i then just touched the slider in homekit, it would set it to 0. i tried creating a placeholder entity for higher values, and then modifying the integration code, but since im not that into programming and into ha, i could only somewhat change it. i got it to work like this integration in hb, but that was 1 day before the authentication change, then i couldn't try new changes afterwards since its broken now.

vinietu commented 6 months ago

Sorry my mistake wrong naming, I have randomly heat pump ‚no response’ With water it is always ok.

mastaab commented 6 months ago

I get the feeling that depending on the settings of the heatpump we are getting wrong/missing values from the API I can't reproduce now, but I saw this

[03/04/2024, 16:58:36] [@hernas/homebridge-panasonic-heat-pump] Readings: {
    "temperatureNow": 27,
    "heatingCoolingState": 1,
    "targetHeatingCoolingState": 3,
    "outdoorTemperatureNow": 10,
    "tankTemperatureNow": 47,
    "tankTemperatureSet": 48,
    "tankHeatingCoolingState": 0,
    "tankTargetHeatingCoolingState": 1,
    "isActive": true,
    "ecoModeIsActive": false,
    "comfortModeIsActive": true,
    "tankTemperatureMax": 65,
    "tankTemperatureMin": 40,
    "tempType": "comfort"
}
[03/04/2024, 16:58:36] [@hernas/homebridge-panasonic-heat-pump] Updating: Wärmepumpe [100d7607-3a4d-4e7d-a0da-b8a102c5414b]
[03/04/2024, 16:58:36] [@hernas/homebridge-panasonic-heat-pump] Updating TargetTemperature of Floor Heater: {"minValue":null,"maxValue":null,"minStep":1}

When I checked the official app / aquarea-smart.panasonic.com it was set to -5 and comfort mode (unknown how this happened, I never set it to that value manually)

bimusiek commented 5 months ago

@mastaab Please check v2.0.2