From b1c92b6f14450e6483cd6c106ffbb1608eb678cf Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 28 Jul 2020 11:53:19 +0200 Subject: [PATCH] send warning to console/syslog if master boiler is restarted --- src/devices/boiler.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index acac09422..7885fe518 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -691,13 +691,6 @@ void Boiler::process_UBAMaintenanceStatus(std::shared_ptr telegr // first byte: Maintenance due (0 = no, 3 = yes, due to operating hours, 8 = yes, due to date) } -// 0x15 -// not yet implemented -void Boiler::process_UBAMaintenanceData(std::shared_ptr telegram) { - // first byte: Maintenance messages (0 = none, 1 = by operating hours, 2 = by date) - // I see a value of 3 when the boiler is booted, so probably a flag -} - // 0x10, 0x11, 0x12 // not yet implemented void Boiler::process_UBAErrorMessage(std::shared_ptr telegram) { @@ -706,6 +699,15 @@ void Boiler::process_UBAErrorMessage(std::shared_ptr telegram) { #pragma GCC diagnostic pop +// 0x15 +void Boiler::process_UBAMaintenanceData(std::shared_ptr telegram) { + // first byte: Maintenance messages (0 = none, 1 = by operating hours, 2 = by date) + // I see a value of 3 in the 1st byte when the boiler is booted, so probably a flag + if (telegram->message_data[0] == 3) { + LOG_WARNING(F("Boiler has booted.")); + } +} + // Set the warm water temperature 0x33 void Boiler::set_warmwater_temp(const uint8_t temperature) { LOG_INFO(F("Setting boiler warm water temperature to %d C"), temperature);