diff --git a/src/command.cpp b/src/command.cpp index 43d3d24b6..98d5b63b2 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -152,6 +152,8 @@ uint8_t Command::process(const char * path, const bool is_admin, const JsonObjec } else if (data.is()) { char data_str[10]; return_code = Command::call(device_type, command_p, Helpers::render_value(data_str, data.as(), 2), is_admin, id_n, output); + } else if (data.is()) { + return_code = Command::call(device_type, command_p, data.as() ? "1" : "0", is_admin, id_n, output); } else if (data.isNull()) { return_code = Command::call(device_type, command_p, "", is_admin, id_n, output); // empty, will do a query instead } else {