homekit2mqtt icon indicating copy to clipboard operation
homekit2mqtt copied to clipboard

Problem with HeaterCooler

Open chrispi68 opened this issue 6 years ago • 8 comments

Today I tried the new HeaterCooler service but I have a problem:

When I change the temperature or the Mode(s)/State, everything works fine. But changes are not reflected in the Apple Home App. For example, the temperature is always 0. I checked the MQTT topic and the values but everything seems fine.

Before HeaterCooler I used a Thermostat to control my AirCondition. This is still working without any problems (like > 40 other devices I use via HomeKit2Mqtt).

Any help or hint is appreciated.

Viele Grüße Christoph

chrispi68 avatar Aug 12 '18 19:08 chrispi68

Just a first guess... could you try to delete line 44 in services/HeaterCooler.js https://github.com/hobbyquaker/homekit2mqtt/blob/master/services/HeaterCooler.js#L44 and restart homekit2mqtt to see if it works then?

hobbyquaker avatar Aug 12 '18 21:08 hobbyquaker

I deleted the line and did a complete restart. But unfortunately this did not help.

chrispi68 avatar Aug 13 '18 17:08 chrispi68

could you pls show the log output (-v debug) when publishing a message on the temperature topic?

hobbyquaker avatar Aug 13 '18 18:08 hobbyquaker

I found out that the temperature topic is not in the log file.

This ist my config:

 "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2":
  {
    "id": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2",
    "name": "EwWohnzimmer/Klimaanlage2",
    "manufacturer": "HCS",
    "model": "EwWohnzimmer/Klimaanlage2",
    "services":
    [
      {
        "service": "HeaterCooler",
        "name": "EwWohnzimmer/Klimaanlage2",
        "topic":
        {
          "setActive": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/setActive",
          "setTargetHeaterCoolerState": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/setTargetHeaterCoolerState",
          "setCoolingThresholdTemperature": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/setCoolingThresholdTemperature",
          "setHeatingThresholdTemperature": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/setHeatingThresholdTemperature",
          "setRotationSpeed": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/setRotationSpeed",
          "setSwingMode": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/setSwingMode",
          "statusActive": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusActive",
          "statusCurrentTemperature": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusCurrentTemperature",
          "statusCurrentHeaterCoolerState": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusCurrentHeaterCoolerState",
          "statusTargetHeaterCoolerState": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusTargetHeaterCoolerState",
          "statusSwingMode": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusSwingMode",
          "statusRotationSpeed": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusRotationSpeed",
          "statusCoolingThresholdTemperature": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusCoolingThresholdTemperature",
          "statusHeatingThresholdTemperature": "Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusHeatingThresholdTemperature"
        },
        "payload":
        {
          "identify": "select"
        },
        "config":
        {
          "TemperatureDisplayUnits": 0
        }
      }
    ]
  },

The log:

0|index    | 2018-08-13 21:41:19.953 <debug> < mqtt Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusCoolingThresholdTemperature 23 23
0|index    | 2018-08-13 21:41:19.954 <debug> > hap update EwWohnzimmer/Klimaanlage2 CoolingThresholdTemperature 23
0|index    | 2018-08-13 21:41:19.955 <debug> < mqtt Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusHeatingThresholdTemperature 23 23
0|index    | 2018-08-13 21:41:19.955 <debug> > hap update EwWohnzimmer/Klimaanlage2 HeatingThresholdTemperature 23
0|index    | 2018-08-13 21:41:19.956 <debug> < mqtt Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusCurrentHeaterCoolerState 0 0
0|index    | 2018-08-13 21:41:19.956 <debug> > hap update EwWohnzimmer/Klimaanlage2 CurrentHeaterCoolerState 0
0|index    | 2018-08-13 21:41:19.956 <debug> < mqtt Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusRotationSpeed 25 25
0|index    | 2018-08-13 21:41:19.956 <debug> > hap update EwWohnzimmer/Klimaanlage2 RotationSpeed 25
0|index    | 2018-08-13 21:41:19.956 <debug> < mqtt Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusSwingMode 0 0
0|index    | 2018-08-13 21:41:19.957 <debug> > hap update EwWohnzimmer/Klimaanlage2 SwingMode 0

I checked the topic publication with MQTTBox and it looks ok:

26
qos : 0, retain : false, cmd : publish, dup : false, topic : Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusCurrentTemperature, messageId : , length : 75, Raw payload : 5054

Thanks, Christoph

chrispi68 avatar Aug 13 '18 19:08 chrispi68

Ok, found the error. Will fix it asap.

hobbyquaker avatar Aug 13 '18 21:08 hobbyquaker

Thank you very much! It's working now!

Christoph

chrispi68 avatar Aug 17 '18 17:08 chrispi68

Hmm, it looks like changes to the CurrentHeaterCoolerState is not update in the Home App. It shows up in the log with the value 3 (Cooling) but the Home app shows "Aus". Also, TargetHeaterCoolerState is 2 (Cool).

0|index    | 2018-08-17 23:32:11.105 <debug> < mqtt Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusCurrentHeaterCoolerState 3 3
0|index    | 2018-08-17 23:32:11.105 <debug> > hap update EwWohnzimmer/Klimaanlage2 CurrentHeaterCoolerState 3
0|index    | 2018-08-17 23:32:11.106 <debug> < mqtt Hcs/Programs/EwWohnzimmer/HomeKit/Klimaanlage2/statusTargetHeaterCoolerState 2 2
0|index    | 2018-08-17 23:32:11.106 <debug> > hap update EwWohnzimmer/Klimaanlage2 TargetHeaterCoolerState 2

chrispi68 avatar Aug 17 '18 21:08 chrispi68

I tried the Eve app. But changes to the CurrentHeaterCoolerState are also not reflected. So the behavior is the same as in the Apple Home App.

chrispi68 avatar Aug 18 '18 12:08 chrispi68