mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
read only first error log message
This commit is contained in:
@@ -1059,12 +1059,12 @@ Boiler::Boiler(uint8_t device_type, int8_t device_id, uint8_t product_id, const
|
|||||||
register_device_value(DeviceValueTAG::TAG_DHW1, &wwWorkM_, DeviceValueType::TIME, FL_(wwWorkM), DeviceValueUOM::MINUTES);
|
register_device_value(DeviceValueTAG::TAG_DHW1, &wwWorkM_, DeviceValueType::TIME, FL_(wwWorkM), DeviceValueUOM::MINUTES);
|
||||||
|
|
||||||
// fetch some initial data
|
// fetch some initial data
|
||||||
EMSESP::send_read_request(0x10, device_id); // read last errorcode on start (only published on errors)
|
EMSESP::send_read_request(0x10, device_id, 0, 11); // read last errorcode on start (only published on errors)
|
||||||
EMSESP::send_read_request(0x11, device_id); // read last errorcode on start (only published on errors)
|
EMSESP::send_read_request(0x11, device_id, 0, 11); // read last errorcode on start (only published on errors)
|
||||||
EMSESP::send_read_request(0x15, device_id); // read maintenance data on start (only published on change)
|
EMSESP::send_read_request(0x15, device_id); // read maintenance data on start (only published on change)
|
||||||
EMSESP::send_read_request(0x1C, device_id); // read maintenance status on start (only published on change)
|
EMSESP::send_read_request(0x1C, device_id); // read maintenance status on start (only published on change)
|
||||||
EMSESP::send_read_request(0xC2, device_id); // read last errorcode on start (only published on errors)
|
EMSESP::send_read_request(0xC2, device_id, 0, 20); // read last errorcode on start (not broadcasted)
|
||||||
EMSESP::send_read_request(0xC6, device_id); // read last errorcode on start (only published on errors)
|
EMSESP::send_read_request(0xC6, device_id, 0, 21); // read last errorcode on start (not broadcasted)
|
||||||
|
|
||||||
|
|
||||||
if (model() != EMSdevice::EMS_DEVICE_FLAG_HEATPUMP && model() != EMSdevice::EMS_DEVICE_FLAG_HIU) {
|
if (model() != EMSdevice::EMS_DEVICE_FLAG_HEATPUMP && model() != EMSdevice::EMS_DEVICE_FLAG_HIU) {
|
||||||
@@ -1835,8 +1835,8 @@ void Boiler::process_UBAMaintenanceStatus(std::shared_ptr<const Telegram> telegr
|
|||||||
|
|
||||||
// 0xBF
|
// 0xBF
|
||||||
void Boiler::process_ErrorMessage(std::shared_ptr<const Telegram> telegram) {
|
void Boiler::process_ErrorMessage(std::shared_ptr<const Telegram> telegram) {
|
||||||
EMSESP::send_read_request(0xC2, device_id()); // read last errorcode
|
EMSESP::send_read_request(0xC2, device_id(), 0, 20); // read last errorcode
|
||||||
EMSESP::send_read_request(0xC6, device_id()); // read last errorcode
|
EMSESP::send_read_request(0xC6, device_id(), 0, 21); // read last errorcode
|
||||||
}
|
}
|
||||||
|
|
||||||
// 0x10, 0x11
|
// 0x10, 0x11
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ Thermostat::Thermostat(uint8_t device_type, uint8_t device_id, uint8_t product_i
|
|||||||
register_telegram_type(0x16E, "Absent", true, MAKE_PF_CB(process_Absent));
|
register_telegram_type(0x16E, "Absent", true, MAKE_PF_CB(process_Absent));
|
||||||
register_telegram_type(0xBF, "ErrorMessage", false, MAKE_PF_CB(process_ErrorMessageBF));
|
register_telegram_type(0xBF, "ErrorMessage", false, MAKE_PF_CB(process_ErrorMessageBF));
|
||||||
register_telegram_type(0xC0, "RCErrorMessage", false, MAKE_PF_CB(process_RCErrorMessage2));
|
register_telegram_type(0xC0, "RCErrorMessage", false, MAKE_PF_CB(process_RCErrorMessage2));
|
||||||
EMSESP::send_read_request(0xC0, device_id); // read last errorcode on start (only published on errors)
|
EMSESP::send_read_request(0xC0, device_id, 0, 20); // read last errorcode on start (only published on errors)
|
||||||
|
|
||||||
// JUNKERS/HT3
|
// JUNKERS/HT3
|
||||||
} else if (model == EMSdevice::EMS_DEVICE_FLAG_JUNKERS) {
|
} else if (model == EMSdevice::EMS_DEVICE_FLAG_JUNKERS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user