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

Temperature setting via Home not working since latest update #69

Closed
abhollan opened this issue Jun 9, 2020 · 28 comments
Closed

Temperature setting via Home not working since latest update #69

abhollan opened this issue Jun 9, 2020 · 28 comments

Comments

@abhollan
Copy link

abhollan commented Jun 9, 2020

On the latest homebridge-tcc update, I can set a temperature in the Home app, but the temperature will not change on my thermostat. If I close the Home app and then reopen it, the temperature setting will have the original setting and not the one I chose. If I watch my Homebridge log, it does register the attempted change:

[6/9/2020, 5:06:29 PM] [Thermostat] Setting switch for LOWER LEVEL to 2
[6/9/2020, 5:06:33 PM] [Thermostat] Setting target temperature for LOWER LEVEL to 23.9°

(I'm not sure why it has this in Celsius -- is this the problem?)

@NorthernMan54
Copy link
Owner

Please update to the latest and try again.

If this continues, please share a DEBUG log.

PS It is Celcius as that is what HomeKit uses internally

@abhollan
Copy link
Author

abhollan commented Jun 10, 2020

Still not working on 0.2.4.

Here is the log when I tried to change MASTER BEDROOM from cool to 76 to cool to 73:

removed debug logs

@othrside
Copy link

Having same exact issue. Can include debug log if needed.

@NorthernMan54
Copy link
Owner

@othrside If you could update to the latest 0.2.5, and enable debug and share a log much appreciated.

@othrside
Copy link

Last update seems to have resolved the issue.

@NorthernMan54
Copy link
Owner

Tks for confirming the fix

@abhollan
Copy link
Author

Works for me too!

@othrside
Copy link

I thought the issue was resolved as it seemed to be working again, however the issue has returned.

[6/14/2020, 1:36:29 PM] [Thermostat] Setting switch for THERMOSTAT to 2
Sun, 14 Jun 2020 18:36:29 GMT tcc-lib _put() { ThermostatID: 5479762, TargetHeatingCooling: 2 }
Sun, 14 Jun 2020 18:36:29 GMT tcc-lib _UpdateThermostat() { ThermostatID: 5479762, TargetHeatingCooling: 2 }
Sun, 14 Jun 2020 18:36:29 GMT tcc-lib ChangeThermostatMessage { ThermostatID: 5479762, TargetHeatingCooling: 2 }
desiredState.coolSetpoint { ThermostatID: 5479762, TargetHeatingCooling: 2 }
Sun, 14 Jun 2020 18:36:29 GMT tcc-lib _UpdateThermostat: SOAP Message <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://services.alarmnet.com/Services/MobileV2/">soap:Body7CDF0BAA-49EF-4B90-B17D-95FC9141BA815479762131701781801801010</soap:Body></soap:Envelope> 7CDF0BAA-49EF-4B90-B17D-95FC9141BA81 { ThermostatID: 5479762, TargetHeatingCooling: 2 } {
ThermostatID: 5479762,
Name: 'THERMOSTAT',
Model: 'Manhattan UI2',
CurrentTemperature: '25.6',
TargetTemperature: '25.6',
HeatingThresholdTemperature: '21.1',
CoolingThresholdTemperature: '25.6',
CurrentHeatingCoolingState: 0,
TargetHeatingCoolingState: 2,
TargetHeatingCoolingStateValidValues: [ 0, 1, 2 ],
TargetTemperatureHeatMinValue: '4.4',
TargetTemperatureHeatMaxValue: '32.2',
TargetTemperatureCoolMinValue: '10.0',
TargetTemperatureCoolMaxValue: '37.2',
device: {
ThermostatID: 5479762,
MacID: 'B82CA05A94D4',
DomainID: 44449,
Instance: 0,
DeviceName: 'THERMOSTAT',
UserDefinedDeviceName: 'THERMOSTAT',
Upgrading: false,
ThermostatsAlerts: {},
UI: {
Created: '2020-06-14T18:35:11',
ThermostatLocked: false,
OutdoorTemp: 91,
DispTemperature: 78,
HeatSetpoint: 70,
CoolSetpoint: 78,
DisplayedUnits: 'F',
StatusHeat: 0,
StatusCool: 0,
HoldUntilCapable: true,
ScheduleCapable: true,
VacationHold: 0,
DualSetpointStatus: false,
HeatNextPeriod: 80,
CoolNextPeriod: 80,
HeatLowerSetptLimit: 40,
HeatUpperSetptLimit: 90,
CoolLowerSetptLimit: 50,
CoolUpperSetptLimit: 99,
SchedHeatSp: 70,
SchedCoolSp: 78,
SystemSwitchPosition: 3,
CanSetSwitchAuto: false,
CanSetSwitchCool: true,
CanSetSwitchOff: true,
CanSetSwitchHeat: true,
CanSetSwitchEmergencyHeat: true,
CanSetSwitchSouthernAway: false,
Deadband: 0,
OutdoorHumidity: 49,
IndoorHumidity: 45,
Commercial: false,
SystemSwitchChangeSource: [Object],
HeatSetpointChangeSource: [Object],
CoolSetpointChangeSource: [Object],
VacationHoldChangeSource: [Object]
},
Fan: {
CanControl: true,
Position: 'Auto',
CanSetAuto: true,
CanSetCirculate: true,
CanFollowSchedule: false,
CanSetOn: true,
IsFanRunning: false
},
Humidification: {
CanControlHumidification: false,
CanControlDehumidification: false,
HumidificationSetPoint: 35,
HumidificationUpperLimit: 60,
HumidificationLowerLimit: 10,
HumidificationMode: 'Off',
DehumidificationSetPoint: 50,
DehumidificationUpperLimit: 80,
DehumidificationLowerLimit: 40,
DehumidificationMode: 'Off',
Deadband: 255
},
EquipmentStatus: 'Off',
CanControlSchedule: true,
WillSupportSchedule: false,
ModelTypeID: 37,
ModelTypeName: 'Manhattan UI2'
}
} false
Sun, 14 Jun 2020 18:36:30 GMT tcc-lib Success: _UpdateThermostat { Result: 'Success', CommTaskID: 903142626 } <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://services.alarmnet.com/Services/MobileV2/">soap:Body7CDF0BAA-49EF-4B90-B17D-95FC9141BA815479762131701781801801010</soap:Body></soap:Envelope>
Sun, 14 Jun 2020 18:36:30 GMT tcc-lib GetCommTaskState Success {
Result: 'Success',
CommTaskID: 903142626,
State: 'Running',
FaultReason: 'GatewayNotFound'
}
[6/14/2020, 1:36:31 PM] [Thermostat] Setting target temperature for THERMOSTAT to 24.4°
Sun, 14 Jun 2020 18:36:31 GMT tcc-lib _put() { ThermostatID: 5479762, TargetTemperature: 24.4 }
Sun, 14 Jun 2020 18:36:31 GMT tcc-lib _UpdateThermostat() { ThermostatID: 5479762, TargetTemperature: 24.4 }
Sun, 14 Jun 2020 18:36:31 GMT tcc-lib ChangeThermostatMessage { ThermostatID: 5479762, TargetTemperature: 24.4 }
desiredState.coolSetpoint { ThermostatID: 5479762, TargetTemperature: 24.4 }
Sun, 14 Jun 2020 18:36:31 GMT tcc-lib _UpdateThermostat: SOAP Message <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://services.alarmnet.com/Services/MobileV2/">soap:Body7CDF0BAA-49EF-4B90-B17D-95FC9141BA815479762131701761801801010</soap:Body></soap:Envelope> 7CDF0BAA-49EF-4B90-B17D-95FC9141BA81 { ThermostatID: 5479762, TargetTemperature: 24.4 } {
ThermostatID: 5479762,
Name: 'THERMOSTAT',
Model: 'Manhattan UI2',
CurrentTemperature: '25.6',
TargetTemperature: '25.6',
HeatingThresholdTemperature: '21.1',
CoolingThresholdTemperature: '25.6',
CurrentHeatingCoolingState: 0,
TargetHeatingCoolingState: 2,
TargetHeatingCoolingStateValidValues: [ 0, 1, 2 ],
TargetTemperatureHeatMinValue: '4.4',
TargetTemperatureHeatMaxValue: '32.2',
TargetTemperatureCoolMinValue: '10.0',
TargetTemperatureCoolMaxValue: '37.2',
device: {
ThermostatID: 5479762,
MacID: 'B82CA05A94D4',
DomainID: 44449,
Instance: 0,
DeviceName: 'THERMOSTAT',
UserDefinedDeviceName: 'THERMOSTAT',
Upgrading: false,
ThermostatsAlerts: {},
UI: {
Created: '2020-06-14T18:36:30.1527756',
ThermostatLocked: false,
OutdoorTemp: 91,
DispTemperature: 78,
HeatSetpoint: 70,
CoolSetpoint: 78,
DisplayedUnits: 'F',
StatusHeat: 0,
StatusCool: 0,
HoldUntilCapable: true,
ScheduleCapable: true,
VacationHold: 0,
DualSetpointStatus: false,
HeatNextPeriod: 80,
CoolNextPeriod: 80,
HeatLowerSetptLimit: 40,
HeatUpperSetptLimit: 90,
CoolLowerSetptLimit: 50,
CoolUpperSetptLimit: 99,
SchedHeatSp: 70,
SchedCoolSp: 78,
SystemSwitchPosition: 3,
CanSetSwitchAuto: false,
CanSetSwitchCool: true,
CanSetSwitchOff: true,
CanSetSwitchHeat: true,
CanSetSwitchEmergencyHeat: true,
CanSetSwitchSouthernAway: false,
Deadband: 0,
OutdoorHumidity: 49,
IndoorHumidity: 45,
Commercial: false,
SystemSwitchChangeSource: [Object],
HeatSetpointChangeSource: [Object],
CoolSetpointChangeSource: [Object],
VacationHoldChangeSource: [Object]
},
Fan: {
CanControl: true,
Position: 'Auto',
CanSetAuto: true,
CanSetCirculate: true,
CanFollowSchedule: false,
CanSetOn: true,
IsFanRunning: false
},
Humidification: {
CanControlHumidification: false,
CanControlDehumidification: false,
HumidificationSetPoint: 35,
HumidificationUpperLimit: 60,
HumidificationLowerLimit: 10,
HumidificationMode: 'Off',
DehumidificationSetPoint: 50,
DehumidificationUpperLimit: 80,
DehumidificationLowerLimit: 40,
DehumidificationMode: 'Off',
Deadband: 255
},
EquipmentStatus: 'Off',
CanControlSchedule: true,
WillSupportSchedule: false,
ModelTypeID: 37,
ModelTypeName: 'Manhattan UI2'
}
} false
Sun, 14 Jun 2020 18:36:31 GMT tcc-lib Success: _UpdateThermostat { Result: 'Success', CommTaskID: 903142644 } <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://services.alarmnet.com/Services/MobileV2/">soap:Body7CDF0BAA-49EF-4B90-B17D-95FC9141BA815479762131701761801801010</soap:Body></soap:Envelope>
Sun, 14 Jun 2020 18:36:32 GMT tcc-lib GetCommTaskState Success {
Result: 'Success',
CommTaskID: 903142644,
State: 'Running',
FaultReason: 'GatewayNotFound'
}

