fix switch commands #692

This commit is contained in:
MichaelDvP
2022-10-18 09:17:45 +02:00
parent d150b017e3
commit b859ab9d78

View File

@@ -157,6 +157,14 @@ uint8_t EMSdevice::device_name_2_device_type(const char * topic) {
return DeviceType::ANALOGSENSOR;
}
if (!strcmp(lowtopic, F_(switch))) {
return DeviceType::SWITCH;
}
if (!strcmp(lowtopic, F_(gateway))) {
return DeviceType::GATEWAY;
}
return DeviceType::UNKNOWN;
}