mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-24 00:53:36 +05:00
Compare commits
6 Commits
09c50d5df8
...
1.6.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56a8574aba | ||
|
|
3adfabdf40 | ||
|
|
a9220d9fa1 | ||
|
|
5a14857f52 | ||
|
|
e487c78921 | ||
|
|
6c3b79bda1 |
@@ -70,40 +70,79 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool sendBoilerReset() {
|
inline auto sendBoilerReset() {
|
||||||
unsigned int data = 1;
|
return this->sendRequestCode(1);
|
||||||
data <<= 8;
|
|
||||||
unsigned long response = this->sendRequest(buildRequest(
|
|
||||||
OpenThermMessageType::WRITE_DATA,
|
|
||||||
OpenThermMessageID::RemoteRequest,
|
|
||||||
data
|
|
||||||
));
|
|
||||||
|
|
||||||
return isValidResponse(response) && isValidResponseId(response, OpenThermMessageID::RemoteRequest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool sendServiceReset() {
|
inline auto sendServiceReset() {
|
||||||
unsigned int data = 10;
|
return this->sendRequestCode(10);
|
||||||
data <<= 8;
|
|
||||||
unsigned long response = this->sendRequest(buildRequest(
|
|
||||||
OpenThermMessageType::WRITE_DATA,
|
|
||||||
OpenThermMessageID::RemoteRequest,
|
|
||||||
data
|
|
||||||
));
|
|
||||||
|
|
||||||
return isValidResponse(response) && isValidResponseId(response, OpenThermMessageID::RemoteRequest);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool sendWaterFilling() {
|
inline auto sendWaterFilling() {
|
||||||
unsigned int data = 2;
|
return this->sendRequestCode(2);
|
||||||
data <<= 8;
|
}
|
||||||
|
|
||||||
|
bool sendRequestCode(const uint8_t requestCode) {
|
||||||
unsigned long response = this->sendRequest(buildRequest(
|
unsigned long response = this->sendRequest(buildRequest(
|
||||||
OpenThermMessageType::WRITE_DATA,
|
OpenThermMessageType::WRITE_DATA,
|
||||||
OpenThermMessageID::RemoteRequest,
|
OpenThermMessageID::RemoteRequest,
|
||||||
data
|
static_cast<unsigned int>(requestCode) << 8
|
||||||
));
|
));
|
||||||
|
|
||||||
return isValidResponse(response) && isValidResponseId(response, OpenThermMessageID::RemoteRequest);
|
if (!isValidResponse(response) || !isValidResponseId(response, OpenThermMessageID::RemoteRequest)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const uint8_t responseRequestCode = (response & 0xFFFF) >> 8;
|
||||||
|
const uint8_t responseCode = response & 0xFF;
|
||||||
|
if (responseRequestCode != requestCode || responseCode < 128) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// reset
|
||||||
|
this->sendRequest(buildRequest(
|
||||||
|
OpenThermMessageType::WRITE_DATA,
|
||||||
|
OpenThermMessageID::RemoteRequest,
|
||||||
|
0u << 8
|
||||||
|
));
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool getStr(OpenThermMessageID id, char* buffer, uint16_t length = 50) {
|
||||||
|
if (buffer == nullptr || length == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned long response;
|
||||||
|
uint8_t index = 0;
|
||||||
|
uint8_t maxIndex = 255;
|
||||||
|
|
||||||
|
while (index <= maxIndex && index < length) {
|
||||||
|
response = this->sendRequest(buildRequest(
|
||||||
|
OpenThermMessageType::READ_DATA,
|
||||||
|
id,
|
||||||
|
static_cast<unsigned int>(index) << 8
|
||||||
|
));
|
||||||
|
|
||||||
|
if (!isValidResponse(response) || !isValidResponseId(response, id)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
const uint8_t character = response & 0xFF;
|
||||||
|
if (character == 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (index == 0) {
|
||||||
|
maxIndex = (response & 0xFFFF) >> 8;
|
||||||
|
}
|
||||||
|
|
||||||
|
buffer[index++] = static_cast<char>(character);
|
||||||
|
}
|
||||||
|
|
||||||
|
buffer[index] = '\0';
|
||||||
|
return index > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool isCh2Active(unsigned long response) {
|
static bool isCh2Active(unsigned long response) {
|
||||||
@@ -111,9 +150,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool isValidResponseId(unsigned long response, OpenThermMessageID id) {
|
static bool isValidResponseId(unsigned long response, OpenThermMessageID id) {
|
||||||
uint8_t responseId = (response >> 16) & 0xFF;
|
const uint8_t responseId = (response >> 16) & 0xFF;
|
||||||
|
|
||||||
return (uint8_t)id == responseId;
|
return static_cast<uint8_t>(id) == responseId;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint8_t getResponseMessageTypeId(unsigned long response) {
|
static uint8_t getResponseMessageTypeId(unsigned long response) {
|
||||||
@@ -124,10 +163,10 @@ public:
|
|||||||
uint8_t msgType = getResponseMessageTypeId(response);
|
uint8_t msgType = getResponseMessageTypeId(response);
|
||||||
|
|
||||||
switch (msgType) {
|
switch (msgType) {
|
||||||
case (uint8_t) OpenThermMessageType::READ_ACK:
|
case static_cast<uint8_t>(OpenThermMessageType::READ_ACK):
|
||||||
case (uint8_t) OpenThermMessageType::WRITE_ACK:
|
case static_cast<uint8_t>(OpenThermMessageType::WRITE_ACK):
|
||||||
case (uint8_t) OpenThermMessageType::DATA_INVALID:
|
case static_cast<uint8_t>(OpenThermMessageType::DATA_INVALID):
|
||||||
case (uint8_t) OpenThermMessageType::UNKNOWN_DATA_ID:
|
case static_cast<uint8_t>(OpenThermMessageType::UNKNOWN_DATA_ID):
|
||||||
return CustomOpenTherm::messageTypeToString(
|
return CustomOpenTherm::messageTypeToString(
|
||||||
static_cast<OpenThermMessageType>(msgType)
|
static_cast<OpenThermMessageType>(msgType)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ extra_configs = secrets.default.ini
|
|||||||
core_dir = .pio
|
core_dir = .pio
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
version = 1.5.6
|
version = 1.6.0
|
||||||
framework = arduino
|
framework = arduino
|
||||||
lib_deps =
|
lib_deps =
|
||||||
bblanchon/ArduinoJson@^7.4.2
|
bblanchon/ArduinoJson@^7.4.2
|
||||||
@@ -92,7 +92,7 @@ check_flags = ${env.check_flags}
|
|||||||
;platform_packages =
|
;platform_packages =
|
||||||
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.5
|
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.5
|
||||||
; framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-33fbade6.zip
|
; framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-lib-builder/releases/download/idf-release_v5.1/esp32-arduino-libs-idf-release_v5.1-33fbade6.zip
|
||||||
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.34/platform-espressif32.zip
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.35/platform-espressif32.zip
|
||||||
platform_packages = ${env.platform_packages}
|
platform_packages = ${env.platform_packages}
|
||||||
board_build.partitions = esp32_partitions.csv
|
board_build.partitions = esp32_partitions.csv
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ protected:
|
|||||||
vars.master.heating.enabled = this->isReady()
|
vars.master.heating.enabled = this->isReady()
|
||||||
&& settings.heating.enabled
|
&& settings.heating.enabled
|
||||||
&& vars.cascadeControl.input
|
&& vars.cascadeControl.input
|
||||||
&& (!vars.master.heating.blocking || settings.heating.hysteresis.action != HysteresisAction::DISABLE_HEATING)
|
&& !vars.master.heating.blocking
|
||||||
&& !vars.master.heating.overheat;
|
&& !vars.master.heating.overheat;
|
||||||
|
|
||||||
// DHW settings
|
// DHW settings
|
||||||
@@ -186,7 +186,9 @@ protected:
|
|||||||
|| (settings.opentherm.options.dhwToCh2 && settings.opentherm.options.dhwSupport && settings.dhw.enabled);
|
|| (settings.opentherm.options.dhwToCh2 && settings.opentherm.options.dhwSupport && settings.dhw.enabled);
|
||||||
|
|
||||||
if (settings.opentherm.options.heatingToCh2) {
|
if (settings.opentherm.options.heatingToCh2) {
|
||||||
vars.master.ch2.targetTemp = vars.master.heating.setpointTemp;
|
vars.master.ch2.targetTemp = !settings.opentherm.options.nativeOTC
|
||||||
|
? vars.master.heating.setpointTemp
|
||||||
|
: vars.master.heating.targetTemp;
|
||||||
|
|
||||||
} else if (settings.opentherm.options.dhwToCh2) {
|
} else if (settings.opentherm.options.dhwToCh2) {
|
||||||
vars.master.ch2.targetTemp = vars.master.dhw.targetTemp;
|
vars.master.ch2.targetTemp = vars.master.dhw.targetTemp;
|
||||||
@@ -305,6 +307,7 @@ protected:
|
|||||||
Sensors::setConnectionStatusByType(Sensors::Type::OT_DHW_BURNER_HOURS, false);
|
Sensors::setConnectionStatusByType(Sensors::Type::OT_DHW_BURNER_HOURS, false);
|
||||||
Sensors::setConnectionStatusByType(Sensors::Type::OT_HEATING_PUMP_HOURS, false);
|
Sensors::setConnectionStatusByType(Sensors::Type::OT_HEATING_PUMP_HOURS, false);
|
||||||
Sensors::setConnectionStatusByType(Sensors::Type::OT_DHW_PUMP_HOURS, false);
|
Sensors::setConnectionStatusByType(Sensors::Type::OT_DHW_PUMP_HOURS, false);
|
||||||
|
Sensors::setConnectionStatusByType(Sensors::Type::OT_COOLING_HOURS, false);
|
||||||
|
|
||||||
this->initialized = false;
|
this->initialized = false;
|
||||||
this->disconnectedTime = millis();
|
this->disconnectedTime = millis();
|
||||||
@@ -677,6 +680,21 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update cooling hours
|
||||||
|
if (Sensors::getAmountByType(Sensors::Type::OT_COOLING_HOURS, true)) {
|
||||||
|
if (this->updateCoolingHours()) {
|
||||||
|
Log.snoticeln(FPSTR(L_OT), F("Received cooling hours: %hu"), vars.slave.stats.coolingHours);
|
||||||
|
|
||||||
|
Sensors::setValueByType(
|
||||||
|
Sensors::Type::OT_COOLING_HOURS, vars.slave.stats.coolingHours,
|
||||||
|
Sensors::ValueType::PRIMARY, true, true
|
||||||
|
);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
Log.swarningln(FPSTR(L_OT), F("Failed receive cooling hours"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Auto fault reset
|
// Auto fault reset
|
||||||
if (settings.opentherm.options.autoFaultReset && vars.slave.fault.active && !vars.actions.resetFault) {
|
if (settings.opentherm.options.autoFaultReset && vars.slave.fault.active && !vars.actions.resetFault) {
|
||||||
vars.actions.resetFault = true;
|
vars.actions.resetFault = true;
|
||||||
@@ -792,7 +810,7 @@ protected:
|
|||||||
bool result = this->updateDhwTemp();
|
bool result = this->updateDhwTemp();
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
float convertedDhwTemp = convertTemp(
|
const float convertedDhwTemp = convertTemp(
|
||||||
vars.slave.dhw.currentTemp,
|
vars.slave.dhw.currentTemp,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -816,7 +834,7 @@ protected:
|
|||||||
// Update DHW temp 2
|
// Update DHW temp 2
|
||||||
if (settings.opentherm.options.dhwSupport && Sensors::getAmountByType(Sensors::Type::OT_DHW_TEMP2, true)) {
|
if (settings.opentherm.options.dhwSupport && Sensors::getAmountByType(Sensors::Type::OT_DHW_TEMP2, true)) {
|
||||||
if (this->updateDhwTemp2()) {
|
if (this->updateDhwTemp2()) {
|
||||||
float convertedDhwTemp2 = convertTemp(
|
const float convertedDhwTemp2 = convertTemp(
|
||||||
vars.slave.dhw.currentTemp2,
|
vars.slave.dhw.currentTemp2,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -840,7 +858,7 @@ protected:
|
|||||||
// Update DHW flow rate
|
// Update DHW flow rate
|
||||||
if (settings.opentherm.options.dhwSupport && Sensors::getAmountByType(Sensors::Type::OT_DHW_FLOW_RATE, true)) {
|
if (settings.opentherm.options.dhwSupport && Sensors::getAmountByType(Sensors::Type::OT_DHW_FLOW_RATE, true)) {
|
||||||
if (this->updateDhwFlowRate()) {
|
if (this->updateDhwFlowRate()) {
|
||||||
float convertedDhwFlowRate = convertVolume(
|
const float convertedDhwFlowRate = convertVolume(
|
||||||
vars.slave.dhw.flowRate,
|
vars.slave.dhw.flowRate,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -864,7 +882,7 @@ protected:
|
|||||||
// Update heating temp
|
// Update heating temp
|
||||||
if (Sensors::getAmountByType(Sensors::Type::OT_HEATING_TEMP, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_HEATING_TEMP, true)) {
|
||||||
if (this->updateHeatingTemp()) {
|
if (this->updateHeatingTemp()) {
|
||||||
float convertedHeatingTemp = convertTemp(
|
const float convertedHeatingTemp = convertTemp(
|
||||||
vars.slave.heating.currentTemp,
|
vars.slave.heating.currentTemp,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -888,7 +906,7 @@ protected:
|
|||||||
// Update heating return temp
|
// Update heating return temp
|
||||||
if (Sensors::getAmountByType(Sensors::Type::OT_HEATING_RETURN_TEMP, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_HEATING_RETURN_TEMP, true)) {
|
||||||
if (this->updateHeatingReturnTemp()) {
|
if (this->updateHeatingReturnTemp()) {
|
||||||
float convertedHeatingReturnTemp = convertTemp(
|
const float convertedHeatingReturnTemp = convertTemp(
|
||||||
vars.slave.heating.returnTemp,
|
vars.slave.heating.returnTemp,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -913,7 +931,7 @@ protected:
|
|||||||
if (Sensors::getAmountByType(Sensors::Type::OT_CH2_TEMP, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_CH2_TEMP, true)) {
|
||||||
if (vars.master.ch2.enabled && !settings.opentherm.options.nativeOTC) {
|
if (vars.master.ch2.enabled && !settings.opentherm.options.nativeOTC) {
|
||||||
if (this->updateCh2Temp()) {
|
if (this->updateCh2Temp()) {
|
||||||
float convertedCh2Temp = convertTemp(
|
const float convertedCh2Temp = convertTemp(
|
||||||
vars.slave.ch2.currentTemp,
|
vars.slave.ch2.currentTemp,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -938,7 +956,7 @@ protected:
|
|||||||
// Update exhaust temp
|
// Update exhaust temp
|
||||||
if (Sensors::getAmountByType(Sensors::Type::OT_EXHAUST_TEMP, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_EXHAUST_TEMP, true)) {
|
||||||
if (this->updateExhaustTemp()) {
|
if (this->updateExhaustTemp()) {
|
||||||
float convertedExhaustTemp = convertTemp(
|
const float convertedExhaustTemp = convertTemp(
|
||||||
vars.slave.exhaust.temp,
|
vars.slave.exhaust.temp,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -962,7 +980,7 @@ protected:
|
|||||||
// Update heat exchanger temp
|
// Update heat exchanger temp
|
||||||
if (Sensors::getAmountByType(Sensors::Type::OT_HEAT_EXCHANGER_TEMP, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_HEAT_EXCHANGER_TEMP, true)) {
|
||||||
if (this->updateHeatExchangerTemp()) {
|
if (this->updateHeatExchangerTemp()) {
|
||||||
float convertedHeatExchTemp = convertTemp(
|
const float convertedHeatExchTemp = convertTemp(
|
||||||
vars.slave.heatExchangerTemp,
|
vars.slave.heatExchangerTemp,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -986,7 +1004,7 @@ protected:
|
|||||||
// Update outdoor temp
|
// Update outdoor temp
|
||||||
if (Sensors::getAmountByType(Sensors::Type::OT_OUTDOOR_TEMP, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_OUTDOOR_TEMP, true)) {
|
||||||
if (this->updateOutdoorTemp()) {
|
if (this->updateOutdoorTemp()) {
|
||||||
float convertedOutdoorTemp = convertTemp(
|
const float convertedOutdoorTemp = convertTemp(
|
||||||
vars.slave.heating.outdoorTemp,
|
vars.slave.heating.outdoorTemp,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -1010,7 +1028,7 @@ protected:
|
|||||||
// Update solar storage temp
|
// Update solar storage temp
|
||||||
if (Sensors::getAmountByType(Sensors::Type::OT_SOLAR_STORAGE_TEMP, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_SOLAR_STORAGE_TEMP, true)) {
|
||||||
if (this->updateSolarStorageTemp()) {
|
if (this->updateSolarStorageTemp()) {
|
||||||
float convertedSolarStorageTemp = convertTemp(
|
const float convertedSolarStorageTemp = convertTemp(
|
||||||
vars.slave.solar.storage,
|
vars.slave.solar.storage,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -1034,7 +1052,7 @@ protected:
|
|||||||
// Update solar collector temp
|
// Update solar collector temp
|
||||||
if (Sensors::getAmountByType(Sensors::Type::OT_SOLAR_COLLECTOR_TEMP, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_SOLAR_COLLECTOR_TEMP, true)) {
|
||||||
if (this->updateSolarCollectorTemp()) {
|
if (this->updateSolarCollectorTemp()) {
|
||||||
float convertedSolarCollectorTemp = convertTemp(
|
const float convertedSolarCollectorTemp = convertTemp(
|
||||||
vars.slave.solar.collector,
|
vars.slave.solar.collector,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -1080,7 +1098,7 @@ protected:
|
|||||||
// Update pressure
|
// Update pressure
|
||||||
if (Sensors::getAmountByType(Sensors::Type::OT_PRESSURE, true)) {
|
if (Sensors::getAmountByType(Sensors::Type::OT_PRESSURE, true)) {
|
||||||
if (this->updatePressure()) {
|
if (this->updatePressure()) {
|
||||||
float convertedPressure = convertPressure(
|
const float convertedPressure = convertPressure(
|
||||||
vars.slave.pressure,
|
vars.slave.pressure,
|
||||||
settings.opentherm.unitSystem,
|
settings.opentherm.unitSystem,
|
||||||
settings.system.unitSystem
|
settings.system.unitSystem
|
||||||
@@ -1186,9 +1204,12 @@ protected:
|
|||||||
|
|
||||||
// Update DHW temp
|
// Update DHW temp
|
||||||
if (vars.master.dhw.enabled) {
|
if (vars.master.dhw.enabled) {
|
||||||
|
// Target dhw temp
|
||||||
|
const float& targetTemp = vars.master.dhw.targetTemp;
|
||||||
|
|
||||||
// Converted target dhw temp
|
// Converted target dhw temp
|
||||||
float convertedTemp = convertTemp(
|
const float convertedTemp = convertTemp(
|
||||||
vars.master.dhw.targetTemp,
|
targetTemp,
|
||||||
settings.system.unitSystem,
|
settings.system.unitSystem,
|
||||||
settings.opentherm.unitSystem
|
settings.opentherm.unitSystem
|
||||||
);
|
);
|
||||||
@@ -1200,7 +1221,7 @@ protected:
|
|||||||
|
|
||||||
Log.sinfoln(
|
Log.sinfoln(
|
||||||
FPSTR(L_OT_DHW), F("Set temp: %.2f (converted: %.2f, response: %.2f)"),
|
FPSTR(L_OT_DHW), F("Set temp: %.2f (converted: %.2f, response: %.2f)"),
|
||||||
vars.master.dhw.targetTemp, convertedTemp, vars.slave.dhw.targetTemp
|
targetTemp, convertedTemp, vars.slave.dhw.targetTemp
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -1211,14 +1232,17 @@ protected:
|
|||||||
|
|
||||||
// Send indoor temp if AlwaysSendIndoorTemp option is enabled.
|
// Send indoor temp if AlwaysSendIndoorTemp option is enabled.
|
||||||
if (settings.opentherm.options.nativeOTC || settings.opentherm.options.alwaysSendIndoorTemp) {
|
if (settings.opentherm.options.nativeOTC || settings.opentherm.options.alwaysSendIndoorTemp) {
|
||||||
|
// Current indoor temp
|
||||||
|
const float& indoorTemp = vars.master.heating.indoorTemp;
|
||||||
|
|
||||||
// Converted current indoor temp
|
// Converted current indoor temp
|
||||||
float convertedTemp = convertTemp(vars.master.heating.indoorTemp, settings.system.unitSystem, settings.opentherm.unitSystem);
|
const float convertedTemp = convertTemp(indoorTemp, settings.system.unitSystem, settings.opentherm.unitSystem);
|
||||||
|
|
||||||
// Set current indoor temp
|
// Set current indoor temp
|
||||||
if (this->setRoomTemp(convertedTemp)) {
|
if (this->setRoomTemp(convertedTemp)) {
|
||||||
Log.sinfoln(
|
Log.sinfoln(
|
||||||
FPSTR(L_OT_HEATING), F("Set current indoor temp: %.2f (converted: %.2f, response: %.2f)"),
|
FPSTR(L_OT_HEATING), F("Set current indoor temp: %.2f (converted: %.2f, response: %.2f)"),
|
||||||
vars.master.heating.indoorTemp, convertedTemp, vars.slave.heating.indoorTemp
|
indoorTemp, convertedTemp, vars.slave.heating.indoorTemp
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -1230,7 +1254,7 @@ protected:
|
|||||||
if (this->setRoomTempCh2(convertedTemp)) {
|
if (this->setRoomTempCh2(convertedTemp)) {
|
||||||
Log.sinfoln(
|
Log.sinfoln(
|
||||||
FPSTR(L_OT_HEATING), F("Set current CH2 indoor temp: %.2f (converted: %.2f, response: %.2f)"),
|
FPSTR(L_OT_HEATING), F("Set current CH2 indoor temp: %.2f (converted: %.2f, response: %.2f)"),
|
||||||
vars.master.heating.indoorTemp, convertedTemp, vars.slave.ch2.indoorTemp
|
indoorTemp, convertedTemp, vars.slave.ch2.indoorTemp
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -1241,8 +1265,15 @@ protected:
|
|||||||
|
|
||||||
// NativeOTC
|
// NativeOTC
|
||||||
if (settings.opentherm.options.nativeOTC) {
|
if (settings.opentherm.options.nativeOTC) {
|
||||||
|
// Target indoor temp
|
||||||
|
const float& targetTemp = vars.master.heating.targetTemp;
|
||||||
|
|
||||||
// Converted target indoor temp
|
// Converted target indoor temp
|
||||||
float convertedTemp = convertTemp(vars.master.heating.targetTemp, settings.system.unitSystem, settings.opentherm.unitSystem);
|
const float convertedTemp = convertTemp(
|
||||||
|
targetTemp,
|
||||||
|
settings.system.unitSystem,
|
||||||
|
settings.opentherm.unitSystem
|
||||||
|
);
|
||||||
|
|
||||||
// Set target indoor temp
|
// Set target indoor temp
|
||||||
if (this->needSetHeatingTemp(convertedTemp)) {
|
if (this->needSetHeatingTemp(convertedTemp)) {
|
||||||
@@ -1251,7 +1282,7 @@ protected:
|
|||||||
|
|
||||||
Log.sinfoln(
|
Log.sinfoln(
|
||||||
FPSTR(L_OT_HEATING), F("Set target indoor temp: %.2f (converted: %.2f, response: %.2f)"),
|
FPSTR(L_OT_HEATING), F("Set target indoor temp: %.2f (converted: %.2f, response: %.2f)"),
|
||||||
vars.master.heating.targetTemp, convertedTemp, vars.slave.heating.targetTemp
|
targetTemp, convertedTemp, vars.slave.heating.targetTemp
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -1266,7 +1297,7 @@ protected:
|
|||||||
|
|
||||||
Log.sinfoln(
|
Log.sinfoln(
|
||||||
FPSTR(L_OT_HEATING), F("Set target CH2 indoor temp: %.2f (converted: %.2f, response: %.2f)"),
|
FPSTR(L_OT_HEATING), F("Set target CH2 indoor temp: %.2f (converted: %.2f, response: %.2f)"),
|
||||||
vars.master.heating.targetTemp, convertedTemp, vars.slave.ch2.targetTemp
|
targetTemp, convertedTemp, vars.slave.ch2.targetTemp
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -1275,10 +1306,22 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normal heating control
|
// Set heating temp
|
||||||
if (!settings.opentherm.options.nativeOTC && vars.master.heating.enabled) {
|
{
|
||||||
|
// Target heating temp
|
||||||
|
float targetTemp = 0.0f;
|
||||||
|
if (vars.master.heating.enabled) {
|
||||||
|
targetTemp = !settings.opentherm.options.nativeOTC
|
||||||
|
? vars.master.heating.setpointTemp
|
||||||
|
: vars.master.heating.targetTemp;
|
||||||
|
}
|
||||||
|
|
||||||
// Converted target heating temp
|
// Converted target heating temp
|
||||||
float convertedTemp = convertTemp(vars.master.heating.setpointTemp, settings.system.unitSystem, settings.opentherm.unitSystem);
|
const float convertedTemp = convertTemp(
|
||||||
|
targetTemp,
|
||||||
|
settings.system.unitSystem,
|
||||||
|
settings.opentherm.unitSystem
|
||||||
|
);
|
||||||
|
|
||||||
if (this->needSetHeatingTemp(convertedTemp)) {
|
if (this->needSetHeatingTemp(convertedTemp)) {
|
||||||
// Set max heating temp
|
// Set max heating temp
|
||||||
@@ -1286,13 +1329,13 @@ protected:
|
|||||||
if (this->setMaxHeatingTemp(convertedTemp)) {
|
if (this->setMaxHeatingTemp(convertedTemp)) {
|
||||||
Log.sinfoln(
|
Log.sinfoln(
|
||||||
FPSTR(L_OT_HEATING), F("Set max heating temp: %.2f (converted: %.2f)"),
|
FPSTR(L_OT_HEATING), F("Set max heating temp: %.2f (converted: %.2f)"),
|
||||||
vars.master.heating.setpointTemp, convertedTemp
|
targetTemp, convertedTemp
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.swarningln(
|
Log.swarningln(
|
||||||
FPSTR(L_OT_HEATING), F("Failed set max heating temp: %.2f (converted: %.2f)"),
|
FPSTR(L_OT_HEATING), F("Failed set max heating temp: %.2f (converted: %.2f)"),
|
||||||
vars.master.heating.setpointTemp, convertedTemp
|
targetTemp, convertedTemp
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1303,7 +1346,7 @@ protected:
|
|||||||
|
|
||||||
Log.sinfoln(
|
Log.sinfoln(
|
||||||
FPSTR(L_OT_HEATING), F("Set target temp: %.2f (converted: %.2f, response: %.2f)"),
|
FPSTR(L_OT_HEATING), F("Set target temp: %.2f (converted: %.2f, response: %.2f)"),
|
||||||
vars.master.heating.setpointTemp, convertedTemp, vars.slave.heating.targetTemp
|
targetTemp, convertedTemp, vars.slave.heating.targetTemp
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -1313,11 +1356,15 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set CH2 temp
|
// Set CH2 temp
|
||||||
if (!settings.opentherm.options.nativeOTC && vars.master.ch2.enabled) {
|
|
||||||
if (settings.opentherm.options.heatingToCh2 || settings.opentherm.options.dhwToCh2) {
|
if (settings.opentherm.options.heatingToCh2 || settings.opentherm.options.dhwToCh2) {
|
||||||
|
// Target CH2 heating temp
|
||||||
|
const float targetTemp = vars.master.ch2.enabled
|
||||||
|
? vars.master.ch2.targetTemp
|
||||||
|
: 0.0f;
|
||||||
|
|
||||||
// Converted target CH2 temp
|
// Converted target CH2 temp
|
||||||
float convertedTemp = convertTemp(
|
const float convertedTemp = convertTemp(
|
||||||
vars.master.ch2.targetTemp,
|
targetTemp,
|
||||||
settings.system.unitSystem,
|
settings.system.unitSystem,
|
||||||
settings.opentherm.unitSystem
|
settings.opentherm.unitSystem
|
||||||
);
|
);
|
||||||
@@ -1328,7 +1375,7 @@ protected:
|
|||||||
|
|
||||||
Log.sinfoln(
|
Log.sinfoln(
|
||||||
FPSTR(L_OT_CH2), F("Set temp: %.2f (converted: %.2f, response: %.2f)"),
|
FPSTR(L_OT_CH2), F("Set temp: %.2f (converted: %.2f, response: %.2f)"),
|
||||||
vars.master.ch2.targetTemp, convertedTemp, vars.slave.ch2.targetTemp
|
targetTemp, convertedTemp, vars.slave.ch2.targetTemp
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -1336,12 +1383,11 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Heating overheat control
|
// Heating overheat control
|
||||||
if (settings.heating.overheatProtection.highTemp > 0 && settings.heating.overheatProtection.lowTemp > 0) {
|
if (settings.heating.overheatProtection.highTemp > 0 && settings.heating.overheatProtection.lowTemp > 0) {
|
||||||
float highTemp = convertTemp(
|
const float highTemp = convertTemp(
|
||||||
max({
|
max({
|
||||||
vars.slave.heating.currentTemp,
|
vars.slave.heating.currentTemp,
|
||||||
vars.slave.heating.returnTemp,
|
vars.slave.heating.returnTemp,
|
||||||
@@ -1378,7 +1424,7 @@ protected:
|
|||||||
|
|
||||||
// DHW overheat control
|
// DHW overheat control
|
||||||
if (settings.dhw.overheatProtection.highTemp > 0 && settings.dhw.overheatProtection.lowTemp > 0) {
|
if (settings.dhw.overheatProtection.highTemp > 0 && settings.dhw.overheatProtection.lowTemp > 0) {
|
||||||
float highTemp = convertTemp(
|
const float highTemp = convertTemp(
|
||||||
max({
|
max({
|
||||||
vars.slave.heating.currentTemp,
|
vars.slave.heating.currentTemp,
|
||||||
vars.slave.heating.returnTemp,
|
vars.slave.heating.returnTemp,
|
||||||
@@ -1472,6 +1518,19 @@ protected:
|
|||||||
} else {
|
} else {
|
||||||
Log.swarningln(FPSTR(L_OT), F("Failed set master config"));
|
Log.swarningln(FPSTR(L_OT), F("Failed set master config"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*char buf[100];
|
||||||
|
if (this->instance->getStr(OpenThermMessageID::Brand, buf, sizeof(buf) - 1)) {
|
||||||
|
Log.snoticeln(FPSTR(L_OT), F("Slave brand: %s"), buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this->instance->getStr(OpenThermMessageID::BrandVersion, buf, sizeof(buf) - 1)) {
|
||||||
|
Log.snoticeln(FPSTR(L_OT), F("Slave brand version: %s"), buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this->instance->getStr(OpenThermMessageID::BrandSerialNumber, buf, sizeof(buf) - 1)) {
|
||||||
|
Log.snoticeln(FPSTR(L_OT), F("Slave brand s/n: %s"), buf);
|
||||||
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isReady() {
|
bool isReady() {
|
||||||
@@ -1649,7 +1708,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool setRoomTemp(float temperature) {
|
bool setRoomTemp(const float temperature) {
|
||||||
const unsigned int request = CustomOpenTherm::temperatureToData(temperature);
|
const unsigned int request = CustomOpenTherm::temperatureToData(temperature);
|
||||||
const unsigned long response = this->instance->sendRequest(CustomOpenTherm::buildRequest(
|
const unsigned long response = this->instance->sendRequest(CustomOpenTherm::buildRequest(
|
||||||
OpenThermMessageType::WRITE_DATA,
|
OpenThermMessageType::WRITE_DATA,
|
||||||
@@ -1669,7 +1728,7 @@ protected:
|
|||||||
return CustomOpenTherm::getUInt(response) == request;
|
return CustomOpenTherm::getUInt(response) == request;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool setRoomTempCh2(float temperature) {
|
bool setRoomTempCh2(const float temperature) {
|
||||||
const unsigned int request = CustomOpenTherm::temperatureToData(temperature);
|
const unsigned int request = CustomOpenTherm::temperatureToData(temperature);
|
||||||
const unsigned long response = this->instance->sendRequest(CustomOpenTherm::buildRequest(
|
const unsigned long response = this->instance->sendRequest(CustomOpenTherm::buildRequest(
|
||||||
OpenThermMessageType::WRITE_DATA,
|
OpenThermMessageType::WRITE_DATA,
|
||||||
@@ -2171,6 +2230,25 @@ protected:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool updateCoolingHours() {
|
||||||
|
const unsigned long response = this->instance->sendRequest(CustomOpenTherm::buildRequest(
|
||||||
|
OpenThermRequestType::READ_DATA,
|
||||||
|
OpenThermMessageID::CoolingOperationHours,
|
||||||
|
0
|
||||||
|
));
|
||||||
|
|
||||||
|
if (!CustomOpenTherm::isValidResponse(response)) {
|
||||||
|
return false;
|
||||||
|
|
||||||
|
} else if (!CustomOpenTherm::isValidResponseId(response, OpenThermMessageID::CoolingOperationHours)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
vars.slave.stats.coolingHours = CustomOpenTherm::getUInt(response);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool updateModulationLevel() {
|
bool updateModulationLevel() {
|
||||||
const unsigned long response = this->instance->sendRequest(CustomOpenTherm::buildRequest(
|
const unsigned long response = this->instance->sendRequest(CustomOpenTherm::buildRequest(
|
||||||
OpenThermRequestType::READ_DATA,
|
OpenThermRequestType::READ_DATA,
|
||||||
@@ -2185,7 +2263,7 @@ protected:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float value = CustomOpenTherm::getFloat(response);
|
const float value = CustomOpenTherm::getFloat(response);
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2209,7 +2287,7 @@ protected:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float value = CustomOpenTherm::getFloat(response);
|
const float value = CustomOpenTherm::getFloat(response);
|
||||||
if (value <= 0) {
|
if (value <= 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2233,7 +2311,7 @@ protected:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float value = CustomOpenTherm::getFloat(response);
|
const float value = CustomOpenTherm::getFloat(response);
|
||||||
if (value <= 0) {
|
if (value <= 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2287,7 +2365,7 @@ protected:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float value = CustomOpenTherm::getFloat(response);
|
const float value = CustomOpenTherm::getFloat(response);
|
||||||
if (value <= 0) {
|
if (value <= 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2351,7 +2429,7 @@ protected:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float value = (float) CustomOpenTherm::getInt(response);
|
const float value = (float) CustomOpenTherm::getInt(response);
|
||||||
if (!isValidTemp(value, settings.opentherm.unitSystem, -40, 500)) {
|
if (!isValidTemp(value, settings.opentherm.unitSystem, -40, 500)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2375,7 +2453,7 @@ protected:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float value = (float) CustomOpenTherm::getInt(response);
|
const float value = (float) CustomOpenTherm::getInt(response);
|
||||||
if (value <= 0) {
|
if (value <= 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2476,7 +2554,7 @@ protected:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float value = CustomOpenTherm::getFloat(response);
|
const float value = CustomOpenTherm::getFloat(response);
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,23 +57,12 @@ protected:
|
|||||||
this->turbo();
|
this->turbo();
|
||||||
this->hysteresis();
|
this->hysteresis();
|
||||||
|
|
||||||
if (vars.master.heating.blocking && settings.heating.hysteresis.action == HysteresisAction::SET_ZERO_TARGET) {
|
|
||||||
vars.master.heating.targetTemp = 0.0f;
|
|
||||||
vars.master.heating.setpointTemp = 0.0f;
|
|
||||||
|
|
||||||
// tick if PID enabled
|
|
||||||
if (settings.pid.enabled) {
|
|
||||||
this->getHeatingSetpointTemp();
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
vars.master.heating.targetTemp = settings.heating.target;
|
vars.master.heating.targetTemp = settings.heating.target;
|
||||||
vars.master.heating.setpointTemp = roundf(constrain(
|
vars.master.heating.setpointTemp = roundf(constrain(
|
||||||
this->getHeatingSetpointTemp(),
|
this->getHeatingSetpointTemp(),
|
||||||
this->getHeatingMinSetpointTemp(),
|
this->getHeatingMinSetpointTemp(),
|
||||||
this->getHeatingMaxSetpointTemp()
|
this->getHeatingMaxSetpointTemp()
|
||||||
), 0);
|
), 0);
|
||||||
}
|
|
||||||
|
|
||||||
Sensors::setValueByType(
|
Sensors::setValueByType(
|
||||||
Sensors::Type::HEATING_SETPOINT_TEMP, vars.master.heating.setpointTemp,
|
Sensors::Type::HEATING_SETPOINT_TEMP, vars.master.heating.setpointTemp,
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ public:
|
|||||||
OT_DHW_BURNER_HOURS = 24,
|
OT_DHW_BURNER_HOURS = 24,
|
||||||
OT_HEATING_PUMP_HOURS = 25,
|
OT_HEATING_PUMP_HOURS = 25,
|
||||||
OT_DHW_PUMP_HOURS = 26,
|
OT_DHW_PUMP_HOURS = 26,
|
||||||
|
OT_COOLING_HOURS = 27,
|
||||||
|
|
||||||
NTC_10K_TEMP = 50,
|
NTC_10K_TEMP = 50,
|
||||||
DALLAS_TEMP = 51,
|
DALLAS_TEMP = 51,
|
||||||
|
|||||||
@@ -389,6 +389,7 @@ struct Variables {
|
|||||||
uint16_t dhwBurnerStarts = 0;
|
uint16_t dhwBurnerStarts = 0;
|
||||||
uint16_t heatingPumpStarts = 0;
|
uint16_t heatingPumpStarts = 0;
|
||||||
uint16_t dhwPumpStarts = 0;
|
uint16_t dhwPumpStarts = 0;
|
||||||
|
uint16_t coolingHours = 0;
|
||||||
uint16_t burnerHours = 0;
|
uint16_t burnerHours = 0;
|
||||||
uint16_t dhwBurnerHours = 0;
|
uint16_t dhwBurnerHours = 0;
|
||||||
uint16_t heatingPumpHours = 0;
|
uint16_t heatingPumpHours = 0;
|
||||||
|
|||||||
@@ -1932,6 +1932,7 @@ bool jsonToSensorSettings(const uint8_t sensorId, const JsonVariantConst src, Se
|
|||||||
case static_cast<uint8_t>(Sensors::Type::OT_DHW_BURNER_HOURS):
|
case static_cast<uint8_t>(Sensors::Type::OT_DHW_BURNER_HOURS):
|
||||||
case static_cast<uint8_t>(Sensors::Type::OT_HEATING_PUMP_HOURS):
|
case static_cast<uint8_t>(Sensors::Type::OT_HEATING_PUMP_HOURS):
|
||||||
case static_cast<uint8_t>(Sensors::Type::OT_DHW_PUMP_HOURS):
|
case static_cast<uint8_t>(Sensors::Type::OT_DHW_PUMP_HOURS):
|
||||||
|
case static_cast<uint8_t>(Sensors::Type::OT_COOLING_HOURS):
|
||||||
|
|
||||||
case static_cast<uint8_t>(Sensors::Type::NTC_10K_TEMP):
|
case static_cast<uint8_t>(Sensors::Type::NTC_10K_TEMP):
|
||||||
case static_cast<uint8_t>(Sensors::Type::DALLAS_TEMP):
|
case static_cast<uint8_t>(Sensors::Type::DALLAS_TEMP):
|
||||||
@@ -2131,7 +2132,7 @@ void varsToJson(const Variables& src, JsonVariant dst) {
|
|||||||
slave[FPSTR(S_FLAGS)] = src.slave.flags;
|
slave[FPSTR(S_FLAGS)] = src.slave.flags;
|
||||||
slave[FPSTR(S_TYPE)] = src.slave.type;
|
slave[FPSTR(S_TYPE)] = src.slave.type;
|
||||||
slave[FPSTR(S_APP_VERSION)] = src.slave.appVersion;
|
slave[FPSTR(S_APP_VERSION)] = src.slave.appVersion;
|
||||||
slave[FPSTR(S_PROTOCOL_VERSION)] = src.slave.appVersion;
|
slave[FPSTR(S_PROTOCOL_VERSION)] = src.slave.protocolVersion;
|
||||||
slave[FPSTR(S_CONNECTED)] = src.slave.connected;
|
slave[FPSTR(S_CONNECTED)] = src.slave.connected;
|
||||||
slave[FPSTR(S_FLAME)] = src.slave.flame;
|
slave[FPSTR(S_FLAME)] = src.slave.flame;
|
||||||
|
|
||||||
|
|||||||
@@ -243,6 +243,7 @@
|
|||||||
"otDhwBurnerHours": "OpenTherm, number of burner operating hours (DHW)",
|
"otDhwBurnerHours": "OpenTherm, number of burner operating hours (DHW)",
|
||||||
"otHeatingPumpHours": "OpenTherm, number of pump operating hours (heating)",
|
"otHeatingPumpHours": "OpenTherm, number of pump operating hours (heating)",
|
||||||
"otDhwPumpHours": "OpenTherm, number of pump operating hours (DHW)",
|
"otDhwPumpHours": "OpenTherm, number of pump operating hours (DHW)",
|
||||||
|
"otCoolingHours": "OpenTherm, number of cooling hours",
|
||||||
|
|
||||||
"ntcTemp": "NTC 传感器",
|
"ntcTemp": "NTC 传感器",
|
||||||
"dallasTemp": "DALLAS 传感器",
|
"dallasTemp": "DALLAS 传感器",
|
||||||
|
|||||||
@@ -243,6 +243,7 @@
|
|||||||
"otDhwBurnerHours": "OpenTherm, number of burner operating hours (DHW)",
|
"otDhwBurnerHours": "OpenTherm, number of burner operating hours (DHW)",
|
||||||
"otHeatingPumpHours": "OpenTherm, number of pump operating hours (heating)",
|
"otHeatingPumpHours": "OpenTherm, number of pump operating hours (heating)",
|
||||||
"otDhwPumpHours": "OpenTherm, number of pump operating hours (DHW)",
|
"otDhwPumpHours": "OpenTherm, number of pump operating hours (DHW)",
|
||||||
|
"otCoolingHours": "OpenTherm, number of cooling hours",
|
||||||
|
|
||||||
"ntcTemp": "NTC sensor",
|
"ntcTemp": "NTC sensor",
|
||||||
"dallasTemp": "DALLAS sensor",
|
"dallasTemp": "DALLAS sensor",
|
||||||
|
|||||||
@@ -243,6 +243,7 @@
|
|||||||
"otDhwBurnerHours": "OpenTherm, numero di ore di funzionamento del bruciatore (ACS)",
|
"otDhwBurnerHours": "OpenTherm, numero di ore di funzionamento del bruciatore (ACS)",
|
||||||
"otHeatingPumpHours": "OpenTherm, numero di ore di funzionamento della pompa (riscaldamento)",
|
"otHeatingPumpHours": "OpenTherm, numero di ore di funzionamento della pompa (riscaldamento)",
|
||||||
"otDhwPumpHours": "OpenTherm, numero di ore di funzionamento della pompa (ACS)",
|
"otDhwPumpHours": "OpenTherm, numero di ore di funzionamento della pompa (ACS)",
|
||||||
|
"otCoolingHours": "OpenTherm, numero di ore di funzionamento della cooling",
|
||||||
|
|
||||||
"ntcTemp": "Sensore NTC",
|
"ntcTemp": "Sensore NTC",
|
||||||
"dallasTemp": "Sensore DALLAS",
|
"dallasTemp": "Sensore DALLAS",
|
||||||
|
|||||||
@@ -222,6 +222,8 @@
|
|||||||
"otDhwBurnerHours": "OpenTherm, aantal branderuren (warm water)",
|
"otDhwBurnerHours": "OpenTherm, aantal branderuren (warm water)",
|
||||||
"otHeatingPumpHours": "OpenTherm, aantal pompuren (verwarming)",
|
"otHeatingPumpHours": "OpenTherm, aantal pompuren (verwarming)",
|
||||||
"otDhwPumpHours": "OpenTherm, aantal pompuren (warm water)",
|
"otDhwPumpHours": "OpenTherm, aantal pompuren (warm water)",
|
||||||
|
"otCoolingHours": "OpenTherm, aantal cooling",
|
||||||
|
|
||||||
"ntcTemp": "NTC-sensor",
|
"ntcTemp": "NTC-sensor",
|
||||||
"dallasTemp": "DALLAS-sensor",
|
"dallasTemp": "DALLAS-sensor",
|
||||||
"bluetooth": "BLE-sensor",
|
"bluetooth": "BLE-sensor",
|
||||||
|
|||||||
@@ -243,6 +243,7 @@
|
|||||||
"otDhwBurnerHours": "OpenTherm, кол-во часов работы горелки (ГВС)",
|
"otDhwBurnerHours": "OpenTherm, кол-во часов работы горелки (ГВС)",
|
||||||
"otHeatingPumpHours": "OpenTherm, кол-во часов работы насоса (отопление)",
|
"otHeatingPumpHours": "OpenTherm, кол-во часов работы насоса (отопление)",
|
||||||
"otDhwPumpHours": "OpenTherm, кол-во часов работы насоса (ГВС)",
|
"otDhwPumpHours": "OpenTherm, кол-во часов работы насоса (ГВС)",
|
||||||
|
"otCoolingHours": "OpenTherm, кол-во часов работы охлаждения",
|
||||||
|
|
||||||
"ntcTemp": "NTC датчик",
|
"ntcTemp": "NTC датчик",
|
||||||
"dallasTemp": "DALLAS датчик",
|
"dallasTemp": "DALLAS датчик",
|
||||||
|
|||||||
@@ -113,6 +113,7 @@
|
|||||||
<option value="24" data-i18n>sensors.types.otDhwBurnerHours</option>
|
<option value="24" data-i18n>sensors.types.otDhwBurnerHours</option>
|
||||||
<option value="25" data-i18n>sensors.types.otHeatingPumpHours</option>
|
<option value="25" data-i18n>sensors.types.otHeatingPumpHours</option>
|
||||||
<option value="26" data-i18n>sensors.types.otDhwPumpHours</option>
|
<option value="26" data-i18n>sensors.types.otDhwPumpHours</option>
|
||||||
|
<option value="27" data-i18n>sensors.types.otCoolingHours</option>
|
||||||
|
|
||||||
<option value="50" data-i18n>sensors.types.ntcTemp</option>
|
<option value="50" data-i18n>sensors.types.ntcTemp</option>
|
||||||
<option value="51" data-i18n>sensors.types.dallasTemp</option>
|
<option value="51" data-i18n>sensors.types.dallasTemp</option>
|
||||||
|
|||||||
Reference in New Issue
Block a user