@abhollan
Copy link
Author

What I’ve noticed is that if the system is already cooling and you set it to a different temperature, the setting tends to stick. If it is not currently actively cooling and you set it to a different temperature, the setting will not stick.

@othrside
Copy link

@abhollan This worked for me too. But then I tried it later on in the day while the system was off and it changed the temperature. So it would seem that its intermittent.

@abhollan
Copy link
Author

Yeah I agree. It is just erratic, but seems to not work more often than it works.

@NorthernMan54
Copy link
Owner

Just an FYI, the Honeywell back end has been off line for the last few hours. So nothing would work. It came back about 5 minutes ago

@abhollan
Copy link
Author

@NorthernMan54 no, this was happening yesterday too.

@NorthernMan54
Copy link
Owner

I have made some significant changes around using scenes to make changes and also controlling multiple thermostats at the same time. Can you update to the latest and try again.

@NorthernMan54 NorthernMan54 reopened this Jun 17, 2020
@abhollan
Copy link
Author

Still with the same issue. The first time I used the new version it worked. Afterwards, no changes would stay. Indeed, if you stayed on the screen for the thermostat and set it to a different temperature and wait, after a few seconds it reverts to the original temperature.

@NorthernMan54
Copy link
Owner

Can you share a debug log, covering a temperature change? To enable debug set debug: true in config.json

@abhollan
Copy link
Author

abhollan commented Jun 17, 2020

removed debug logs

@abhollan
Copy link
Author

Could it be because of this line:
FaultReason: 'GatewayNotFound'

@NorthernMan54
Copy link
Owner

The only issue I see in the logs is here

Wed, 17 Jun 2020 02:42:34 GMT tcc-lib _UpdateThermostat: SOAP Message <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://services.alarmnet.com/Services/MobileV2/">soap:Body6A0A51A1-2F7E-4EBF-B5D3-D46408DC86953656373131681721881881010</soap:Body></soap:Envelope>

Where a long message should be included showing the actual command to change the thermostat like this

, 17 Jun 2020 03:05:04 GMT tcc-lib Success: _UpdateThermostat { Result: 'Success', CommTaskID: 906056990 } <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://services.alarmnet.com/Services/MobileV2/">soap:Body6BE4BB33-0DB2-4FA6-B7B5-0627D49A1ACF20778981314.51361261261212</soap:Body></soap:Envelope>

@NorthernMan54
Copy link
Owner

Just looking at my comment and it has the same missing text as yours, I have been chasing my tail as github it eating the text from the log!!!

@KevinDevs
Copy link

SOAP FAIL: Error: Request failed with status code 400
[6/17/2020, 12:35:49 PM] [Thermostat] Critical Error - No devices created, please restart.
[6/17/2020, 12:35:49 PM] [Thermostat]
SOAP FAIL: Error: Request failed with status code 400
[6/17/2020, 12:36:20 PM] [Thermostat] ERROR: pollDevices Error:
at /usr/lib/node_modules/homebridge-tcc/lib/tcc.js:67:13
at processTicksAndRejections (internal/process/task_queues.js:97:5)

