mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
fix switch commands #692
This commit is contained in:
@@ -157,6 +157,14 @@ uint8_t EMSdevice::device_name_2_device_type(const char * topic) {
|
|||||||
return DeviceType::ANALOGSENSOR;
|
return DeviceType::ANALOGSENSOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!strcmp(lowtopic, F_(switch))) {
|
||||||
|
return DeviceType::SWITCH;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!strcmp(lowtopic, F_(gateway))) {
|
||||||
|
return DeviceType::GATEWAY;
|
||||||
|
}
|
||||||
|
|
||||||
return DeviceType::UNKNOWN;
|
return DeviceType::UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user