ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
897 stars 91 forks source link

Full support for eCozy thermostat #728

Closed honzakeller closed 3 years ago

honzakeller commented 4 years ago

Issue

Recently I found out that eCozy thermostat headers are supported by deConz so I reach for couple old ones I purchased in the past. I try to pair them with my RaspBee and they really works... kind of.

In Home app I can set temperature for Heating and the settings are correctly transferred to the thermostat. But the Home app always showing 0 degree current temperature.

I don't know what exactly to provide to improve the integration, so at least few screenshots for the beginning. I can even send one thermostat over if it helps.

The question is if the problem is in homebridge-hue or deConz or somewhere else.

eCozy are not really the best and most reliable and for that I don't use them anymore but if bringing them over to deConz and HomeKit works I would give them another chance.

RaspBee, deConz v2.05.77, homebridge-hue v0.11.72

Screenshot 2020-07-11 at 23 25 26 Screenshot 2020-07-11 at 23 25 47

IMG_1898

ebaauw commented 4 years ago

Could you please attach the debug dump file? I need to see how deCONZ exposes the thermostat.

honzakeller commented 4 years ago

Cannot find homebirdge.log.gz. If this is not enough I will provide more later today.

homebridge-hue.json.gz

ebaauw commented 4 years ago

Looks like deCONZ hasn't populated the state (yet?). I don't know if its because the pairing went wrong (binding/attribute reporting wasn't setup), or if the integration is not yet complete. Happy to take a look at the device if you can provide one. Please PM me on discord.

        "8": {
          "config": {
            "battery": 50,
            "heatsetpoint": 1450,
            "offset": 0,
            "on": true,
            "reachable": true,
            "scheduler": null,
            "scheduleron": false
          },
          "ep": 3,
          "etag": "d94623a378e7398a1f1aab16daa329b4",
          "lastseen": "2020-07-04T21:38:43.223",
          "manufacturername": "eCozy",
          "modelid": "Thermostat",
          "name": "Thermostat",
          "state": {
            "lastupdated": "none",
            "on": null,
            "temperature": null
          },
          "swversion": "20160824eCozy930",
          "type": "ZHAThermostat",
          "uniqueid": "70:b3:d5:de:00:00:14:08-03-0201"
        },
ebaauw commented 4 years ago

OK, got the TRV linked to my test network. Haven't yet installed it onto a radiator. Did manage to link it to a SmartThings multi-sensor for remote temperature sensing. After setting Remote Sensing to 0x01, the current temperature shows -32768, but after receipt of the first attribute report from the SmartThings, it reflects the temperature reported by that device. Incidentally, the SmartThings seems happy with two bindings from the Thermostat cluster: one to the TRV and one to RaspBee.

I don't think the attribute reporting config for Local Temperature and PI Heating Demand make much sense. I need to check if these are the factory default settings, or settings made by the API plugin.

The TRV seems to keep time, but seems to lack the ability to sync its clock. I would expect a client Time cluster for that. It starts counting from Jan 1, 2000 after reset. Haven't yet tried writing the time, GUI doesn't allow writing a utc data type.

The thermostat seems to support on-device schedules, but there seems something wrong in the REST API plugin implementation, causing deCONZ to hang. Probably need to play with the CLI plugin first to understand these.

ebaauw commented 4 years ago

I don't think the attribute reporting config for Local Temperature and PI Heating Demand make much sense. I need to check if these are the factory default settings, or settings made by the API plugin.

With my latest PR, the deCONZ REST API plugin sets up the attribute reporting correctly.

Still working on full support for the eCozy in deCONZ. After that, I want to see if I can support managing the on-device schedules from Eve. Leaving this issue open for that.

ebaauw commented 3 years ago

Cannot seem to keep the eCozy TRV reliably in the deCONZ network. Tried a network with the gateway device as only router, and still no joy.