mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
AM200 settings #573
This commit is contained in:
@@ -31,7 +31,8 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const
|
|||||||
register_telegram_type(0x54D, F("AmTemperatures"), false, MAKE_PF_CB(process_amTempMessage));
|
register_telegram_type(0x54D, F("AmTemperatures"), false, MAKE_PF_CB(process_amTempMessage));
|
||||||
register_telegram_type(0x54E, F("AmStatus"), false, MAKE_PF_CB(process_amStatusMessage));
|
register_telegram_type(0x54E, F("AmStatus"), false, MAKE_PF_CB(process_amStatusMessage));
|
||||||
register_telegram_type(0x54F, F("AmCommand"), false, MAKE_PF_CB(process_amCommandMessage)); // not broadcasted, but actually not used
|
register_telegram_type(0x54F, F("AmCommand"), false, MAKE_PF_CB(process_amCommandMessage)); // not broadcasted, but actually not used
|
||||||
register_telegram_type(0x550, F("AmSettings"), false, MAKE_PF_CB(process_amSettingMessage));
|
register_telegram_type(0x550, F("AmExtra"), false, MAKE_PF_CB(process_amExtraMessage));
|
||||||
|
register_telegram_type(0x54C, F("AmSettings"), true, MAKE_PF_CB(process_amSettingMessage)); // not broadcasted
|
||||||
|
|
||||||
register_device_value(DeviceValueTAG::TAG_AHS, &curFlowTemp_, DeviceValueType::SHORT, FL_(div10), FL_(sysFlowTemp), DeviceValueUOM::DEGREES);
|
register_device_value(DeviceValueTAG::TAG_AHS, &curFlowTemp_, DeviceValueType::SHORT, FL_(div10), FL_(sysFlowTemp), DeviceValueUOM::DEGREES);
|
||||||
register_device_value(DeviceValueTAG::TAG_AHS, &retTemp_, DeviceValueType::SHORT, FL_(div10), FL_(sysRetTemp), DeviceValueUOM::DEGREES);
|
register_device_value(DeviceValueTAG::TAG_AHS, &retTemp_, DeviceValueType::SHORT, FL_(div10), FL_(sysRetTemp), DeviceValueUOM::DEGREES);
|
||||||
@@ -45,10 +46,56 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const
|
|||||||
register_device_value(DeviceValueTAG::TAG_AHS, &valveReturn_, DeviceValueType::UINT, nullptr, FL_(valveReturn), DeviceValueUOM::PERCENT);
|
register_device_value(DeviceValueTAG::TAG_AHS, &valveReturn_, DeviceValueType::UINT, nullptr, FL_(valveReturn), DeviceValueUOM::PERCENT);
|
||||||
register_device_value(DeviceValueTAG::TAG_AHS, &aPumpMod_, DeviceValueType::UINT, nullptr, FL_(aPumpMod), DeviceValueUOM::PERCENT);
|
register_device_value(DeviceValueTAG::TAG_AHS, &aPumpMod_, DeviceValueType::UINT, nullptr, FL_(aPumpMod), DeviceValueUOM::PERCENT);
|
||||||
// register_device_value(DeviceValueTAG::TAG_AHS, &heatSource_, DeviceValueType::BOOL, nullptr, FL_(heatSource), DeviceValueUOM::NONE);
|
// register_device_value(DeviceValueTAG::TAG_AHS, &heatSource_, DeviceValueType::BOOL, nullptr, FL_(heatSource), DeviceValueUOM::NONE);
|
||||||
|
// Settings:
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &vr2Config_, DeviceValueType::ENUM, FL_(enum_vr2Config), FL_(vr2Config), DeviceValueUOM::NONE, MAKE_CF_CB(set_vr2Config));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &ahsActivated_, DeviceValueType::BOOL, nullptr, FL_(ahsActivated), DeviceValueUOM::NONE, MAKE_CF_CB(set_ahsActivated));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &aPumpConfig_, DeviceValueType::BOOL, nullptr, FL_(aPumpConfig), DeviceValueUOM::NONE, MAKE_CF_CB(set_aPumpConfig));
|
||||||
|
register_device_value(DeviceValueTAG::TAG_AHS,
|
||||||
|
&aPumpSignal_,
|
||||||
|
DeviceValueType::ENUM,
|
||||||
|
FL_(enum_aPumpSignal),
|
||||||
|
FL_(aPumpSignal),
|
||||||
|
DeviceValueUOM::NONE,
|
||||||
|
MAKE_CF_CB(set_aPumpSignal));
|
||||||
|
register_device_value(DeviceValueTAG::TAG_AHS, &aPumpMin_, DeviceValueType::UINT, nullptr, FL_(aPumpMin), DeviceValueUOM::PERCENT, MAKE_CF_CB(set_aPumpMin));
|
||||||
|
register_device_value(DeviceValueTAG::TAG_AHS, &tempRise_, DeviceValueType::BOOL, nullptr, FL_(tempRise), DeviceValueUOM::NONE, MAKE_CF_CB(set_tempRise));
|
||||||
|
register_device_value(DeviceValueTAG::TAG_AHS,
|
||||||
|
&setReturnTemp_,
|
||||||
|
DeviceValueType::UINT,
|
||||||
|
nullptr,
|
||||||
|
FL_(setReturnTemp),
|
||||||
|
DeviceValueUOM::DEGREES,
|
||||||
|
MAKE_CF_CB(set_setReturnTemp));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &mixRuntime_, DeviceValueType::USHORT, nullptr, FL_(mixRuntime), DeviceValueUOM::SECONDS, MAKE_CF_CB(set_mixRuntime));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &setFlowTemp_, DeviceValueType::UINT, nullptr, FL_(setFlowTemp), DeviceValueUOM::DEGREES, MAKE_CF_CB(set_setFlowTemp));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &bufBypass_, DeviceValueType::ENUM, FL_(enum_bufBypass), FL_(bufBypass), DeviceValueUOM::NONE, MAKE_CF_CB(set_bufBypass));
|
||||||
|
register_device_value(DeviceValueTAG::TAG_AHS,
|
||||||
|
&bufMixRuntime_,
|
||||||
|
DeviceValueType::USHORT,
|
||||||
|
nullptr,
|
||||||
|
FL_(bufMixRuntime),
|
||||||
|
DeviceValueUOM::SECONDS,
|
||||||
|
MAKE_CF_CB(set_bufMixRuntime));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &bufConfig_, DeviceValueType::ENUM, FL_(enum_bufConfig), FL_(bufConfig), DeviceValueUOM::NONE, MAKE_CF_CB(set_bufConfig));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &blockMode_, DeviceValueType::ENUM, FL_(enum_blockMode), FL_(blockMode), DeviceValueUOM::NONE, MAKE_CF_CB(set_blockMode));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &blockTerm_, DeviceValueType::ENUM, FL_(enum_blockTerm), FL_(blockTerm), DeviceValueUOM::NONE, MAKE_CF_CB(set_blockTerm));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &blockHyst_, DeviceValueType::INT, nullptr, FL_(blockHyst), DeviceValueUOM::DEGREES_R, MAKE_CF_CB(set_blockHyst));
|
||||||
|
register_device_value(
|
||||||
|
DeviceValueTAG::TAG_AHS, &releaseWait_, DeviceValueType::UINT, nullptr, FL_(releaseWait), DeviceValueUOM::MINUTES, MAKE_CF_CB(set_releaseWait));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// cascaded heatingsources, only some values per individual heatsource (hs)
|
// cascaded heatingsources, only some values per individual heatsource (hs)
|
||||||
if (device_id != EMSdevice::EMS_DEVICE_ID_BOILER) {
|
if (device_id >= EMSdevice::EMS_DEVICE_ID_BOILER_1) {
|
||||||
uint8_t hs = device_id - EMSdevice::EMS_DEVICE_ID_BOILER_1; // heating source id, count from 0
|
uint8_t hs = device_id - EMSdevice::EMS_DEVICE_ID_BOILER_1; // heating source id, count from 0
|
||||||
// Runtime of each heatingsource in 0x06DC, ff
|
// Runtime of each heatingsource in 0x06DC, ff
|
||||||
register_telegram_type(0x6DC + hs, F("CascadeMessage"), false, MAKE_PF_CB(process_CascadeMessage));
|
register_telegram_type(0x6DC + hs, F("CascadeMessage"), false, MAKE_PF_CB(process_CascadeMessage));
|
||||||
@@ -1187,24 +1234,211 @@ void Boiler::process_amStatusMessage(std::shared_ptr<const Telegram> telegram) {
|
|||||||
has_update(telegram, valveBuffer_, 5); // VB1, percent
|
has_update(telegram, valveBuffer_, 5); // VB1, percent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 0x054C AM200 not broadcasted message, 23 bytes long
|
||||||
|
// data: 00 01 01 00 01 00 41 4B 00 5A 00 5A 00 01 05 3C 00 00 5A 00 01 23 00
|
||||||
|
void Boiler::process_amSettingMessage(std::shared_ptr<const Telegram> telegram) {
|
||||||
|
has_update(telegram, vr2Config_, 12); // pos 12: off(00)/bypass(01)
|
||||||
|
has_update(telegram, ahsActivated_, 0); // pos 00: Alternate heat source activation: No(00),Yes(01)
|
||||||
|
has_update(telegram, aPumpConfig_, 4); // pos 04: Buffer primary pump->Config pump: No(00),Yes(01)
|
||||||
|
has_update(telegram, aPumpSignal_, 3); // pos 03: Output for PR1 pump: On/Off(00),PWM(01),PWM invers(02)
|
||||||
|
has_update(telegram, aPumpMin_, 21); // pos 21: Min output pump PR1 (%)
|
||||||
|
has_update(telegram, tempRise_, 1); // pos 01: AHS return temp rise: No(00),Yes(01) (mixer VR1)
|
||||||
|
has_update(telegram, setReturnTemp_, 6); // pos 06: Set temp return (°C) (VR1)
|
||||||
|
has_update(telegram, mixRuntime_, 10); // pos 10/11?: Mixer run time (s) (VR1)
|
||||||
|
has_update(telegram, setFlowTemp_, 7); // pos 07: Set flow temp AHS (°C) (Buffer)
|
||||||
|
has_update(telegram, bufBypass_, 2); // pos 02: Puffer bypass: No(00), Mischer(01), Ventil(02) (Buffer)
|
||||||
|
has_update(telegram, bufMixRuntime_, 8); // pos 8/9: Bypass mixer run time: [time] (s) (Buffer)
|
||||||
|
has_update(telegram, bufConfig_, 20); // pos 20: Konfig WW-Speicher Monovalent(01), Bivalent(02) (buffer)
|
||||||
|
has_update(telegram, blockMode_, 16); // pos 16: Config htg. blocking mode: No(00),Automatic(01),Always block02) (blocking)
|
||||||
|
has_update(telegram, blockTerm_, 17); // pos 17: Config of block terminal: NO(00), NC(01)
|
||||||
|
has_update(telegram, blockHyst_, 14); // pos 14?: Hyst. for bolier block (K)
|
||||||
|
has_update(telegram, releaseWait_, 15); // pos 15: Boiler release wait time (min)
|
||||||
|
}
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
|
||||||
// 0x054F AM200 not broadcasted message, 7 bytes long
|
// 0x054F AM200 not broadcasted message, 7 bytes long
|
||||||
// Boiler(0x60) -> Me(0x0B), ?(0x054F), data: 00 00 00 00 00 00 00
|
// Boiler(0x60) -> Me(0x0B), amCommand(0x054F), data: 00 00 00 00 00 00 00
|
||||||
void Boiler::process_amCommandMessage(std::shared_ptr<const Telegram> telegram) {
|
void Boiler::process_amCommandMessage(std::shared_ptr<const Telegram> telegram) {
|
||||||
// has_update(telegram, setValveBuffer_, 3); // VB1 0-off, 1-open, 2-close
|
// pos 0: return pump in percent
|
||||||
// has_update(telegram, setValveReturn_, 2); // VR1 0-off, 1-open, 2-close
|
// pos 3: setValveBuffer VB1 0-off, 1-open, 2-close
|
||||||
|
// pos 2: setValveReturn VR1 0-off, 1-open, 2-close
|
||||||
|
// pos 6: boiler blocking 0-off, 1-on
|
||||||
}
|
}
|
||||||
|
|
||||||
// 0x0550 AM200 broadcasted message, all 27 bytes unkown
|
// 0x0550 AM200 broadcasted message, all 27 bytes unkown
|
||||||
// Rx: 60 00 FF 00 04 50 00 FF 00 FF FF 00 0D 00 01 00 00 00 00 01 03 01 00 03 00 2D 19 C8 02 94 00 4A
|
// Rx: 60 00 FF 00 04 50 00 FF 00 FF FF 00 0D 00 01 00 00 00 00 01 03 01 00 03 00 2D 19 C8 02 94 00 4A
|
||||||
// Rx: 60 00 FF 19 04 50 00 FF FF 39
|
// Rx: 60 00 FF 19 04 50 00 FF FF 39
|
||||||
void Boiler::process_amSettingMessage(std::shared_ptr<const Telegram> telegram) {
|
void Boiler::process_amExtraMessage(std::shared_ptr<const Telegram> telegram) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
|
// Settings AM200
|
||||||
|
|
||||||
|
// pos 12: off(00)/Keelbypass(01)/(hc1pump(02) only standalone)
|
||||||
|
bool Boiler::set_vr2Config(const char * value, const int8_t id) {
|
||||||
|
uint8_t v;
|
||||||
|
if (!Helpers::value2enum(value, v, FL_(enum_vr2Config))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 12, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 00: Alternate heat source activation: No(00),Yes(01)
|
||||||
|
bool Boiler::set_ahsActivated(const char * value, const int8_t id) {
|
||||||
|
bool v;
|
||||||
|
if (!Helpers::value2bool(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 0, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 04: Buffer primary pump->Config pump: No(00),Yes(01)
|
||||||
|
bool Boiler::set_aPumpConfig(const char * value, const int8_t id) {
|
||||||
|
bool v;
|
||||||
|
if (!Helpers::value2bool(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 4, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 03: Output for PR1 pump: On/Off(00),PWM(01),PWM invers(02)
|
||||||
|
bool Boiler::set_aPumpSignal(const char * value, const int8_t id) {
|
||||||
|
uint8_t v;
|
||||||
|
if (!Helpers::value2enum(value, v, FL_(enum_aPumpSignal))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 3, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 21: Min output pump PR1 (%)
|
||||||
|
bool Boiler::set_aPumpMin(const char * value, const int8_t id) {
|
||||||
|
int v;
|
||||||
|
if (!Helpers::value2number(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 21, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 01: AHS return temp rise: No(00),Yes(01) (mixer VR1)
|
||||||
|
bool Boiler::set_tempRise(const char * value, const int8_t id) {
|
||||||
|
bool v;
|
||||||
|
if (!Helpers::value2bool(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 1, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 06: Set temp return (°C) (VR1)
|
||||||
|
bool Boiler::set_setReturnTemp(const char * value, const int8_t id) {
|
||||||
|
int v;
|
||||||
|
if (!Helpers::value2temperature(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 6, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 10/11?: Mixer run time (s) (VR1)
|
||||||
|
bool Boiler::set_mixRuntime(const char * value, const int8_t id) {
|
||||||
|
int v;
|
||||||
|
if (!Helpers::value2number(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
uint8_t data[2] = {(uint8_t)(v >> 8), (uint8_t)v};
|
||||||
|
write_command(0x54C, 10, data, 2, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 07: Set flow temp AHS (°C) (Buffer)
|
||||||
|
bool Boiler::set_setFlowTemp(const char * value, const int8_t id) {
|
||||||
|
int v;
|
||||||
|
if (!Helpers::value2number(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 7, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 02: Puffer bypass: No(00), Mischer(01), Ventil(02) (Buffer)
|
||||||
|
bool Boiler::set_bufBypass(const char * value, const int8_t id) {
|
||||||
|
uint8_t v;
|
||||||
|
if (!Helpers::value2enum(value, v, FL_(enum_bufBypass))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 2, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 8/9: Bypass mixer run time: [time] (s) (Buffer)
|
||||||
|
bool Boiler::set_bufMixRuntime(const char * value, const int8_t id) {
|
||||||
|
int v;
|
||||||
|
if (!Helpers::value2number(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
uint8_t data[2] = {(uint8_t)(v >> 8), (uint8_t)v};
|
||||||
|
write_command(0x54C, 8, data, 2, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 20: Konfig WW-Speicher Monovalent(01), Bivalent(02) (buffer)
|
||||||
|
bool Boiler::set_bufConfig(const char * value, const int8_t id) {
|
||||||
|
uint8_t v;
|
||||||
|
if (!Helpers::value2enum(value, v, FL_(enum_bufConfig))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 20, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 16: Config htg. blocking mode: No(00),Automatic(01),Always block02) (blocking)
|
||||||
|
bool Boiler::set_blockMode(const char * value, const int8_t id) {
|
||||||
|
uint8_t v;
|
||||||
|
if (!Helpers::value2enum(value, v, FL_(enum_blockMode))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 16, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 17: Config of block terminal: NO(00), NC(01)
|
||||||
|
bool Boiler::set_blockTerm(const char * value, const int8_t id) {
|
||||||
|
uint8_t v;
|
||||||
|
if (!Helpers::value2enum(value, v, FL_(enum_blockTerm))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 17, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 14?: Hyst. for bolier block (K)
|
||||||
|
bool Boiler::set_blockHyst(const char * value, const int8_t id) {
|
||||||
|
int v;
|
||||||
|
if (!Helpers::value2temperature(value, v, true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 14, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pos 15: Boiler release wait time (min)
|
||||||
|
bool Boiler::set_releaseWait(const char * value, const int8_t id) {
|
||||||
|
int v;
|
||||||
|
if (!Helpers::value2number(value, v)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
write_command(0x54C, 15, v, 0x54C);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hybrid heatpump with telegram 0xBB is readable and writeable in boiler and thermostat
|
* Hybrid heatpump with telegram 0xBB is readable and writeable in boiler and thermostat
|
||||||
* thermostat always overwrites settings in boiler
|
* thermostat always overwrites settings in boiler
|
||||||
|
|||||||
@@ -204,12 +204,31 @@ class Boiler : public EMSdevice {
|
|||||||
int16_t cylBottomTemp_; // TB3
|
int16_t cylBottomTemp_; // TB3
|
||||||
int16_t aFlowTemp_; // TA1
|
int16_t aFlowTemp_; // TA1
|
||||||
int16_t aRetTemp_; // TR1
|
int16_t aRetTemp_; // TR1
|
||||||
// uint8_t aPump_; // PR1 - on/off
|
|
||||||
uint8_t aPumpMod_; // PR1 - percent
|
uint8_t aPumpMod_; // PR1 - percent
|
||||||
// uint8_t valveByPass_; // VR2
|
// uint8_t valveByPass_; // VR2
|
||||||
uint8_t valveBuffer_; // VB1
|
uint8_t valveBuffer_; // VB1
|
||||||
uint8_t valveReturn_; // VR1
|
uint8_t valveReturn_; // VR1
|
||||||
// uint8_t heatSource_; // OEV
|
// uint8_t heatSource_; // OEV
|
||||||
|
// Settings:
|
||||||
|
uint8_t vr2Config_; // pos 12: off(00)/Keelbypass(01)/(hc1pump(02) only standalone)
|
||||||
|
uint8_t ahsActivated_; // pos 00: Alternate heat source activation: No(00),Yes(01)
|
||||||
|
uint8_t aPumpConfig_; // pos 04: Buffer primary pump->Config pump: No(00),Yes(01)
|
||||||
|
uint8_t aPumpSignal_; // pos 03: Output for PR1 pump: On/Off(00),PWM(01),PWM invers(02)
|
||||||
|
uint8_t aPumpMin_; // pos 21: Min output pump PR1 (%)
|
||||||
|
uint8_t tempRise_; // pos 01: AHS return temp rise: No(00),Yes(01) (mixer VR1)
|
||||||
|
uint8_t setReturnTemp_; // pos 06: Set temp return (°C) (VR1)
|
||||||
|
uint16_t mixRuntime_; // pos 10/11?: Mixer run time (s) (VR1)
|
||||||
|
// uint8_t setFlowTemp_; // pos 07: Set flow temp AHS (°C) (Buffer)
|
||||||
|
uint8_t bufBypass_; // pos 02: Puffer bypass: No(00), Mischer(01), Ventil(02) (Buffer)
|
||||||
|
uint16_t bufMixRuntime_; // pos 8/9: Bypass mixer run time: [time] (s) (Buffer)
|
||||||
|
uint8_t bufConfig_; // pos 20: Konfig WW-Speicher Monovalent(01), Bivalent(02) (buffer)
|
||||||
|
uint8_t blockMode_; // pos 16: Config htg. blocking mode: No(00),Automatic(01),Always block02) (blocking)
|
||||||
|
uint8_t blockTerm_; // pos 17: Config of block terminal: NO(00), NC(01)
|
||||||
|
int8_t blockHyst_; // pos 14?: Hyst. for bolier block (K)
|
||||||
|
uint8_t releaseWait_; // pos 15: Boiler release wait time (min)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hybrid heatpump with telegram 0xBB is readable and writeable in boiler and thermostat
|
* Hybrid heatpump with telegram 0xBB is readable and writeable in boiler and thermostat
|
||||||
@@ -259,6 +278,7 @@ class Boiler : public EMSdevice {
|
|||||||
void process_amStatusMessage(std::shared_ptr<const Telegram> telegram);
|
void process_amStatusMessage(std::shared_ptr<const Telegram> telegram);
|
||||||
void process_amSettingMessage(std::shared_ptr<const Telegram> telegram);
|
void process_amSettingMessage(std::shared_ptr<const Telegram> telegram);
|
||||||
void process_amCommandMessage(std::shared_ptr<const Telegram> telegram);
|
void process_amCommandMessage(std::shared_ptr<const Telegram> telegram);
|
||||||
|
void process_amExtraMessage(std::shared_ptr<const Telegram> telegram);
|
||||||
|
|
||||||
// commands - none of these use the additional id parameter
|
// commands - none of these use the additional id parameter
|
||||||
bool set_ww_mode(const char * value, const int8_t id);
|
bool set_ww_mode(const char * value, const int8_t id);
|
||||||
@@ -298,6 +318,24 @@ class Boiler : public EMSdevice {
|
|||||||
bool set_pool_temp(const char * value, const int8_t id);
|
bool set_pool_temp(const char * value, const int8_t id);
|
||||||
bool set_emergency_temp(const char * value, const int8_t id);
|
bool set_emergency_temp(const char * value, const int8_t id);
|
||||||
bool set_emergency_ops(const char * value, const int8_t id);
|
bool set_emergency_ops(const char * value, const int8_t id);
|
||||||
|
|
||||||
|
bool set_vr2Config(const char * value, const int8_t id); // pos 12: off(00)/Keelbypass(01)/(hc1pump(02) only standalone)
|
||||||
|
bool set_ahsActivated(const char * value, const int8_t id); // pos 00: Alternate heat source activation: No(00),Yes(01)
|
||||||
|
bool set_aPumpConfig(const char * value, const int8_t id); // pos 04: Buffer primary pump->Config pump: No(00),Yes(01)
|
||||||
|
bool set_aPumpSignal(const char * value, const int8_t id); // pos 03: Output for PR1 pump: On/Off(00),PWM(01),PWM invers(02)
|
||||||
|
bool set_aPumpMin(const char * value, const int8_t id); // pos 21: Min output pump PR1 (%)
|
||||||
|
bool set_tempRise(const char * value, const int8_t id); // pos 01: AHS return temp rise: No(00),Yes(01) (mixer VR1)
|
||||||
|
bool set_setReturnTemp(const char * value, const int8_t id); // pos 06: Set temp return (°C) (VR1)
|
||||||
|
bool set_mixRuntime(const char * value, const int8_t id); // pos 10/11?: Mixer run time (s) (VR1)
|
||||||
|
bool set_setFlowTemp(const char * value, const int8_t id); // pos 07: Set flow temp AHS (°C) (Buffer)
|
||||||
|
bool set_bufBypass(const char * value, const int8_t id); // pos 02: Puffer bypass: No(00), Mischer(01), Ventil(02) (Buffer)
|
||||||
|
bool set_bufMixRuntime(const char * value, const int8_t id); // pos 8/9: Bypass mixer run time: [time] (s) (Buffer)
|
||||||
|
bool set_bufConfig(const char * value, const int8_t id); // pos 20: Konfig WW-Speicher Monovalent(01), Bivalent(02) (buffer)
|
||||||
|
bool set_blockMode(const char * value, const int8_t id); // pos 16: Config htg. blocking mode: No(00),Automatic(01),Always block02) (blocking)
|
||||||
|
bool set_blockTerm(const char * value, const int8_t id); // pos 17: Config of block terminal: NO(00), NC(01)
|
||||||
|
bool set_blockHyst(const char * value, const int8_t id); // pos 14?: Hyst. for bolier block (K)
|
||||||
|
bool set_releaseWait(const char * value, const int8_t id); // pos 15: Boiler release wait time (min)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bool set_hybridStrategy(const char * value, const int8_t id);
|
bool set_hybridStrategy(const char * value, const int8_t id);
|
||||||
bool set_switchOverTemp(const char * value, const int8_t id);
|
bool set_switchOverTemp(const char * value, const int8_t id);
|
||||||
|
|||||||
@@ -284,6 +284,14 @@ MAKE_PSTR_LIST(enum_flow, F_(off), F_(flow), F_(bufferedflow), F_(buffer), F_(la
|
|||||||
MAKE_PSTR_LIST(enum_reset, F("-"), F_(maintenance), F_(error))
|
MAKE_PSTR_LIST(enum_reset, F("-"), F_(maintenance), F_(error))
|
||||||
// MAKE_PSTR_LIST(enum_bool, F_(off), F_(on))
|
// MAKE_PSTR_LIST(enum_bool, F_(off), F_(on))
|
||||||
|
|
||||||
|
// AM200 lists
|
||||||
|
MAKE_PSTR_LIST(enum_vr2Config, F_(off), F("bypass"));
|
||||||
|
MAKE_PSTR_LIST(enum_aPumpSignal, F_(off), F("pwm"), F("pwm_invers"));
|
||||||
|
MAKE_PSTR_LIST(enum_bufBypass, F("no"), F_(mixer), F("valve"));
|
||||||
|
MAKE_PSTR_LIST(enum_bufConfig, F("monovalent"), F("bivalent"));
|
||||||
|
MAKE_PSTR_LIST(enum_blockMode, F_(off), F_(auto), F("blocking"));
|
||||||
|
MAKE_PSTR_LIST(enum_blockTerm, F("n_o"), F("n_c"));
|
||||||
|
|
||||||
//heatpump
|
//heatpump
|
||||||
MAKE_PSTR_LIST(enum_hpactivity, F("Kein"), F("Heizen"), F("Kühlen"), F("Warmwasser"), F("Pool"))
|
MAKE_PSTR_LIST(enum_hpactivity, F("Kein"), F("Heizen"), F("Kühlen"), F("Warmwasser"), F("Pool"))
|
||||||
|
|
||||||
@@ -562,6 +570,23 @@ MAKE_PSTR_LIST(valveReturn, F("valvereturn"), F("Rückfluss Ventil"))
|
|||||||
MAKE_PSTR_LIST(aPumpMod, F("altpumpmod"), F("Alternativ hs Pumpenmodulation"))
|
MAKE_PSTR_LIST(aPumpMod, F("altpumpmod"), F("Alternativ hs Pumpenmodulation"))
|
||||||
MAKE_PSTR_LIST(heatSource, F("heatsource"), F("Alternativ Heizung"))
|
MAKE_PSTR_LIST(heatSource, F("heatsource"), F("Alternativ Heizung"))
|
||||||
|
|
||||||
|
MAKE_PSTR_LIST(vr2Config, F("vr2config"), F("vr2 configuration"))
|
||||||
|
MAKE_PSTR_LIST(ahsActivated, F("ahsactivated"), F("alternate heat source activation"))
|
||||||
|
MAKE_PSTR_LIST(aPumpConfig, F("apumpconfig"), F("primary pump config"))
|
||||||
|
MAKE_PSTR_LIST(aPumpSignal, F("apumpsignal"), F("output for pr1 pump"))
|
||||||
|
MAKE_PSTR_LIST(aPumpMin, F("apumpmin"), F("min output pump pr1"))
|
||||||
|
MAKE_PSTR_LIST(tempRise, F("temprise"), F("ahs return temp rise"))
|
||||||
|
MAKE_PSTR_LIST(setReturnTemp, F("setreturntemp"), F("set temp return"))
|
||||||
|
MAKE_PSTR_LIST(mixRuntime, F("mixruntime"), F("mixer run time"))
|
||||||
|
// MAKE_PSTR_LIST(setFlowTemp, F("setflowtemp"), F("set flow temp"))
|
||||||
|
MAKE_PSTR_LIST(bufBypass, F("bufbypass"), F("buffer bypass config"))
|
||||||
|
MAKE_PSTR_LIST(bufMixRuntime, F("bufmixruntime"), F("bypass mixer run time"))
|
||||||
|
MAKE_PSTR_LIST(bufConfig, F("bufconfig"), F("dhw buffer config"))
|
||||||
|
MAKE_PSTR_LIST(blockMode, F("blockmode"), F("config htg. blocking mode"))
|
||||||
|
MAKE_PSTR_LIST(blockTerm, F("blockterm"), F("config of block terminal"))
|
||||||
|
MAKE_PSTR_LIST(blockHyst, F("blockhyst"), F("hyst. for bolier block"))
|
||||||
|
MAKE_PSTR_LIST(releaseWait, F("releasewait"), F("boiler release wait time"))
|
||||||
|
|
||||||
// the following are dhw for the boiler and automatically tagged with 'ww'
|
// the following are dhw for the boiler and automatically tagged with 'ww'
|
||||||
MAKE_PSTR_LIST(wWSelTemp, F("wwseltemp"), F("gewählte Temperatur"))
|
MAKE_PSTR_LIST(wWSelTemp, F("wwseltemp"), F("gewählte Temperatur"))
|
||||||
MAKE_PSTR_LIST(wwSelTempLow, F("wwseltemplow"), F("selected lower temperature"))
|
MAKE_PSTR_LIST(wwSelTempLow, F("wwseltemplow"), F("selected lower temperature"))
|
||||||
|
|||||||
@@ -284,6 +284,14 @@ MAKE_PSTR_LIST(enum_flow, F_(off), F_(flow), F_(bufferedflow), F_(buffer), F_(la
|
|||||||
MAKE_PSTR_LIST(enum_reset, F("-"), F_(maintenance), F_(error))
|
MAKE_PSTR_LIST(enum_reset, F("-"), F_(maintenance), F_(error))
|
||||||
// MAKE_PSTR_LIST(enum_bool, F_(off), F_(on))
|
// MAKE_PSTR_LIST(enum_bool, F_(off), F_(on))
|
||||||
|
|
||||||
|
// AM200 lists
|
||||||
|
MAKE_PSTR_LIST(enum_vr2Config, F_(off), F("bypass"));
|
||||||
|
MAKE_PSTR_LIST(enum_aPumpSignal, F_(off), F("pwm"), F("pwm_invers"));
|
||||||
|
MAKE_PSTR_LIST(enum_bufBypass, F("no"), F_(mixer), F("valve"));
|
||||||
|
MAKE_PSTR_LIST(enum_bufConfig, F("monovalent"), F("bivalent"));
|
||||||
|
MAKE_PSTR_LIST(enum_blockMode, F_(off), F_(auto), F("blocking"));
|
||||||
|
MAKE_PSTR_LIST(enum_blockTerm, F("n_o"), F("n_c"));
|
||||||
|
|
||||||
//heatpump
|
//heatpump
|
||||||
MAKE_PSTR_LIST(enum_hpactivity, F("none"), F_(heating), F_(cooling), F("hot_water"), F("pool"))
|
MAKE_PSTR_LIST(enum_hpactivity, F("none"), F_(heating), F_(cooling), F("hot_water"), F("pool"))
|
||||||
|
|
||||||
@@ -551,6 +559,23 @@ MAKE_PSTR_LIST(valveReturn, F("valvereturn"), F("return valve"))
|
|||||||
MAKE_PSTR_LIST(aPumpMod, F("altpumpmod"), F("alternative hs pump modulation"))
|
MAKE_PSTR_LIST(aPumpMod, F("altpumpmod"), F("alternative hs pump modulation"))
|
||||||
MAKE_PSTR_LIST(heatSource, F("heatsource"), F("alternative heating active"))
|
MAKE_PSTR_LIST(heatSource, F("heatsource"), F("alternative heating active"))
|
||||||
|
|
||||||
|
MAKE_PSTR_LIST(vr2Config, F("vr2config"), F("vr2 configuration"))
|
||||||
|
MAKE_PSTR_LIST(ahsActivated, F("ahsactivated"), F("alternate heat source activation"))
|
||||||
|
MAKE_PSTR_LIST(aPumpConfig, F("apumpconfig"), F("primary pump config"))
|
||||||
|
MAKE_PSTR_LIST(aPumpSignal, F("apumpsignal"), F("output for pr1 pump"))
|
||||||
|
MAKE_PSTR_LIST(aPumpMin, F("apumpmin"), F("min output pump pr1"))
|
||||||
|
MAKE_PSTR_LIST(tempRise, F("temprise"), F("ahs return temp rise"))
|
||||||
|
MAKE_PSTR_LIST(setReturnTemp, F("setreturntemp"), F("set temp return"))
|
||||||
|
MAKE_PSTR_LIST(mixRuntime, F("mixruntime"), F("mixer run time"))
|
||||||
|
// MAKE_PSTR_LIST(setFlowTemp, F("setflowtemp"), F("set flow temp"))
|
||||||
|
MAKE_PSTR_LIST(bufBypass, F("bufbypass"), F("buffer bypass config"))
|
||||||
|
MAKE_PSTR_LIST(bufMixRuntime, F("bufmixruntime"), F("bypass mixer run time"))
|
||||||
|
MAKE_PSTR_LIST(bufConfig, F("bufconfig"), F("dhw buffer config"))
|
||||||
|
MAKE_PSTR_LIST(blockMode, F("blockmode"), F("config htg. blocking mode"))
|
||||||
|
MAKE_PSTR_LIST(blockTerm, F("blockterm"), F("config of block terminal"))
|
||||||
|
MAKE_PSTR_LIST(blockHyst, F("blockhyst"), F("hyst. for bolier block"))
|
||||||
|
MAKE_PSTR_LIST(releaseWait, F("releasewait"), F("boiler release wait time"))
|
||||||
|
|
||||||
// the following are dhw for the boiler and automatically tagged with 'ww'
|
// the following are dhw for the boiler and automatically tagged with 'ww'
|
||||||
MAKE_PSTR_LIST(wwSelTemp, F("wwseltemp"), F("selected temperature"))
|
MAKE_PSTR_LIST(wwSelTemp, F("wwseltemp"), F("selected temperature"))
|
||||||
MAKE_PSTR_LIST(wwSelTempLow, F("wwseltemplow"), F("selected lower temperature"))
|
MAKE_PSTR_LIST(wwSelTempLow, F("wwseltemplow"), F("selected lower temperature"))
|
||||||
|
|||||||
Reference in New Issue
Block a user