fix #857, add class heatsource

This commit is contained in:
MichaelDvP
2022-12-29 12:01:10 +01:00
parent d41e634611
commit 29838a433a
14 changed files with 480 additions and 386 deletions

View File

@@ -120,6 +120,8 @@ const char * EMSdevice::device_type_2_device_name(const uint8_t device_type) {
return F_(alert);
case DeviceType::PUMP:
return F_(pump);
case DeviceType::HEATSOURCE:
return F_(heatsource);
default:
return Helpers::translated_word(FL_(unknown));
}
@@ -174,6 +176,9 @@ uint8_t EMSdevice::device_name_2_device_type(const char * topic) {
if (!strcmp(lowtopic, F_(pump))) {
return DeviceType::PUMP;
}
if (!strcmp(lowtopic, F_(heatsource))) {
return DeviceType::HEATSOURCE;
}
return DeviceType::UNKNOWN;
}