@NorthernMan54
Copy link
Owner

@KevinDevs for new issues, please create a new issue and not add to an existing issue.

This appears that login failed for your account.

[6/17/2020, 12:35:49 PM] [Thermostat] Critical Error - No devices created, please restart.

@KevinDevs
Copy link

@KevinDevs for new issues, please create a new issue and not add to an existing issue.

This appears that login failed for your account.

[6/17/2020, 12:35:49 PM] [Thermostat] Critical Error - No devices created, please restart.

I've just downgraded back to 0.1.12 everything went back to normal

@othrside
Copy link

Attempted temperature change. No luck.

[6/17/2020, 4:01:07 PM] [Thermostat] Setting switch for THERMOSTAT to 2
[6/17/2020, 4:01:08 PM] [Thermostat] First entry THERMOSTAT: 0
[6/17/2020, 4:01:08 PM] [Thermostat] Last entry THERMOSTAT: 583
[6/17/2020, 4:01:08 PM] [Thermostat] Used memory THERMOSTAT: 583
[6/17/2020, 4:01:08 PM] [Thermostat] 116 THERMOSTAT: a9b50b00000000006b068f2405 0102 1102 1001 1201 1d018405c00f00000000000000000101
[6/17/2020, 4:01:08 PM] [Thermostat] ** Fakegato-storage write FS file: /var/lib/homebridge/raspberrypi_THERMOSTAT_persist.json "firstEntry":0,"lastEntry":1411,"usedMemory":1411,"refTime":613353067,"initialTi
[6/17/2020, 4:01:10 PM] [Thermostat] Setting target temperature for THERMOSTAT to 24.4°
[6/17/2020, 4:01:11 PM] [Thermostat] First entry THERMOSTAT: 0
[6/17/2020, 4:01:11 PM] [Thermostat] Last entry THERMOSTAT: 584
[6/17/2020, 4:01:11 PM] [Thermostat] Used memory THERMOSTAT: 584
[6/17/2020, 4:01:11 PM] [Thermostat] 116 THERMOSTAT: acb50b00000000006b068f2405 0102 1102 1001 1201 1d018505c00f00000000000000000101
[6/17/2020, 4:01:11 PM] [Thermostat] ** Fakegato-storage write FS file: /var/lib/homebridge/raspberrypi_THERMOSTAT_persist.json "firstEntry":0,"lastEntry":1412,"usedMemory":1412,"refTime":613353067,"initialTi

@othrside
Copy link

othrside commented Jun 17, 2020

Removed debug logs

NorthernMan54 added a commit that referenced this issue Jun 17, 2020
NorthernMan54 added a commit that referenced this issue Jun 17, 2020
* Split out messages

* Enable no response when Thermostat is not responding

* WIP

* WIP

* WIP

* WIP

* WIP

* Fixes for multi

* Fixes for #69 #68

* I think this is it

I was setting status heat/cool incorrectly
@NorthernMan54
Copy link
Owner

Found the issue, changing the thermostat settings was not working when the thermostat was following a schedule. Please update to the latest and try again.

@abhollan
Copy link
Author

On my preliminary testing, this seems to have fixed it. Thanks so much for your hard work, @NorthernMan54

@othrside
Copy link

Seems to be working. No issues. Thank You

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

4 participants