Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thermostat "No response" in Auto mode #47

Closed
hjltu opened this issue Dec 17, 2017 · 3 comments
Closed

Thermostat "No response" in Auto mode #47

hjltu opened this issue Dec 17, 2017 · 3 comments

Comments

@hjltu
Copy link

hjltu commented Dec 17, 2017

If send topic: "/homekit/tp-mode-stat" payload: "3"
for statusCurrentHeatingCoolingState.
Then Thermostat accessory show "No response" and sometimes MQTT Bridge also show "No response" and stop working.

No debug output
{
	"Therm-tp-van": {
		"service": "Thermostat",
		"name":    "Теплый пол",
		"topic": {
			"setTargetTemperature":     "/homekit/tp-target",
			"statusCurrentTemperature": "/homekit/tp-curr",
			"statusTargetTemperature":  "/homekit/tp-target-stat",
			"setTargetHeatingCoolingState":"/homekit/tp-mode",
			"statusCurrentHeatingCoolingState":"/homekit/tp-mode-stat"
		},
		"config": {
			"TemperatureDisplayUnits": 0
		},
		"manufacturer": "Generic",
		"model": "Thermostat"
	}
}
@hobbyquaker
Copy link
Owner

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

@hjltu
Copy link
Author

hjltu commented Dec 24, 2017

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.

@hjltu hjltu changed the title Thermostat "No response Thermostat "No response" in Auto mode Dec 24, 2017
@hobbyquaker hobbyquaker added bug and removed bug labels Feb 9, 2018
@hobbyquaker
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants