Git Product home page Git Product logo

Comments (3)

hobbyquaker avatar hobbyquaker commented on May 22, 2024

Please provide debug output that shows the incoming MQTT message and the corresponding HAP actions.

from homekit2mqtt.

hjltu avatar hjltu commented on May 22, 2024

Hi hobbyquaker, thanks for great work.

This is debug output:
// version
2017-12-25 01:37:12.772 homekit2mqtt 0.6.9 starting

// if thermostat mode = 3 (Auto)
2017-12-25 01:42:22.383 < mqtt /homekit/tp-mode-stat 3

// I open Home on iphone
2017-12-25 01:42:22.383 > hap set Теплый пол CurrentHeatingCoolingState 3
2017-12-25 01:42:31.653 < hap get Теплый пол TargetTemperature
2017-12-25 01:42:31.654 > hap re_get Теплый пол TargetTemperature 25
2017-12-25 01:42:31.655 < hap get Теплый пол CurrentTemperature
2017-12-25 01:42:31.656 > hap re_get Теплый пол CurrentTemperature 25
2017-12-25 01:42:31.657 < hap get Теплый пол CurrentHeatingCoolingState
2017-12-25 01:42:31.657 > hap re_get Теплый пол CurrentHeatingCoolingState 3
2017-12-25 01:42:31.658 < hap get Теплый пол TemperatureDisplayUnits
2017-12-25 01:42:31.658 > hap re_get Теплый пол TemperatureDisplayUnits 0

// now thermostat is "No response" and show "!" mark

If I change mode(send mqtt messages) and open Home again,
then thermostat will work.

from homekit2mqtt.

hobbyquaker avatar hobbyquaker commented on May 22, 2024

This seems to be "works as designed". The Modus "Auto" is not specified by Apple in the HomeKit Characteristic:

Characteristic.call(this, 'Current Heating Cooling State', '0000000F-0000-1000-8000-0026BB765291');
  this.setProps({
    format: Characteristic.Formats.UINT8,
    maxValue: 2,
    minValue: 0,
    validValues: [0,1,2],
    perms: [Characteristic.Perms.READ, Characteristic.Perms.NOTIFY]
  });

inherits(Characteristic.CurrentHeatingCoolingState, Characteristic);

Characteristic.CurrentHeatingCoolingState.UUID = '0000000F-0000-1000-8000-0026BB765291';

// The value property of CurrentHeatingCoolingState must be one of the following:
Characteristic.CurrentHeatingCoolingState.OFF = 0;
Characteristic.CurrentHeatingCoolingState.HEAT = 1;
Characteristic.CurrentHeatingCoolingState.COOL = 2;

Seems like Auto is only meant to be set on the device, not to be reported by the device as current state.

from homekit2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.