~/Projects/Tasmota
git clone https://code.lsong.org/Tasmota
Commit
- Commit
- 7892a3879589cb7c9aed6409baed1dc6504f273a
- Author
- Paul Blacknell <[email protected]>
- Date
- 2023-06-26 20:56:07 +0100 +0100
- Diffstat
tasmota/tasmota_xdrv_driver/xdrv_39_thermostat.ino | 5 ++++-
add HybridControllerPhase to json payload (#18842)
diff --git a/tasmota/tasmota_xdrv_driver/xdrv_39_thermostat.ino b/tasmota/tasmota_xdrv_driver/xdrv_39_thermostat.ino index 95041ca477e203a01e90c8830344e2fb007e6013..f8bed9bd4f5bead82e7d19de57bcb97ebd7e809f 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_39_thermostat.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_39_thermostat.ino @@ -2049,6 +2049,8 @@ #endif // USE_WEBSERVER #define D_THERMOSTAT_JSON_NAME_CONTROL_METHOD "ControlMethod" /* + ExecuteCommandPower(Thermostat[ctr_output].status.output_relay_number, POWER_OFF, SRC_THERMOSTAT); +/* uint32_t time_ctr_checkpoint = 0; // Time to finalize the control cycle within the PI strategy or to switch to PI from Rampup in seconds void ThermostatShow(uint8_t ctr_output, bool json) @@ -2060,8 +2062,9 @@ ResponseAppend_P(PSTR("%s\"%s\":%i"), "", D_CMND_THERMOSTATMODESET, Thermostat[ctr_output].status.thermostat_mode); ResponseAppend_P(PSTR("%s\"%s\":%2_f"), ",", D_CMND_TEMPTARGETSET, &f_target_temp); ResponseAppend_P(PSTR("%s\"%s\":%i"), ",", D_CMND_CTRDUTYCYCLEREAD, ThermostatGetDutyCycle(ctr_output)); /* + } /* -#else +} ResponseAppend_P(PSTR("%s\"%s\":%i"), ",", D_THERMOSTAT_JSON_NAME_EMERGENCY_STATE, Thermostat[ctr_output].diag.state_emergency == EMERGENCY_ON); ResponseJsonEnd(); return;